.SVG

SVG File

Scalable Vector Graphics
Ask a question
QUICK ANSWER

An SVG file is a Scalable Vector Graphics image - a W3C open standard that stores 2D graphics as XML text, so it scales to any size without losing quality. Any modern web browser opens it instantly: drag the file into Chrome, Edge, Firefox, or Safari. To edit one, use the free Inkscape or Adobe Illustrator. SVG can embed JavaScript, so treat files from unknown sources with the same caution as a web page.

Developer: W3C (World Wide Web Consortium) Category: Vector Image Files Open standard MIME: image/svg+xml
OPENS ON Windows macOS Linux Web
Related: .EMZ · .CDR · .ODG · .VSDX

On this page

19k+ extensions indexed
Last reviewed Jul 9, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SVG file format?

The .svg abbreviation stands for Scalable Vector Graphics, and it is a format for 2D graphic files. SVG is an XML-based language designed to describe 2D graphics in plain text. The .svg format was developed by the *World Wide Web Consortium (W3C)* and is the standard format for displaying vector graphics on the web, becoming a W3C Recommendation in 2001 (SVG 1.1 followed in 2011).

Because text is used to describe vector graphics, the scale of an .svg file can be changed without any quality loss. To put it simply - the content of the file, an image, can be displayed at any size without pixelation, making .svg ideal for icons, logos, illustrations, and UI elements that must look sharp at any resolution.

.svg files can also be compressed using GZIP compression, after which the format changes to .svgz, with the final size reduced by roughly 50-80%.

Due to their textual, XML-based nature, .svg files can be searched, indexed, compressed, and scripted, which makes them perfectly suited for sharing graphics on the web. All modern browsers natively render .svg images without any plugin. .svg files are equally supported by plain text editors and advanced vector editors such as Inkscape or Adobe Illustrator, and they can embed PNG raster images, animations, CSS styling, and interactive JavaScript directly within the file. The MIME type is image/svg+xml.

Security & safety

RISK: MEDIUM

SVG is XML and can EMBED CSS and JavaScript, so an .svg opened in a browser can run scripts - this makes malicious SVGs a real cross-site-scripting, redirect and phishing vector, and SVG e-mail attachments have been used in malware campaigns (a "harmless picture" that actually contains a script or HTML form). Treat unsolicited .svg files like web pages, not images: don't open them from unknown senders, and on websites sanitize uploaded SVGs (strip scripts/event handlers) before serving them. Opening an SVG in a non-scripting viewer or a code editor to inspect the XML is safe. Avoid sketchy "free SVG opener/converter" download sites that bundle adware - the browser and Inkscape cover the real needs.

Format details

in a nutshell
FULL NAMEScalable Vector Graphics
DEVELOPERW3C (World Wide Web Consortium)since 2001 (SVG 1.0 W3C Recommendation); SVG 1.1 (2011); SVG 2 in development
MIME TYPEimage/svg+xml
TYPEXML-based 2D vector graphics (text)
STANDARDOpen · royalty-free

Programs that open SVG files

Windows4 apps
Adobe Illustrator Paid File -> Open the .svg to edit; File -> Export for PNG/JPG. The industry-standard vector editor.
Inkscape Open-source Open the .svg to edit it - Inkscape's native format. Free, full vector editor; exports to PNG/PDF/etc.
Web browser (Chrome, Edge, Firefox) Free Double-click the .svg or drag it into the browser window to view it at full quality.
Code editor (VS Code / Notepad++) Free Open the .svg as text to read/edit the XML markup directly (and preview with an SVG extension).
macOS3 apps
Adobe Illustrator Paid Open and edit the .svg; export raster versions as needed.
Inkscape Open-source Free vector editor; open and edit the .svg, export to other formats.
Web browser / Preview Built-in Open the .svg in Safari/Chrome to view; macOS Preview also renders SVG.
Linux3 apps
GIMP Open-source Import the .svg (rasterizes it at a chosen resolution) for pixel editing/export.
Web browser Free Open the .svg in Firefox/Chrome to view it instantly.
Inkscape Open-source The go-to free SVG editor on Linux (SVG is its native format).
Web1 app
SVG-Edit / boxy-svg (online editors) Freemium Open and edit SVG in the browser with no install (Boxy SVG, or open-source SVG-Edit).

Technical details

deep spec
File structurePlain XML text; human-readable and editable in any text editor without special software
MIME typeimage/svg+xml
Character encodingUTF-8 (declared in the XML header); the file is plain Unicode text with no binary content
ScalabilityInfinite lossless scaling - geometry is defined mathematically, so no pixelation occurs at any size
Compressed variant.svgz - the same SVG XML wrapped in gzip; file size typically 50-80% smaller
Animation supportDeclarative SMIL animations and CSS animations/transitions are both supported
ScriptingJavaScript can query and modify SVG elements through the standard DOM API, enabling interactivity
StylingCSS can be applied via inline style attributes, embedded <style> blocks, or external stylesheets
Coordinate systemInfinite canvas with user-defined units; the viewBox attribute maps document coordinates to the viewport
Shape primitivespath, circle, rect, ellipse, polygon, polyline, line - plus gradients, patterns, masks, and filter effects
Browser renderingNative support in all modern browsers (Chrome, Firefox, Edge, Safari) - no plugin required
Embedding in HTMLCan be used inline as <svg>, referenced via <img>, <object>, <embed>, or as a CSS background-image
AccessibilityText nodes are machine-readable; supports <title> and <desc> elements plus ARIA attributes
Raster embeddingExternal raster images (PNG, JPEG) can be embedded via <image> elements using file paths or data URIs
File identificationNo binary magic bytes; identified by the <svg root element, optionally preceded by an XML declaration or DOCTYPE
Released2001 (SVG 1.0 W3C Recommendation); SVG 1.1 (2011); SVG 2 in development
Open standardYes · royalty-free
Specificationwww.w3.org

SVG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SVG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SVG files.

Frequently asked questions

How do I open an SVG file?
Just open it in any web browser (Chrome, Edge, Firefox, Safari) - double-click or drag it in and it displays at full quality. To EDIT it, use the free Inkscape or Adobe Illustrator; since it's XML text, you can also open it in a code editor.
How do I convert an SVG to PNG or JPG?
Open it in Inkscape or Illustrator and Export as PNG (keeps transparency) or JPG (flattened), choosing your pixel size - or use a reputable online converter. Pick the resolution you need, because the raster result won't rescale losslessly like the original SVG.
Why won't my SVG open / why does it show as code?
If it opened in a text/code editor you'll see the raw XML - that's normal; open it in a browser to view the image instead. If a browser shows a broken icon, the file may be invalid XML, empty, or actually a different format with the wrong extension.
Can I open an SVG in Cricut / Silhouette?
Yes - SVG is the preferred cut-file format. Import it into Cricut Design Space or Silhouette Studio; each path becomes a cut line. Ungroup/clean up the SVG first if the cut lines come in wrong.
Is it safe to open an SVG file?
Mostly, but not always: SVG can contain JavaScript, so a malicious SVG opened in a browser can run scripts (a known phishing/XSS trick, including via e-mail attachments). Don't open .svg files from unknown senders, and websites should sanitize user-uploaded SVGs.
How do I edit an SVG file for free?
Use Inkscape (free, open source, SVG is its native format) on Windows/Mac/Linux, or a browser-based editor like Boxy SVG or SVG-Edit. For quick markup tweaks, edit the XML in VS Code.

References

1W3C - SVG 2 specificationwww.w3.org
2MDN Web Docs - SVGdeveloper.mozilla.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.PARTPartial Download File
8.BINCD/DVD Disc Image (BIN/CUE)
9.DBSQLite Database File
10.JSONJavaScript Object Notation file

Related extensions

.EMZWindows Compressed Enhanced Metafile
.CDRCorelDRAW image / drawing
.ODGOpenDocument Graphics (Drawing)
.VSDXMicrosoft Visio Drawing (2013+)
.AIAdobe Illustrator Artwork
.EPSEncapsulated PostScript

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z