SVG viewer and preview

Paste SVG code or open an .svg file and see it rendered as you type, with its size and viewBox. Save it as a PNG or JPG when you need an image.

SVG code

Paste SVG markup (must contain an <svg> element) or upload a file up to 500 KB. Your code stays in your browser and is never sent to a server.

Preview

Your SVG will appear here once you paste or upload code.

PNG preserves transparency. JPEG uses a white background. Clipboard copy is PNG.

Guides · SVG code to PNG · SVG code to JPG · SVG code to SVG file · SVG to JPG

How to view an SVG online

  1. 01

    Paste or open an SVG

    Paste SVG markup, or upload an .svg file up to 500 KB.

  2. 02

    See it rendered

    The preview updates as you type, with the size, viewBox, and file size underneath. Scripts and other unsafe elements are removed first.

  3. 03

    Save it if you need to

    Download a PNG or JPG at 500 to 2000 px on the longest edge, or save the markup as an .svg file.

Need to make your code look great too?

Paste code, pick a theme, and download a PNG with syntax highlighting.

Open Code to image

Also need to convert HTML code?

Turn any HTML markup into a PNG or JPEG.

HTML code to image converter

FAQ

Questions

Everything you need to know about the SVG viewer.