🧷 SVG Viewer & Editor

Inspect icons and logos before you use them: preview SVG code safely, fix size and viewBox, strip risky content and export a clean SVG or PNG.

✅ Free · No sign-up
Open an .svg file or paste SVG code below
Safe preview
SVG preview

How to use the SVG Viewer & Editor

  1. Open an SVG file or paste its code.
  2. Press Validate & preview: syntax errors are reported with their line, and risky content is listed.
  3. Edit the code, change width/height (the viewBox is kept so it scales cleanly) and test backgrounds.
  4. Download the sanitised SVG, copy it, or export a PNG at 1×, 2× or 4×.

Why creators use it

Good to know

Frequently asked questions

Why is SVG risky?

SVG is XML that can contain scripts, event handlers and links to external resources. Opened directly in a browser or inlined in a page, a malicious SVG can run code (XSS).

What does the sanitiser remove?

Scripts, event handlers (onload, onclick …), foreignObject, javascript: links, external references in href, url() and @import, and other elements outside the SVG allow-list (DOMPurify SVG profile).

Is my SVG uploaded?

No. Everything runs in your browser.

Related tools