Format at a glance
- Full name
- Scalable Vector Graphics
- File extensions
- .svg
- MIME types
- image/svg+xml
- Category
- Images
- Compression
- Lossless
- Transparency
- Yes
- Animation
- Depends on the content
- Properties
- Vector graphics, Alpha channel, Animation
Suitable tools
What is this format?
Scalable Vector Graphics describes visual objects rather than a fixed pixel grid. An SVG document can contain paths, gradients, clipping, text, embedded raster images and metadata.
SVG can also reference external resources or include animation and scripts. Support and security policies differ by embedding method, so untrusted SVG should be treated as active document content rather than as a harmless bitmap.
What is it used for?
- Logos and responsive interface icons
- Charts, maps and technical diagrams
- Illustrations that need resolution-independent scaling
- Graphics styled or animated with CSS in web applications
Which programs can open it?
- All current major web browsers
- Inkscape
- Adobe Illustrator and Affinity Designer
- Text and code editors for inspecting XML source
Support across devices and browsers
Browsers and vector editors open SVG; file preview behavior varies.
Safari, Preview and vector applications support common SVG graphics.
Browsers and Inkscape provide strong SVG support.
Browsers display SVG; gallery apps may not treat it as a photo.
Safari and compatible design apps display SVG.
SVG is a standard web format, but script, font and external-resource behavior depends on how it is embedded.
Advantages
- Scales without pixelation
- Text-based and often compact for simple graphics
- Supports shapes, text, gradients, transparency and accessibility metadata
Disadvantages
- Complex illustrations can become large and slow to render
- Not suitable for ordinary photographic pixel data
- Scripts and external references require security care
Comparison with alternatives
SVG scales as vectors; PNG is a fixed raster image and is more predictable for pixel-based effects.
Both can preserve vectors, but PDF is page-oriented while SVG represents a web graphic or document fragment.
WebP is a compressed raster format for photos and graphics; SVG is best for geometry and text.
LocalFileLab support
The browser rasterizes compatible SVG content for image conversion.
Raster images can be wrapped in an SVG document as an embedded PNG; this does not trace them into true vectors.
Generic compression can repackage or rasterize content; no dedicated SVG optimizer is implemented.
Compatible SVG can be previewed by the browser.
SVG XML metadata and active content are not guaranteed to survive raster conversion.
Related formats
Frequently asked questions
Is SVG a vector format?
Yes. Its main drawing model uses vector shapes, paths and text, although an SVG can also embed raster images.
Can SVG contain JavaScript?
The format can contain scripts and external references. Browsers apply security restrictions depending on whether the SVG is loaded as an image, document or inline markup.
Does converting PNG to SVG create real vectors?
Not in LocalFileLab's current path. It embeds the raster pixels inside an SVG wrapper; automatic vector tracing is a different operation.