Sanitize SVG Online

Run a security-minded cleanup that removes risky SVG payloads

Remove scripts? Remove scriptsRemove event handlers? Remove event handlers

FAQ

Quick answers

What does sanitize SVG online actually remove?
Scripts, event handlers, and embedded HTML that can execute or confuse renderers. Drawable geometry stays.
Is sanitizing SVG enough before embedding untrusted files?
It removes common vectors. Still treat untrusted markup carefully — pair with Remove Scripts for a focused pass.
Will sanitize change how my icons look?
Visual paints and paths stay; only risky non-drawing payloads are removed.
Does SVG sanitizing upload my file anywhere?
No. Free browser tool — markup stays on your device.
Remove scripts → Remove event handlers → Remove embedded HTML → Remove unused elements →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina