Select File > Save As or File > Save a Copy.
Learn how to save Adobe Illustrator artwork in SVG or compressed SVGZ format to create high-quality, interactive vector graphics for the web.
SVG (Scalable Vector Graphics) produces high-quality, interactive vector graphics for the web. Illustrator offers two SVG format options: SVG and Compressed SVG (SVGZ). SVGZ can significantly reduce the file size, but you can't edit SVGZ files in a text editor.
When you save a document as SVG, mesh objects are rasterized. Images without an alpha channel are saved as JPEG files, while images with an alpha channel are saved as PNG files. If your document has multiple artboards, only the active artboard is preserved. You can't save individual artboards as separate SVG files.
If your artwork contains SVG effects, select each object with an applied effect, and move the effect to the bottom of the Appearance panel, just above the Opacity entry. If other effects follow an SVG effect, the SVG output becomes a raster object. If your document has multiple artboards, select the artboard you want to export as well.
Save your file in SVG format
Type a filename and select a location for the file.
Select SVG (*.SVG) or SVG Compressed (.SVGZ) as the file format, and then select Save.
In the SVG Options dialog box, set the options you want, and select OK.
SVG Options dialog box
SVG Profiles: Specifies which SVG XML Document Type Definition the exported file follows.
|
Profile |
Description |
|
SVG 1.0 and SVG 1.1 |
Suits files viewed on a desktop computer. SVG 1.1 is the full specification, while SVG Tiny 1.1, SVG Tiny 1.1+, and SVG Basic 1.1 are subsets. |
|
SVG Basic 1.1 |
Suits medium-powered devices, such as some handhelds, though not all handhelds support it. It doesn't support nonrectangular clipping or some SVG filter effects. |
|
SVG Tiny 1.1 and SVG Tiny 1.1+ |
Suits small devices, such as mobile phones, though not all mobile devices support these profiles. SVG Tiny excludes gradients, transparency, clipping, masks, symbols, patterns, underline text, strikethrough text, vertical text, and SVG filter effects. SVG Tiny Plus adds gradients and transparency, but still excludes clipping, masks, symbols, and SVG filter effects. |
|
SVG Tiny 1.2 |
Suits a range of devices, from PDAs and mobile phones to laptops and desktop computers. |
For details about SVG profiles, consult the SVG specification on the W3C website.
Font Type
Specify how fonts are exported.
|
Option |
Description |
|
SVG |
Doesn't use font hinting. It's supported by all SVG viewers |
|
Convert to Outlines |
Converts text to vector paths, so it displays consistently in every SVG viewer, though it's no longer editable as text. |
Font Subsetting
Control which glyphs (characters of a font) are embedded in the exported file.
|
Option |
Description |
|
None |
Excludes font embedding. Select this if you're confident the necessary fonts are installed on end-user systems. |
|
Only Glyphs Used |
Embeds only the glyphs for text that exists in the current artwork. |
|
Common English, Common English & Glyphs Used, Common Roman, Common Roman & Glyphs Used, All Glyphs |
Useful when the SVG file's text content is dynamic, such as server-generated or user-interactive text. |
Image Location
Determine how rasterized images are stored.
|
Option |
Description |
|
Embed |
Stores raster images directly in the SVG file. This increases file size but ensures the images are always available. |
|
Link |
References the exported JPEG or PNG images from the original Illustrator file instead of embedding them. This reduces file size but requires you to maintain the linked image files |
|
Preserve |
Keeps the original file’s linking behavior. Links images that were linked and embeds images that were not. |
Preserve Illustrator Editing Capabilities
Embeds an AI file within the SVG file, preserving Illustrator-specific data so you can reopen and edit the SVG file in Illustrator with full fidelity. This increases the file size. Manual changes you make to the SVG code aren't reflected when you reopen the file, because Illustrator reads the embedded AI data, not the SVG markup.
CSS Properties
Determine how style attributes are saved in the SVG code.
|
Option |
Description |
|
Presentation Attributes (default) |
Applies properties at the highest level of the hierarchy, giving the most flexibility for edits and transformations. |
|
Style Attributes |
Creates the most readable code, but may increase file size. Select this if you plan to use transformations, such as Extensible Stylesheet Language Transformation (XSLT). |
|
Style Attributes (Entity References) |
Results in faster rendering and a smaller file size. |
|
Style Elements |
Lets you move style elements into an external stylesheet that an HTML document can also reference, which is useful when you're sharing files with HTML documents. This option results in slower rendering |
Include Unused Graphic Styles
Includes all unused graphic styles as CSS within the SVG file.
Decimal Places
Specifies the precision of vector data in the SVG file, from 1 to 7 decimal places. Higher values create larger files but preserve more detail and image quality.
Encoding
Determine how characters are encoded in the SVG file.
Option | Description |
ISO 8859-1 | Doesn't preserve file metadata. |
Unicode (UTF-8) | Uses an 8-bit Unicode Transformation Format encoding, supported by all XML processors. |
Unicode UTF-16 | Uses 16-bit encoding format. Doesn't preserve file metadata. |
Output fewer tspan elements
Lets Illustrator ignore autokerning settings during export, resulting in fewer tspan elements and a more compact, editable file. Deselect this option if preserving the exact appearance of autokerned text is critical.
Use textPath element for Text on Path
Exports text on a path as a textPath element. Text may appear differently in an SVG viewer than it does in Illustrator, and overflow text remains visible.
Responsive
Makes the SVG file readable by CSS in webpages.
Include Slicing Data
Includes slice locations and optimization settings in the exported file
Include XMP
Includes XMP metadata in the SVG file. Select File > File Info, or use Adobe Bridge, to add or view metadata.
SVG Code
Displays the code of the exported SVG file in a text editor.
Web Preview
Displays the exported SVG file in a browser window.
Design with precision in Illustrator
Bring your ideas to life with vector graphics tools built for creative freedom and accuracy.