Skip to content
hateitall

SVG Viewer

Look at an SVG from anywhere without running anything hidden inside it, and turn it into a PNG at the size you need.

Processed locallyIn: SVG, SVGZOut: PNG, SVG

Loading tool…

How to use svg viewer

  1. Paste SVG markup or open an .svg or .svgz file.

  2. Check the safety panel for anything that was removed before the preview.

  3. Zoom in or out and switch between checker, white, dark or your own background.

  4. Set a width, or press 1×, 2× or 4×, and download a PNG, or download the cleaned SVG.

What this tool does

  • Removes scripts, on* event handlers, foreignObject, embedded frames, external and javascript: links, remote CSS imports and animations that rewrite links, and lists each one.
  • Draws the cleaned SVG as an image, which browsers never let run scripts or fetch resources.
  • Works out the real size from width, height and viewBox, including mm, pt and inch units.
  • Exports PNG at any width up to 8192 pixels, transparent or on the chosen background colour.

How the result is verified

The PNG is decoded again after encoding and its width and height compared with the size you asked for before it is saved.

Frequently asked questions

Can an SVG really contain a virus?

An SVG is a document that can carry JavaScript. Opened directly in a browser tab it can run that script, for example to phish or track. This viewer removes scripts and handlers and only ever draws the file as an image.

How is this different from the SVG to PNG converter?

The converter is a quick one-click job. Here you see the file first, get a safety report, and choose the exact PNG width or scale.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

viewBox, size, elements, colours, fonts, ids and a safety report

SVG · SVGZ→ ReportLight on device

Minify SVG, strip editor metadata, verified by pixel comparison

SVG · SVGZ→ SVGLight on device

PNG, JPEG, and WebP conversion with explicit transparency handling and per-file batch results.

PNG · JPEG · WebP +→ PNGLight on device

Seamless dots, grids, stripes, waves and more as SVG, CSS or PNG

Colour→ SVGLight on device