Skip to content
Zesona
SVG SanitizerLocal

SVG Sanitizer

Remove scripts, event handlers and javascript: URLs from untrusted SVG.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

0 characters

Paste the SVG to clean.

Fill in SVG markup to continue.

Enter your input to see the result

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Paste SVG you received from elsewhere.

  2. 2

    The result removes active content and lists what was stripped.

Questions about SVG Sanitizer

Is SVG a security risk?

It can be — SVG allows scripts and event handlers. This strips the common vectors, but review anything from an untrusted source.

Is my data uploaded?

No. Everything is built in your browser from the values you enter.

Does the SVG Sanitizer work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the SVG Sanitizer keeps working with the network switched off and nothing is ever sent to a server.

Is anything I enter into the SVG Sanitizer uploaded or stored?

No. The SVG Sanitizer runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.

Can I use the SVG Sanitizer on a phone or tablet?

Yes. The page is responsive, so the SVG Sanitizer works the same in a mobile browser as on a desktop, and there is no app to install.

Other tools you might reach for next.