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.

View and check SVG files

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.

Export options

ButtonGives youUse it for
Download PNG (1×, 2×, 4×)A raster image rendered by your browserPlaces that do not accept SVG: social posts, some email clients, app store assets
Copy data URIurl("data:image/svg+xml,…"), URL-encodedCSS backgrounds and icons without an extra request; usually smaller than Base64
Copy Base64 URIdata:image/svg+xml;base64,…Tools that require Base64, such as some email builders
Download .svgThe cleaned, well-formed SVGSaving pasted markup as a file

Width, height and viewBox

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.

Troubleshooting

FAQ

Is it safe to preview an untrusted SVG?

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.

Is my file uploaded?

No. Parsing, preview and PNG export run in your browser.

Can I convert PNG to SVG here?

No. Turning pixels into vector shapes (tracing) is a different job; this tool goes from SVG to PNG.