AI Adobe Illustrator Format
AI is Adobe Illustrator's native vector graphics file format, used for
You are a file format specialist with deep knowledge of the Adobe Illustrator file format, its relationship to PDF and EPS, vector editing capabilities, and interoperability with other design tools. ## Key Points - **File extension(s):** `.ai` - **MIME type:** `application/illustrator`, `application/postscript` (legacy) - **Internal structure:** PDF 1.5+ container with Illustrator private data (PGF stream). Legacy AI files (pre-Illustrator 9) are PostScript-based. - **Compression type:** PDF-standard compression for the compatibility view; Illustrator data uses its own encoding within the PDF container - **Color depth:** Vector graphics are resolution-independent. Supports unlimited colors, gradients, patterns, and meshes. Embedded raster images retain their original bit depth. - **Max dimensions:** Artboard maximum is 227 x 227 inches (16,383 x 16,383 points). Multiple artboards supported (up to 1,000). - **Color spaces:** RGB, CMYK, Grayscale, Lab, Spot colors (Pantone, custom), global swatches - **Transparency:** Full alpha transparency, blend modes, opacity masks - **Typography:** Full OpenType support, paragraph and character styles, area type, type on path, variable fonts - **Effects:** Live effects (non-destructive Gaussian blur, drop shadow, distort, stylize), Appearance panel stacking - **Metadata support:** XMP metadata, document info, ICC color profiles - **Adobe Illustrator:** Full editing support (the defining application)
skilldb get file-formats-skills/AI Adobe Illustrator FormatFull skill: 194 linesAI (.ai)
You are a file format specialist with deep knowledge of the Adobe Illustrator file format, its relationship to PDF and EPS, vector editing capabilities, and interoperability with other design tools.
Overview
AI (Adobe Illustrator Artwork) is the native file format for Adobe Illustrator, the industry-standard vector graphics editor. The format has evolved significantly since Illustrator 1.0 (1987). Early AI files were based on PostScript; since Illustrator 9.0 (2000), AI files are actually PDF-based with additional Illustrator-specific data stored in a private resource stream. This dual nature means modern AI files can be opened as PDFs by any PDF reader (showing the flattened artwork) while Illustrator reads the full editable data. The format preserves all Illustrator features including layers, artboards, live effects, symbols, gradients, patterns, typography, and linked assets.
Core Philosophy
Adobe Illustrator (.ai) is the standard file format for professional vector graphic design. An AI file is technically a restricted form of EPS (Encapsulated PostScript) with embedded PDF content, containing Illustrator's complete editing state: artboards, layers, paths, text, effects, linked assets, and color swatches. This dual nature — PostScript heritage with modern PDF compatibility — reflects AI's long evolution as the vector design industry's dominant native format.
AI files are working documents, not delivery formats. They preserve every aspect of a designer's work — editable text, live effects, symbol instances, appearance stacks, and compound paths — enabling future modifications. For delivery, export to SVG (web), PDF (print), PNG (raster), or EPS (legacy print). The AI file is the master source from which all deliverables are produced.
AI's dependence on Adobe Illustrator is both its strength and its limitation. Illustrator handles AI files with complete fidelity, but other applications (Inkscape, Affinity Designer, CorelDRAW) can open AI files with varying degrees of success, often losing Illustrator-specific features. For cross-application vector interchange, SVG or PDF are more reliable. Keep AI as your editable master within Illustrator workflows; deliver and share in open formats.
Technical Specifications
- File extension(s):
.ai - MIME type:
application/illustrator,application/postscript(legacy) - Internal structure: PDF 1.5+ container with Illustrator private data (PGF stream). Legacy AI files (pre-Illustrator 9) are PostScript-based.
- Compression type: PDF-standard compression for the compatibility view; Illustrator data uses its own encoding within the PDF container
- Color depth: Vector graphics are resolution-independent. Supports unlimited colors, gradients, patterns, and meshes. Embedded raster images retain their original bit depth.
- Max dimensions: Artboard maximum is 227 x 227 inches (16,383 x 16,383 points). Multiple artboards supported (up to 1,000).
- Color spaces: RGB, CMYK, Grayscale, Lab, Spot colors (Pantone, custom), global swatches
- Transparency: Full alpha transparency, blend modes, opacity masks
- Typography: Full OpenType support, paragraph and character styles, area type, type on path, variable fonts
- Effects: Live effects (non-destructive Gaussian blur, drop shadow, distort, stylize), Appearance panel stacking
- Metadata support: XMP metadata, document info, ICC color profiles
How to Work With It
Opening & Viewing
- Adobe Illustrator: Full editing support (the defining application)
- Adobe Acrobat/Reader: Opens as a PDF (flattened view, no editing of vector paths)
- Affinity Designer: Good import support for most features
- CorelDRAW: Import with reasonable fidelity
- Inkscape: Can open AI files saved with PDF compatibility (via PDF import), but loses Illustrator-specific features
- macOS Preview: Displays the PDF compatibility view
- Photopea: Web-based, can open AI files with decent layer support
- Note: The "Create PDF Compatible File" option must be enabled during save for non-Illustrator applications to open the file
Creating & Editing
- Illustrator: File > Save As > Adobe Illustrator (.ai). Always keep "Create PDF Compatible File" checked for interoperability.
- Artboards: Use multiple artboards for icon sets, multi-page designs, responsive variants
- Vector tools: Pen tool (Bezier curves), Shape Builder, Pathfinder operations, Live Paint, Image Trace (raster-to-vector)
- Symbols: Reusable design elements that update globally when modified
- Best practices: Organize with layers and sublayers, use clipping masks over destructive cropping, expand appearances only for final output
Converting To/From
- AI to SVG: Illustrator File > Export > Export As > SVG. Or
magick input.ai output.svg - AI to PDF: Illustrator File > Save As > Adobe PDF (for print-ready output with bleeds, marks)
- AI to PNG: File > Export > Export As > PNG (set resolution: 72 DPI for web, 300 DPI for print)
- AI to EPS: File > Save As > Illustrator EPS (for legacy print workflows)
- SVG to AI: Illustrator File > Open > select SVG file (converts to editable AI objects)
- PDF to AI: Illustrator can open PDF files and convert them to editable vector objects
- Raster to AI: Image Trace in Illustrator converts raster images to vector paths (quality depends on source)
- Command line:
magick -density 300 input.ai output.png(uses Ghostscript for rendering)
Common Use Cases
- Logo design and brand identity systems
- Illustration and editorial artwork
- Icon design and icon sets
- Typography and lettering projects
- Print design (business cards, posters, packaging)
- Infographic and data visualization design
- Pattern and textile design
- Technical illustration and diagrams
- Vehicle wraps and signage (large-format print)
- Design system component creation
Pros & Cons
Pros:
- Preserves complete Illustrator editing state (layers, effects, typography, symbols)
- PDF-compatible (viewable without Illustrator)
- Vector output scales to any size without quality loss
- Full professional color management (CMYK, spot colors, overprint)
- Multiple artboards in a single file
- Live effects and non-destructive editing
- Industry standard for professional vector design
- Rich typography support
Cons:
- Proprietary format (Adobe controls the specification)
- Full editing requires Adobe Illustrator (expensive subscription)
- AI files without PDF compatibility cannot be opened by other applications
- Embedded raster images increase file size dramatically
- Complex files can be large and slow to open
- Not web-native (must export to SVG, PNG, or PDF for distribution)
- Feature loss when opening in competing applications
- Version compatibility issues (newer features may not open in older Illustrator versions)
Compatibility
| Platform | Support |
|---|---|
| Illustrator | Full (defining application) |
| Affinity Designer | Good import (most features preserved) |
| CorelDRAW | Good import |
| Inkscape | Limited (via PDF compatibility layer) |
| Photoshop | Rasterizes on import (choose resolution) |
| Figma | Import supported (simplified vector) |
| macOS Preview | PDF view (read-only) |
| Photopea | Good (web-based, free) |
| Web browsers | Not supported (export to SVG/PNG) |
Practical Usage
Batch export artboards to PNG with ImageMagick
# Export AI file at 300 DPI (requires Ghostscript)
magick -density 300 logo.ai logo.png
# Export specific page/artboard (0-indexed)
magick -density 300 "brochure.ai[0]" page1.png
magick -density 300 "brochure.ai[1]" page2.png
# Batch convert all AI files in a directory to SVG
for f in *.ai; do magick -density 300 "$f" "${f%.ai}.svg"; done
Extract and manipulate AI/PDF content with Python
# AI files (with PDF compatibility) can be read as PDFs
import fitz # PyMuPDF
doc = fitz.open("design.ai")
for page_num, page in enumerate(doc):
# Extract text from the AI file
text = page.get_text()
print(f"Artboard {page_num}: {text[:100]}")
# Render artboard to high-res PNG
mat = fitz.Matrix(4, 4) # 4x zoom = ~288 DPI
pix = page.get_pixmap(matrix=mat)
pix.save(f"artboard_{page_num}.png")
Automate Illustrator export via scripting (macOS/Windows)
// Illustrator ExtendScript — save as run.jsx, execute via Illustrator
var doc = app.activeDocument;
var opts = new ExportOptionsPNG24();
opts.antiAliasing = true;
opts.artBoardClipping = true;
opts.horizontalScale = 200; // 200% scale
opts.verticalScale = 200;
for (var i = 0; i < doc.artboards.length; i++) {
doc.artboards.setActiveArtboardIndex(i);
var file = new File("~/Desktop/export_" + i + ".png");
doc.exportFile(file, ExportType.PNG24, opts);
}
Anti-Patterns
Saving without "Create PDF Compatible File" enabled. Without this option, no application other than Illustrator can open the AI file — not even macOS Preview or Acrobat. Always keep this enabled unless you have a specific reason to reduce file size and will only ever open the file in Illustrator.
Embedding large raster images instead of linking them. Embedding high-resolution photos directly into an AI file bloats file size enormously and slows performance. Use File > Place with the "Link" option checked, and package the file (File > Package) when sharing.
Using AI as a delivery format for clients or web. AI is a working file format, not a delivery format. Export to PDF for print delivery, SVG for web, or PNG/JPEG for general sharing. Sending AI files requires recipients to own Illustrator.
Expanding all appearances and outlines prematurely. Converting text to outlines or expanding live effects destroys editability. Keep a master AI file with live text and effects, and only expand in a copy when required for final production output.
Ignoring color mode for the target medium. Designing in RGB and then converting to CMYK at the last minute causes color shifts, especially in blues and greens. Set the document color mode (File > Document Color Mode) to match the final output from the start — CMYK for print, RGB for screen.
Related Formats
- SVG: Open vector format for web; more portable but fewer features than AI
- EPS: Legacy vector interchange format; being replaced by PDF and AI
- PDF: AI is PDF-based; PDF is the preferred delivery format for print
- CDR: CorelDRAW native format (competing proprietary vector format)
- Affinity Designer (.afdesign): Affinity's native vector format
- Sketch (.sketch): UI-focused vector format (macOS only)
- PSD: Photoshop native format (raster counterpart to AI)
- INDD: InDesign native format (page layout; uses AI/PSD assets)
Install this skill directly: skilldb add file-formats-skills
Related Skills
3MF 3D Manufacturing Format
The 3MF file format — the modern replacement for STL in 3D printing, supporting colors, materials, multi-object assemblies, and precise manufacturing data in a single package.
7-Zip Compressed Archive
The 7z archive format — open-source high-ratio compression using LZMA2, with strong AES-256 encryption, solid archives, and multi-threading support.
AAC (Advanced Audio Coding)
A lossy audio codec standardized as part of MPEG-2 and MPEG-4, designed to supersede MP3 with better quality at equivalent or lower bitrates.
AC3 (Dolby Digital)
Dolby's surround sound audio codec used in cinema, DVD, Blu-ray, and broadcast television for multichannel 5.1 audio delivery.
AIFF (Audio Interchange File Format)
Apple's uncompressed audio format storing raw PCM data, serving as the Mac equivalent of WAV for professional audio production.
ALAC (Apple Lossless Audio Codec)
Apple's lossless audio compression codec, storing bit-perfect audio at roughly half the size of uncompressed PCM, natively integrated across all Apple devices.