SVG sanitizer
Runs in browserStrip scripts, event handlers and unsafe URLs from SVG with an allowlist sanitizer.
or drag & drop
Unsafe content stripped3 removal(s)
- • <script>
- • rect@onclick
- • a@href=javascript:alert(2)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect width="10" height="10" fill="red"/><a><circle cx="5" cy="5" r="3"/></a></svg>
Related tools
SVG editor
Live SVG viewer and editor: fill, stroke, viewBox, background, size and source.
SVG optimizer
Optimize and compress SVG with SVGO, with before/after size savings.
SVG to PNG
Rasterize SVG to PNG at any scale, entirely in your browser.
SVG minifier
Minify SVG markup by removing comments and whitespace.
SVG validator
Check SVG structure, balanced tags and viewBox dimensions.