.svg File Extension
.svg file is, which apps open SVG graphics, how Poly supports them, and when a raster format may work better. File extension details for .svg
Full Support| File type | Scalable Vector Graphics image |
|---|---|
| MIME type | |
| Encoding | XML text, usually UTF-8, with optional embedded raster data |
| Operating systems | Windows, macOS, Linux, iOS, Android |
| Opens with | Web browsers, Inkscape, Adobe Illustrator, Text editors |
| Poly support | Yes. Poly provides rich support for static SVG artwork. |
| Indexed by Poly | Yes. Poly indexes filenames, available dimensions, and visual similarity. |
| Preview in Poly | Yes. SVG files open in Poly's image viewer as a static image. |
| Poly agent | Yes. The Poly agent can understand the visible static rendering. |
What kind of file is an .svg?
An .svg file is a Scalable Vector Graphics image. It normally uses the image/svg+xml MIME type. Unlike a bitmap, it describes shapes, paths, text, gradients, and effects in XML. Logos, icons, diagrams, charts, and maps can therefore stay sharp across different display sizes.1
SVG has no fixed magic byte sequence. A file may start with a byte-order mark, whitespace, a comment, an XML declaration, or the <svg> element itself. To identify one reliably, parse it as XML and confirm that its root is an svg element in the http://www.w3.org/2000/svg namespace.
.svg does not create vector artwork. A converter must decode the source and write valid SVG content.How do I open an .svg on my computer?
Current web browsers display SVG directly, so Chrome, Edge, Firefox, or Safari is usually the quickest viewer.2 Windows, macOS, Linux, iOS, and Android also have apps that use their browser or image-rendering support.
For editing:
- Inkscape uses SVG as its central vector format and can save either Inkscape SVG or plain SVG.3
- Adobe Illustrator opens and exports SVG, though unsupported editing features may be changed or rasterized on export.4
- A text or code editor works for small source changes, generated graphics, metadata, and accessibility labels.
An SVG may contain scripts, links, and external references when used as a document. Treat files from unknown sources cautiously and prefer a trusted, updated viewer. Browsers apply stricter behavior when SVG is loaded as an image, but those restrictions do not apply in every embedding context.5
Poly support for .svg
Poly gives SVG files thumbnails, a static in-app preview, available dimension metadata, visual search, and agent understanding. You can find an SVG by filename or appearance, and the Poly agent can reason about its rendered artwork.
Poly treats SVG as an image rather than searchable source code. Text elements are not indexed as document text. Animation, interaction, links, XML structure, and states outside the static rendering are not available to visual search or the agent. Fonts and externally linked assets can also render differently from the original authoring environment.
History of .svg
W3C published SVG 1.0 as a Recommendation on September 4, 2001.6 It established an open XML language for two-dimensional vector and mixed vector/raster graphics. SVG 1.1 followed, and SVG 2 continues the standard's development.
The specification recommends the lowercase .svg extension on every platform and registers image/svg+xml as its media type.1 The related .svgz convention contains gzip-compressed SVG bytes. It needs decompression before XML parsing and should not be treated as an ordinary uncompressed .svg file.
Working with .svg and alternatives
Choose the format that fits the artwork and destination:
| Need | Good choice | Tradeoff |
|---|---|---|
| Responsive icons, logos, or diagrams | SVG | Complex effects and fonts may render differently |
| Fixed-size lossless pixels or screenshots | PNG | Enlarging reveals pixels |
| Photographs | JPEG, WebP, or AVIF | Usually loses vector editability |
| Print or document exchange | Check page bounds, fonts, and effects |
Export SVG to PNG when a recipient needs a fixed pixel size or cannot display SVG. Keep the SVG master if future resizing or path editing matters. Wrapping a photograph in SVG does not make its embedded pixels resolution-independent, and a complicated SVG can be larger or slower to render than a suitable raster image.2
Footnotes
- World Wide Web Consortium. SVG 2: Media Type Registration for image/svg+xml. ↩ ↩2
- MDN Web Docs. Image File Type and Format Guide: SVG. ↩ ↩2
- Inkscape. About SVG. ↩
- Adobe. How to Save Artwork in Illustrator. ↩
- MDN Web Docs. SVG as an Image. ↩
- World Wide Web Consortium. Scalable Vector Graphics (SVG) 1.0 Specification Publication History. ↩