SVG Optimizer
Shrink SVG files with real minification that keeps the artwork intact.
Quick answer: enter your details below and click Optimize SVG — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
S
Image & Design
Enter your details below.
How to use
- Paste your SVG code
- Choose decimal precision
- Copy the optimized SVG and check the byte saving
About this tool
This tool really minifies your SVG in plain JavaScript: it strips XML comments, collapses whitespace between tags, trims attribute spacing, and shortens long decimals to your chosen precision. Before and after byte counts are shown so you can verify the saving. It does not rasterize or re-draw the artwork.
Frequently asked questions
Does optimization change how the SVG looks?
At normal precision it should look the same; very low precision can shift fine curves, so check the preview.
Is my SVG uploaded anywhere?
No, minification runs on the text you paste, in the page itself.