SVG Viewer
Paste SVG markup or open an .svg file to preview it, check its dimensions, and export it as PNG or a data URI.
Paste SVG markup or open an .svg file to preview it, check its dimensions, and export it as PNG or a data URI.
Paste SVG markup or open an .svg file and the preview updates as you type. Switch the background between a checkerboard (to see transparency), white and dark (to check icons that use currentColor or white fills), and zoom to 50%, 200%, 400% or fit. The info line shows the rendered size, the viewBox, the number of elements and the file size, and warns about embedded scripts.
| Button | Gives you | Use it for |
|---|---|---|
| Download PNG (1×, 2×, 4×) | A raster image rendered by your browser | Places that do not accept SVG: social posts, some email clients, app store assets |
| Copy data URI | url("data:image/svg+xml,…"), URL-encoded | CSS backgrounds and icons without an extra request; usually smaller than Base64 |
| Copy Base64 URI | data:image/svg+xml;base64,… | Tools that require Base64, such as some email builders |
| Download .svg | The cleaned, well-formed SVG | Saving pasted markup as a file |
The viewBox defines the SVG's internal coordinate system; width and height define how big it is drawn. An SVG with a viewBox but no width or height scales to fill its container, which is ideal for responsive icons. If both are missing, browsers fall back to 300×150 pixels, a common reason for an SVG looking tiny or cropped. The viewer derives the size the same way browsers do.
& must be written &. The error shows the parser's message.The preview renders the SVG as an image, and browsers never run scripts or load external resources in SVGs shown as images. The tool also flags any <script> elements so you know they are there.
No. Parsing, preview and PNG export run in your browser.
No. Turning pixels into vector shapes (tracing) is a different job; this tool goes from SVG to PNG.