AI File Documentation


Summary

An Adobe Illustrator Artwork (AI) file is a vector graphics document: resolution-independent paths, type, gradients and layers used for logos, icons and print artwork. Adobe Illustrator has produced it since 1987, and since Illustrator 9 (2000) a modern .ai is a real PDF with Illustrator’s private editable data stored alongside. Its MIME type is application/illustrator. Because it is PDF-compatible, most .ai files open in any PDF viewer for a quick look.

Technical details

FeatureValue
Full nameAdobe Illustrator Artwork
File extension.ai
MIME typeapplication/illustrator, also application/postscript, application/pdf
Format typeVector graphics document
CategoryVector image files
DeveloperAdobe Inc.
Introduced1987 (Illustrator 1.0); PDF-compatible container from Illustrator 9 (2000)
Base / containerModern: PDF (ISO 32000). Legacy: EPS / PostScript
Private dataIllustrator’s own editable stream (PGF), tagged /AIPrivateData
Open standardNo — PGF is proprietary and undocumented; the PDF layer is standard
Byte orderPDF is byte-oriented text/binary; PostScript is text
Magic numberModern: 25 50 44 46 (%PDF). Legacy EPS-based: 25 21 50 53 (%!PS) or DOS-EPS header C5 D0 D3 C6
ColourRGB, CMYK, spot colours; gradients and gradient meshes
ArtboardsOne or more canvases, each with its own dimensions
Related extensions.pdf, .eps, .svg, .ait (template), .psd
SpecificationAdobe PDF (ISO 32000-1); Illustrator save documentation
File signature (magic bytes)
25 50 44 46 2D 31 2E ..

Offset 0. A modern .ai saved with “Create PDF Compatible File” on begins with %PDF-1.x, because the file is a valid PDF; that is why it opens in Acrobat, a browser or macOS Preview. There is no single guaranteed AI signature. Older EPS-based files start with 25 21 50 53 (%!PS-Adobe) instead, and an EPS wrapped for DOS begins with the binary header C5 D0 D3 C6. To distinguish a true AI from a plain PDF, look inside for the string /AIPrivateData (present in .ai) versus /AIPDFPrivateData (present when Illustrator exported a .pdf).

What is an AI file?

AI stands for Adobe Illustrator Artwork, Adobe’s native format for vector graphics. Adobe Systems shipped it with Adobe Illustrator 1.0 in 1987, and it has been the working format for logos, icons, illustrations, packaging and print artwork ever since. Unlike a raster image such as PNG or JPG, which stores a grid of pixels, an .ai stores the artwork as mathematics: Bézier paths, anchor points, stroke and fill definitions, type, gradients and layers. Because those are resolution-independent, the same file prints crisply at any size.

The format has two eras, and understanding the split explains almost everything about how .ai files behave. From 1987 until around 2000 an .ai was based on Encapsulated PostScript: the drawing was described in the PostScript language, and the file began with %!PS-Adobe. From Illustrator 9 (2000) onward the default became a PDF-compatible container. The modern .ai is a genuine PDF file, with Illustrator’s own private, fully-editable representation of the artwork stored inside it. That dual nature is why a designer’s .ai often opens in Acrobat or a web browser even on a machine without Illustrator.

The PDF-compatible container

When you save an .ai with the “Create PDF Compatible File” option enabled (it is on by default), Illustrator writes a structurally valid PDF. The file starts with the PDF signature %PDF-1.x at offset 0, contains the usual PDF object graph — a cross-reference table, a trailer, page objects, content streams and font resources — and ends with %%EOF. Any conforming PDF reader can parse that structure and render a faithful picture of the artwork, because Illustrator has written a complete PDF rendition of every visible object.

This is what makes the “rename to .pdf” trick work: a PDF-compatible .ai already is a PDF, so changing the extension (or just opening it in PDF software) shows the artwork. What that rendition does not give you is Illustrator’s live editing model. The PDF layer is a flattened, display-ready view; the editable objects live in a separate private stream described below. If a file was saved with PDF compatibility switched off, it holds only the private data, and PDF viewers cannot open it at all.

PGF: Illustrator’s private editable data

Alongside the PDF rendition, Illustrator embeds its own artwork stream. This is the original Illustrator representation, historically called PGF (the “Illustrator private format”), and it is stored inside the file under a marker tagged /AIPrivateData. When you reopen the file in Illustrator, the application ignores the PDF rendition and reads the PGF stream, which is why every layer, path, gradient mesh, live effect and editable type object comes back exactly as you left it.

The PGF stream is proprietary and undocumented. Third-party applications can read the standard PDF layer and therefore display an .ai accurately, but they cannot fully reconstruct the editable objects from PGF. This is the practical reason a logo opened in a non-Adobe tool may look right yet lose some editability: the viewer is showing you the PDF rendition, not the live PGF artwork. A useful forensic detail follows from the tagging: a native .ai contains the string /AIPrivateData, whereas a PDF that Illustrator exported (a real .pdf with Illustrator editability retained) contains /AIPDFPrivateData. Searching for those strings tells the two apart when the extension or metadata is missing.

Artboards, layers and vector objects

Inside the artwork, the top-level unit is the artboard: a canvas with its own width and height. A single .ai can hold many artboards (for example, every size of an app icon, or each page of a brochure), each mapping to a PDF page in the compatible rendition. Within an artboard, content is organised into layers and sublayers, and each layer holds the drawing objects.

The drawing objects are the vector primitives: paths built from anchor points and Bézier control handles, compound paths, live shapes, type objects (point type and area type), and placed images. Fills and strokes can be flat colour, a linear or radial gradient, a gradient mesh (a grid of colour points for photorealistic shading), or a pattern. Colour is stored in RGB or CMYK depending on the document’s colour mode, with named spot colours for print. Effects such as drop shadows, blends and transparency groups are recorded as live, editable operations in the PGF data, then baked into their rendered appearance in the PDF layer.

Embedded versus linked images

Illustrator artwork frequently combines vectors with raster content, and the file can either embed those images or link to them. An embedded image is stored inside the .ai, which makes the file self-contained but larger. A linked image is referenced by path, so the .ai stays small but breaks if the external file moves. This distinction matters when a file is handed off: a linked .ai that arrives without its images shows missing-link placeholders. Embedding before delivery, or packaging the links alongside the file, avoids that.

AI, SVG and the open-format relatives

AI is not the same as SVG, though both are vector formats. SVG is the open web standard defined by the W3C, an XML text format that browsers render directly. AI is Adobe’s proprietary editing format. Illustrator exports SVG natively, and the free editor Inkscape can open many .ai files through their PDF/EPS layer and re-save them as SVG. Fidelity is good for plain paths; gradient meshes and some live effects only approximate, because they have no direct SVG equivalent. For print workflows the relevant sibling is EPS, which is what legacy .ai files were built on and which Illustrator still exports. The clean rule is that the PDF layer travels everywhere, SVG is the web target, and full editability stays with Illustrator.

Frequently asked questions

Can I open an AI file as a PDF?

Usually yes. If the file was saved with “Create PDF Compatible File” (the default), it is a valid PDF: rename .ai to .pdf, or just open it in any PDF viewer. Older EPS-based .ai files, and files saved with PDF compatibility switched off, will not do this.

Why does Inkscape not open my AI file correctly?

Inkscape reads the PDF or EPS layer of an .ai, not Illustrator’s private PGF data. Plain paths translate well, but gradient meshes are approximated and some transparency and live effects do not survive. For a faithful result, ask the sender to export SVG or PDF, or open the file in Illustrator.

Is AI the same as SVG?

No. Both describe vectors, but AI is Adobe’s proprietary editing format and SVG is the open W3C web standard. Convert AI to SVG in Illustrator or Inkscape when you need the artwork on the web.

References