SVG Optimizer.
Shrink SVG files by removing editor junk, metadata and comments and by rounding coordinates.
Runs in your browserAbout SVG Optimizer
SVG files exported from Inkscape, Illustrator, Sketch or Figma are often two to five times larger than they need to be. They carry editor namespaces such as sodipodi:namedview and inkscape:label, RDF metadata blocks, generator comments, an XML declaration and DOCTYPE that browsers ignore, groups that wrap a single shape and coordinates with six or more decimals. The SVG Optimizer removes that weight while keeping the drawing the same. Paste the markup and the optimized file appears with its size before and after and a live preview. Path data gets the biggest win: commands are rewritten in their compact form, so "M 10.123456,10.987654 L 90.000001,10" becomes "M10.123 10.988 90 10", leading zeros and redundant separators disappear, and repeated command letters are dropped. Rounding is done carefully: relative coordinates are rounded against the already-rounded position, so long chains of small relative moves do not drift. Three decimals are invisible for icons and illustrations drawn in a normal viewBox; use fewer for tiny icons and more for maps or very large coordinate systems. Typical mistakes are rounding to zero decimals on a 24-pixel icon, which visibly distorts curves, and stripping title elements that screen readers use: titles, descriptions, text content and the viewBox are always kept. Comments starting with "!" are kept as licence notices. Malformed markup is reported with its line and column. Everything runs in your browser.
How to Use
- Paste the SVG markup exported from your design tool.
- Choose how many decimal places to keep and which kinds of clutter to remove.
- Check the preview, then copy or download the optimized SVG.
Frequently Asked Questions
Will the optimized SVG look the same?
Yes, apart from rounding. With 3 decimal places the difference is far below one pixel for icons and illustrations. Set the precision field empty to keep every number exactly as it was.
Is this the same as SVGO?
It applies the safe subset of what SVGO does by default (cleanup of metadata, editor data, comments, groups, numbers and path data). It does not merge paths, convert shapes or inline styles, which occasionally change rendering.
Why is my title still there?
Title and desc elements give the image an accessible name, so they are kept. Remove them by hand if the SVG is purely decorative and has aria-hidden.
Is my SVG uploaded?
No. The optimization runs in your browser and the file is never sent to a server.
Related Tools
Render SVG markup or an .svg file to a crisp PNG at any width or scale, with optional background.
Compress PNG and JPEG images with adjustable quality.
Format, minify, and validate XML.
Convert images between PNG, JPEG, WebP and AVIF with adjustable quality, right in your browser.
Encode and decode HTML entities.
Turn one 1024×1024 image into every iOS AppIcon size with Contents.json and Android mipmap icons, as a ZIP.