SVG vs AI, Compared on the Same Drawing
Upload your image to convert to AI
Drag & drop or click — PNG, JPG, WebP up to 25MB
From a PNG, JPG or WebP logo, the converter traces the shapes and builds the AI file right in your browser, with the code that made the AI file shown below. The preview is free, with a watermark, and needs no signup.
No: an SVG is not an Illustrator file, but Illustrator opens and edits one. The two are vector formats, made of shapes rather than pixels, and neither blurs when it grows. An SVG is XML text, the open standard every web browser draws. An AI file is the native format of Adobe Illustrator, and those written by this site are PDF files inside. Below, one drawing in both formats, opened and read.
- Both files hold the same 2 shapes in the same 2 colors
- Illustrator opens and edits both; web browsers and Cricut Design Space take only the SVG
- An AI file from this site opens with the line %PDF-1.4: a PDF under another name
- Sizes on disk: 465 bytes for the SVG, 1,273 bytes for the AI file
By the VectoSolve design team, technical review by Robin Monteiro, founder and developer.
One sign plate, two files
A sign plate of 100 by 50 millimeters with 2 screw holes and a star, drawn as an SVG for this site, then turned into an AI file by the same code the converter at the top uses. Both files are below: open them in Illustrator to see the shapes, or in a text editor to read them.
| What | SVG | AI |
|---|---|---|
| File | sign-plate.svg465 bytes | sign-plate.ai1,273 bytes |
| Size | 465 bytes | 1,273 bytes |
| Written as | XML text, 4 lines | PDF 1.4 in plain text, 73 lines |
| Size it declares | 100 by 50 millimeters, one millimeter per unit of the viewBox | A page of 283.4646 by 141.7323 points, the same 100 by 50 millimeters |
| Shapes | 2 path elements | 2 paths, each with its color and its fill |
| Curves and straight lines | 8 arcs, 13 straight lines | 12 curves, 13 straight lines |
| Colors | 2 hex codes, #1f2937 and #0090ff | 2 sets of red, green and blue between 0 and 1, the first 0.1216 0.1608 0.2157 |
| Screw holes | fill-rule="evenodd" | f*, the even-odd fill |
| Opens in Illustrator | Yes, as editable paths | Yes, as editable paths |
| Opens in a web browser | Yes | No |
| Imports into Cricut Design Space | Yes | No |
The whole SVG, line by line
The SVG is 4 lines of text, 465 bytes in all, short enough to show here in full.
| Line | In the file | What it says |
|---|---|---|
| 1 | <svg xmlns="http://www.w3.org/2000/svg" width="100mm" height="50mm" viewBox="0 0 100 50"> | The viewBox gives the drawing 100 by 50 units; width and height say how large that is on paper: 100 by 50 millimeters. |
| 2 | <path fill="#1f2937" fill-rule="evenodd" d="M5 0H95A5 5 0 0 1 100 5V45A5 5 0 0 1 95 50H5A5 5 0 0 1 0 45V5A5 5 0 0 1 5 0ZM12.5 25A2.5 2.5 0 1 0 7.5 25A2.5 2.5 0 1 0 12.5 25ZM92.5 25A2.5 2.5 0 1 0 87.5 25A2.5 2.5 0 1 0 92.5 25Z"/> | The plate, dark gray (#1f2937): an outline with four rounded corners, each an arc (A) of radius 5, then 2 circles of radius 2.5, the screw holes. With fill-rule set to evenodd, an outline drawn inside another is left empty. |
| 3 | <path fill="#0090ff" d="M50 12L53.06 20.79L62.36 20.98L54.95 26.61L57.64 35.52L50 30.2L42.36 35.52L45.05 26.61L37.64 20.98L46.94 20.79Z"/> | The blue star (#0090ff): 10 points joined by straight lines (L), then closed (Z). |
| 4 | </svg> | The end of the drawing. |
Inside the AI file
The AI file is 73 lines of plain text, 1,273 bytes: a PDF, written uncompressed so that it reads in a text editor. Here are its first line, its page, the colors and fills of the two shapes, and its end.
| Line | In the file | What it says |
|---|---|---|
| 1 | %PDF-1.4 | A PDF file, version 1.4, under the .ai name. |
| 3 | << /Type /Catalog /Pages 2 0 R >> | The catalog, where a reader starts: it points to the pages. |
| 9 | << /Type /Page /Parent 2 0 R /MediaBox [0 0 283.4646 141.7323] /Resources << /ProcSet [/PDF] >> /Contents 4 0 R >> | The page: 283.4646 by 141.7323 points, the 100 by 50 millimeters of the SVG. |
| 12 | << /Length 683 >> | The drawing that follows: 683 bytes. |
| 14 | 2.8346456693 0 0 -2.8346456693 0 141.7323 cm | One unit of the SVG, a millimeter, becomes 2.8346 points, and y is turned upside down once for the whole page, so the numbers that follow are those of the SVG. |
| 16 | 0.1216 0.1608 0.2157 rg | #1f2937 in the SVG, the dark gray of the plate: 31, 41 and 55 out of 255. |
| 39 | f* | Fill the plate, even-odd: the 2 screw holes stay holes. |
| 42 | 0 0.5647 1 rg | #0090ff in the SVG, the blue of the star: 0, 144 and 255 out of 255. |
| 43 | 50 12 m | M50 12 in the SVG: the top point of the star. |
| 54 | f | Fill the star. |
| 59 | << /Title (artwork) /Creator (VectoSolve) /Producer (VectoSolve vectosolve.com) >> | The title, and the program that wrote the file. |
| 61 | xref | A table of where each part of the file starts, counted in bytes. |
| 73 | %%EOF | The end of the file. |
Illustrator has saved its own AI files as a PDF since version 9, with private data of its own added. This one holds the drawing only, with no layer names.
A corner and a hole, in each file
The top of the plate with its first rounded corner, then the left screw hole, as each file writes them. The SVG draws arcs; PDF has none, so the AI writes each quarter of a circle as one curve.
In the SVG, two passages of line 2
M5 0H95A5 5 0 0 1 100 5
M12.5 25A2.5 2.5 0 1 0 7.5 25A2.5 2.5 0 1 0 12.5 25Z
| Line | In the file | What it says |
|---|---|---|
| 17 | 5 0 m | M5 0: the outline starts on the top edge. |
| 18 | 95 0 l | H95: a straight line along the top. |
| 19 | 97.7614 0 100 2.2386 100 5 c | A5 5 0 0 1 100 5: the rounded corner, as one curve. Its two control points sit 2.7614 from its ends, 0.5523 times the radius of 5. |
| 27 | 12.5 25 m | M12.5 25: the right edge of the left screw hole. |
| 28 | 12.5 23.6193 11.3807 22.5 10 22.5 c | A quarter of the circle, to its top. |
| 29 | 8.6193 22.5 7.5 23.6193 7.5 25 c | The second quarter: the first A of the SVG ends here. |
| 30 | 7.5 26.3807 8.6193 27.5 10 27.5 c | The third quarter. |
| 31 | 11.3807 27.5 12.5 26.3807 12.5 25 c | The fourth, back to the start: the second A ends here. |
| 32 | h | Z: close the hole. |
What the AI keeps from the SVG, and what it rewrites
The shapes are kept
Both files hold the plate and the star: 2 shapes, 4 contours, and the same 13 straight lines. Every point the SVG names keeps its numbers in the AI: M5 0 is 5 0 m, H95 is 95 0 l.
The arcs become curves
An SVG can draw an arc (A); a PDF, and so this AI, cannot. The 8 arcs of the plate become 12 curves: one for each rounded corner, and four for each screw hole.
Millimeters become points
The SVG says 100 by 50 millimeters. The AI page is 283.4646 by 141.7323 points, the same size: a point is 1/72 of an inch, so a millimeter is 2.8346 points.
RGB in both files
#1f2937 in the SVG is 0.1216 0.1608 0.2157 in the AI: the same dark gray, given as red, green and blue between 0 and 1. Neither file holds CMYK, so a print shop that prints in CMYK makes that conversion in its own software.
The holes stay holes
The SVG fills the plate even-odd (fill-rule), and the AI fills it with f*, the even-odd fill of PDF: the two circles inside the outline are cut out in both.
Browsers and Cricut Design Space take the SVG only
An SVG shows in any web browser and goes straight into Cricut Design Space. An AI file does neither, and the converter on this page does not open one either.
Which programs open each file
The SVG opens in
- Any web browser
- Adobe Illustrator, Inkscape and Affinity Designer, where every path can be edited
- Cricut Design Space and Silhouette, plus laser software such as LightBurn
The AI file opens in
- Adobe Illustrator, with every shape selectable and editable
- Photoshop, InDesign, CorelDRAW and Affinity Designer
- Inkscape, for most AI files: Illustrator saves them PDF-compatible by default
- Not a web browser, and not Cricut Design Space
SVG or AI: which one to send
Send the AI file when
- Your print shop, sign maker or designer names AI as the format
- Someone will keep working on the artwork in Illustrator
- The designer at the other end uses Illustrator, CorelDRAW or Affinity Designer
Send the SVG when
- It is for a website, where every browser draws SVG
- It goes to Cricut Design Space, Silhouette or laser software such as LightBurn
- The person who receives it has no Illustrator: Inkscape, Affinity Designer and every browser open it
Asked for an EPS? Read EPS vs SVG, the same kind of comparison on a real logo. Asked for a PDF? The ZIP that comes with a plan holds one, with an EPS, the SVG and a PNG.
SVG and AI questions
Is an SVG the same as an AI file?
No. They are two vector formats, so either one prints sharp at any size, but they are not interchangeable. An SVG is plain text in XML, an open standard of the W3C that every web browser draws. An AI file is the native format of Adobe Illustrator, and those written by this site are PDF files inside. Illustrator opens and edits both.
What is the difference between SVG and AI?
What each file is written in, and what reads it. An SVG is XML: it opens in any web browser, in Cricut Design Space and in laser software, as well as in Illustrator, Inkscape and Affinity Designer. An AI file is a PDF inside: Illustrator opens it first, and so do Photoshop, InDesign, CorelDRAW and Affinity Designer, but not a web browser or Cricut Design Space. In both files, the sign plate here has its 2 shapes and its 2 colors.
Can Illustrator open and edit an SVG?
Yes. Open the SVG in Illustrator and its shapes come in as paths you can select, reshape and recolor. To hand someone an Illustrator file, save it from there as AI.
Can I use an AI file in Cricut Design Space?
No: Design Space imports SVG, not AI. Export the artwork as SVG first. In Illustrator, choose File, Export, Export As, then SVG; without Illustrator, open the AI in Inkscape and save it as SVG.
Can a web browser open an AI file?
No. No web browser decodes an AI file, and the converter on this page does not take one either. Open it in Illustrator, or in Inkscape, which reads most AI files because Illustrator saves them PDF-compatible by default.
Is an AI file a PDF?
Inside, usually. Every AI file written here starts with %PDF-1.4, as on this page: a PDF under the .ai name. Since version 9, Illustrator has saved its own AI files as a PDF too, with private data of its own added.
Will a print shop take an SVG instead of an AI file?
Send the format the print shop names. Print shops and sign makers mostly ask for EPS, AI or PDF, and some take SVG too. If yours wants AI, open the SVG in Illustrator and save it as AI: the shapes stay as they are.
Should my logo be an SVG or an AI file?
Keep both. The AI goes to the sign maker, print shop or designer who asks for it; the SVG goes on a website, into Cricut Design Space or into laser software. Saved from the same artwork, they hold the same shapes.
How do I save an SVG as an AI file?
Open the SVG in Illustrator and save it as AI: the shapes stay as they are. The converter on this page writes AI files too, but it traces a picture into new shapes, so it is the route for a PNG or a JPG, not for an SVG you already have.
How do I turn an AI file into an SVG?
In Illustrator, choose File, Export, Export As, then SVG. Without Illustrator, open the AI in Inkscape, which reads most of them, and save it as SVG. Either way the paths come across as drawn, with no tracing.
Can I make an AI file from a PNG or JPG logo?
Yes: drop it on the converter above and press Convert to AI. The logo is traced into shapes, then the AI file is written in your browser. The preview is free, with a watermark, and needs no signup.
More: what is a vector file, when the printer asks for a vector file, SVG to AI, AI to SVG, PNG to AI and logo to EPS.
Current plans and prices: pricing.
Turn your logo into an AI file
Your logo becomes shapes, and the AI file is built in your browser, ready to open in Illustrator. The preview is free, with a watermark, and needs no signup.
