How to use the SVG Minifier tool
- Paste SVG code or open an .svg file.
- Adjust options such as decimal precision if needed.
- Click “Minify SVG” and compare the before and after previews.
- Copy the code or download the optimized file.
What gets removed
- Editor data from Adobe Illustrator, Inkscape, Sketch and Figma.
- Comments, metadata, empty groups and hidden elements.
- Unneeded precision, such as 12.000001 becoming 12.
- Redundant attributes and default values; paths are rewritten in a shorter form.
Safe defaults
The viewBox is kept so the SVG still scales correctly in CSS, and you can keep the <title> element for accessibility. If your code references element IDs from CSS or JavaScript, keep the “Keep IDs” option on. The optimizer is SVGO, the same tool used by most build systems.
Privacy
Everything runs in your browser. Your files and text are not uploaded to our server or stored anywhere.
Where to use the optimized SVG
- Icons and logos on websites, inline in HTML or as image files.
- Icon sets in React, Vue and other front-end projects.
- Email signatures and newsletters: smaller files load faster, though some email apps prefer PNG.
- Maps, charts and diagrams exported from design or data tools, which are often the most bloated.
Getting even smaller files
Most of the size of an exported SVG is path data. Simplifying shapes in the design tool (fewer anchor points, merged shapes, outlined text converted carefully) saves more than any optimizer can. Embedded raster images inside an SVG, often added by accident, can make a file hundreds of kilobytes; remove them or use a real PNG or WebP instead.
On a website, also make sure the server compresses SVG files with gzip or Brotli: SVG is text and compresses very well.
Frequently asked questions
How much smaller do files get?
SVGs exported from design tools usually shrink by 20 to 70 percent.
Will my SVG look different?
It should look identical. Check the preview. If small details shift, increase the number precision.
Can I use the result inline in HTML?
Yes. Copy the optimized code and paste it straight into your page, or save it as an .svg file.
Is the SVG checked for scripts?
The tool optimizes code but is not a security sanitizer. Do not trust SVGs from unknown sources on your site without sanitizing them.
Can I minify several SVG files at once?
Open and optimize them one by one. For whole icon libraries, the same optimizer (SVGO) can run in a build step of your project.
Does it change colours or fonts?
No. Colours are only written in a shorter form, for example #ffffff becomes #fff. Text elements keep their font settings.