Skip to content
Jellykit

SVG Viewer

Preview SVG code or an .svg file safely on a light, dark or checkerboard background, zoomed in or out.

  • Runs on your device
Loading tool

About SVG Viewer

Paste SVG code or drop an .svg file to see the drawing. Switch between a checkerboard, a light and a dark background to check transparency and how an icon reads on either theme, and zoom from 25% to 800%.

The drawing is shown as an image, so any scripts inside it never run and nothing it links to is fetched. Alongside the preview you get its size, viewBox and element count, and a warning if it contains scripts, event handlers or references to other servers.

How it works

  1. The code is parsed as XML. If it is not well-formed, the parser’s message says where it stopped.
  2. The drawing is passed to an image element as a data: address. Browsers never run scripts or load linked files in an image, and a data: address has no access to this site even if opened on its own.
  3. The size comes from the width and height attributes, or from the viewBox when they are missing or relative, as a browser would work it out.
  4. Script elements, on… attributes, javascript: links and addresses of other servers are counted so you know what the file would do elsewhere.

Questions

Is it safe to open an SVG from someone else here?

Yes. SVG files can carry scripts, which is why opening them directly in a browser tab can be risky. Here the drawing is only ever shown as an image, where scripts do not run, and the code never leaves your device.

Why does my SVG look different in another program?

The preview shows what a browser draws in an image. Linked fonts, images and stylesheets on other servers are not loaded, and other programs may not support every feature, such as foreignObject.

How large can the SVG be?

Files and pasted code up to 5 MB. Very complex drawings with hundreds of thousands of shapes may take a moment to draw.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.