SVG Optimizer – Minify and Clean SVG Files
Clean up SVG icons and illustrations exported from Illustrator, Inkscape, Figma or Sketch and make them much smaller.
How to use the SVG Optimizer
- Paste or open an SVGPaste the SVG code or open an .svg file exported from Illustrator, Inkscape, Figma or Sketch.
- Choose the optionsPick how many decimals to keep (2 is safe for icons), whether to keep the title for accessibility, and whether to drop width and height so the SVG scales with CSS.
- Compare and saveCheck that the before and after previews look the same, then copy or download the optimized file.
Example
The Inkscape sample shrinks from about 1.2 KB to about 0.3 KB (around 75% smaller) while looking exactly the same.
Numbers like 72.214286 are rounded to 72.21, and editor data such as inkscape:label, sodipodi:namedview and empty <defs> are removed.
Frequently asked questions
Is it safe? Will my SVG change?
Only invisible data is removed and numbers are rounded. With 2 decimals the change is far smaller than a pixel for icons. Always compare the previews, and use 3 decimals for detailed maps or tiny icons drawn at large sizes.
Should I keep the title?
Keep it if the SVG is placed inline in a page and is meaningful, because screen readers can read it. Decorative icons do not need it.
How is this different from SVGO?
SVGO is a command-line optimizer with many more plugins. This tool does the most useful clean-ups in your browser, without installing anything, and never uploads your file.