.svg.svgz
SVG file: what it is and how to open it
An SVG file is a drawing written as shapes, lines and text in XML code, so it stays sharp at any size. Drop one here to see the picture, zoom in and read its code.
Drop your SVG file here
Opens on this device. Nothing is uploaded. Any other file works too.
What is an SVG file?
SVG (Scalable Vector Graphics) describes a picture as shapes, curves and text rather than pixels, so it looks crisp on any screen and the file is often tiny. Websites use it for logos, icons, charts and maps, and vector drawing apps such as Inkscape use it as their own format.
The W3C, the web’s main standards body, published SVG 1.0 in September 2001. SVG 1.1 (2003, second edition 2011) is the version apps implement most fully; SVG 2 is still a Candidate Recommendation. Every major browser draws SVG.
Because an SVG is a document, it can also carry scripts and links. A browser runs those scripts when you open the file itself, but not when a web page shows it as an image, and our viewers never run them. Treat an SVG from a stranger like a web page, not a photo.
What is inside
The file is XML text. A root svg element sets the drawing’s own coordinate system (the viewBox), and the elements inside draw it: rect, circle and path make shapes, text holds real, searchable letters, g groups parts and defs stores gradients and patterns used elsewhere. Styling sits in attributes or CSS.
A picture inside an SVG is either embedded as data or linked by address, and a linked picture or web font that cannot be reached leaves a blank. An .svgz file is the same XML compressed with gzip, so it starts with the bytes 1F 8B instead of readable text.
badge.svg<?xml version="1.0" encoding="UTF-8"?>optional XML declaration<svg xmlns="http://www.w3.org/2000/svg"the root element viewBox="0 0 120 40">the drawing’s coordinates <defs> gradients, patterns </defs>pieces reused below <rect width="120" height="40" rx="8"/>a rounded rectangle <path d="M10 30 L20 10 L30 30 Z"/>an outline, as pen moves <text x="40" y="26">Ready</text>real text you can search</svg>How to open an SVG file
Windows
- Microsoft EdgeBuilt in. Drag the file into a tab to see the drawing at any zoom. Opened this way, scripts inside the file can run.
- InkscapeFree and open source. SVG is its main format, so it edits the drawing and exports PNG or PDF.
- Universal File Opener for WindowsOursShows SVG and SVGZ drawings offline without loading anything from the internet. View only.
Mac
- SafariBuilt in. Drag the file into a window to view it.
- InkscapeFree and open source. Edits SVG and exports PNG or PDF.
Android
- Universal File OpenerOursViews and zooms SVG and SVGZ offline with scripts switched off, shows the XML with View as text, and saves compressed or plain copies.
In a browser
- Chrome, Edge, Firefox or SafariEvery major browser draws SVG. Drag the file into a tab.
- Universal File OpenerOursDrop the file on this page to see the drawing, zoom in and read its code. Scripts and links never run, and nothing is uploaded.
Won’t open?
File Explorer shows a blank icon
Windows does not draw SVG thumbnails. Microsoft’s free PowerToys adds them: turn on File Explorer add-ons in its settings to get SVG thumbnails and Preview pane previews.
It opens as code in a text editor
An SVG is text, so editors show the XML. Drag it into a browser, or right-click, choose Open with and pick Edge or Inkscape. If a browser reports an XML error, the file is damaged or incomplete.
Parts of the drawing are missing
The SVG links to pictures or fonts stored elsewhere, and viewers that show SVG as an image never load them. Ask the sender for a copy with pictures embedded and text converted to outlines.
A website or app takes only PNG or JPG
Many upload forms accept only pixel images. Export a PNG at the size you need with Inkscape, as below, and keep the SVG as the master copy.
Convert an SVG file
- To PNGIn Inkscape choose File, Export, pick PNG, set the width in pixels and click Export.
- To PDFIn Inkscape choose File, Export and pick PDF. Shapes and text stay sharp at any zoom.
- To SVGZ or plain SVGIn Universal File Opener for Android, open Image tools and choose Compress to SVGZ or Decompress SVGZ. Each saves a copy.
SVG files in our apps
Universal File Opener shows SVG and SVGZ drawings offline on Android and Windows, and on this page, with scripts and links switched off. On Android you can also read the XML and save compressed or plain copies.
All Android tools and limits for SVG files
- View and zoom supported SVG and SVGZ images.
- Compress to SVGZ or decompress an SVGZ, saved as a copy.
- Use View as text in the More menu to read and search the XML source, or View as raw bytes to inspect the file.
Limits
- No visual vector editor, raster-image export, PDF generation or printing for SVG.
- Rendering is static; SVG scripts do not run.
Walkthrough: Edit text, code and data on Android