Skip to content
M2TOOLKIT

SVG Viewer

Preview an SVG safely and see what's inside it.

  • Free
  • No sign-up
  • Files stay on your device

or drag and drop it here

Your files are processed entirely in your browser using built-in web technologies. They are not uploaded to our servers, and closing the page clears them from memory.

How to use the SVG Viewer

  1. Drop an SVG file or paste SVG code.
  2. Switch backgrounds and zoom to inspect it.
  3. Check size, viewBox and element counts — then convert or optimise it if needed.

What does this tool do?

SVG files are code, and can contain scripts. The preview is sanitised with DOMPurify, so scripts and event handlers are stripped before anything is shown, and you're warned when the file contained them.

Checking on both light and dark backgrounds catches icons that disappear in dark mode. Files are read on your device and never uploaded.

Why use it?

  • Safe, sanitised preview.
  • Light, dark and transparent backgrounds.
  • Structure summary.

Privacy

Your files are processed entirely in your browser using built-in web technologies. They are not uploaded to our servers, and closing the page clears them from memory. There's no account to create and nothing to install.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the svg viewer.