How to use it
- 1
Paste SVG code or choose an .svg file.
- 2
Run optimization and check byte savings.
- 3
Download the optimized SVG.
What the tool can do
- Removal of XML declaration, doctype, comments, and metadata.
- Whitespace compaction between tags.
- Blocking of script, inline event handlers, javascript:, and foreignObject.
Common use cases
- Cleaning an SVG icon before publishing.
- Removing editor metadata.
- Quick safe SVG input check.
How it works inside
Optimization uses string transforms without dangerouslySetInnerHTML.
Active SVG content is intentionally blocked.
Questions and answers
Is this a full SVGO replacement?
No. It is a safe local optimizer for basic SVG cleanup before publishing.
Is the SVG uploaded?
No. Processing happens in the browser.
