What it does
SVG is text, so comments, metadata, editor namespaces and extra whitespace inflate the file. This tool applies conservative cleanup, previews the result and reports the byte saving.
How it works
Paste SVG markup or upload a .svg file.
Click Optimize SVG.
Compare original and optimized sizes and inspect the preview.
Copy or download the cleaned SVG.
When to use it
- Shrink inline SVG icons in a component.
- Clean an SVG exported by a design tool.
- Compare the byte saving before adding a build step.
Glossary
- SVG
- An XML-based vector image format.
- Minification
- Removing characters without changing meaning.
- Path data
- The d attribute that describes SVG shapes.
Frequently asked questions
Does it change the geometry?+
No. It only removes comments and whitespace, so path data and attributes stay as written.
Is it safe for text elements?+
Mostly, but whitespace can be significant inside text and tspan. Review those files manually.
Should I remove width and height?+
Only if you control sizing with CSS or a viewBox. Removing both can make an icon collapse.
Can it remove metadata?+
It removes comments, not title, desc or ARIA attributes. Keep those for accessibility.
Why is the saving small?+
Hand-written SVG with little indentation has little to remove. A full optimizer also rewrites numbers and paths.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/svg-optimizer?v=%3Csvg%3E...%3C%2Fsvg%3E

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


