SVG Minifier
Optimize and minify SVG files with SVGO 4 and its default preset. The tool removes editor metadata and comments, collapses useless groups, converts simple shapes to compact paths, shortens colors and rounds numbers to the precision you choose, with optional multiple passes for extra savings. It checks the markup first and keeps the viewBox, which suits designers and developers shipping icons and illustrations.
Frequently asked questions
Which optimizer is used?
The tool runs SVGO 4.1 with its default preset on the server. It is the same optimizer that many build tools and icon pipelines use.
What does the default preset change?
It removes editor data, metadata and comments, drops empty or hidden elements and collapses useless groups. It also converts rectangles and other shapes to paths when shorter, optimizes path data and transforms, and shortens colors such as #ffffff to #fff.
What does the precision setting do?
Precision is the number of decimal places kept in coordinates and other numbers, from 0 to 8 with 3 as the default. Lower values give smaller files but can shift fine details.
What is multipass?
With multipass on, SVGO repeats the optimization until the result stops shrinking. It is on by default and usually saves a little more.
Is the viewBox kept?
Yes. SVGO 4 no longer removes the viewBox or the title by default, so icons keep scaling correctly and accessible titles stay in place.
Does it sanitize untrusted SVG?
No. SVGO optimizes markup but does not remove scripts or event handler attributes. Do not treat the output as safe to embed from untrusted sources.
What input is accepted?
Well-formed SVG markup whose root element is <svg>, optionally with an XML declaration and comments in front. Broken markup is reported with its line and column, and a document with another root element is refused.
How large can the SVG be?
Up to 1 MB of markup per request. Optimization stops after 10 seconds.
Can I paste SVG exported from Figma, Illustrator or Inkscape?
Yes. Exports from design tools often carry extra metadata, editor namespaces and long numbers, which is exactly what this tool removes.
Is my SVG stored?
No. The markup is optimized in memory and returned to you. Nothing is saved and only request sizes are logged.