SVG Optimizer
Shrink SVG markup by removing comments, metadata, editor namespaces and ids — the drawing data itself is never touched, with byte savings shown.
How to use
- Paste the SVG markup.
- Read the optimized output and bytes saved.
- Copy the cleaned SVG into your project.
Example
Input: Icon exported from Inkscape with metadata
Output: Clean icon · ~30–60% smaller, rendering unchanged
How it works
The SVG is parsed and redundant attributes, comments and empty groups are removed, then the markup is re-printed compactly. The rendered image is unchanged.
Limits & compatibility
- Structural cleaning only — no path simplification, float rounding or transform collapsing.
- ids and classes are removed on the root element; inner ids survive so fill="url(#…)" references don't break.
- For deep optimisation use a build-time tool (SVGO) in your pipeline.
Privacy
Optimisation runs locally in your browser. Your file is never uploaded or stored.
Related tools
Questions about SVG Optimizer
Is my input private?
Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.
How accurate is the result, and what are the limits?
The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.
What happens to files I open with this tool?
Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.