Image tools
SVG Optimizer & Cleaner
Clean SVG whitespace and remove active or external content that can pose a risk when opening untrusted SVG files. Sanitization can change unsupported SVG behavior; always review the preview and keep your original.
Runs in your browser - files are never uploaded Image tools
← All tools SVG Optimizer & Cleaner
Minify and sanitize SVG markup, then inspect a sandboxed preview.
Drop files here, or browse
Choose files from your device
Tip: paste an image with ⌘/Ctrl + V
How to use it
- Upload an SVG or paste SVG markup.
- Inspect the isolated sanitized preview and size comparison.
- Download the cleaned SVG.
Frequently asked questions
Does optimization preserve every visual effect?
Not guaranteed. Unsupported or unsafe elements can be removed, so review the preview before using the output.
Are SVG scripts executed?
No. The preview is sandboxed and scripts, event handlers, foreignObject and external resource references are removed.
Is the file uploaded?
No. Parsing and sanitization happen in your browser.