Skip to main content
Uttir

SVG Optimizer

Minify and clean up SVG markup from any source — strip editor metadata, remove default attributes, round numbers, and see the byte savings. Free, in your browser, no upload.

SVG Optimizer — Paste or drop an SVG and the tool rewrites it in your browser, removing the things designers and tools tend to add but that you don't need on a live page: editor comments, empty group wrappers, default attribute values, and high-precision coordinate floats.

Everything happens in your browser. We never see the SVG you paste — the file is parsed and rewritten on the page and the optimized output is generated locally.

Was SVG Optimizer useful?

What is SVG Optimizer?

Paste or drop an SVG and the tool rewrites it in your browser, removing the things designers and tools tend to add but that you don't need on a live page: editor comments, empty group wrappers, default attribute values, and high-precision coordinate floats.

You control what gets stripped. Numeric precision, comment removal, metadata removal, whitespace collapse, default-attribute removal, and empty-group removal are all independent toggles, so the result is exactly the cleanup you want.

How to use it

  1. Paste or drop an SVG

    You can paste the markup directly, or drop a .svg file onto the input box. The whole file stays in your browser.

  2. Pick your cleanup options

    Each option has a clear name and an obvious effect. The defaults work well for most exports from Figma, Illustrator, and Inkscape.

  3. Copy or download the result

    When you're happy with the cleaned-up SVG, copy it to your clipboard or download it as a new .svg file. The original is not modified.

Examples

Strip Inkscape comments and redundant decimals

Remove XML comments, default attributes, and trailing `.0000` zeros cleanly.

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><!-- Created with Inkscape --><rect x="0.0000" y="0.0000" width="24.000" height="24.000" fill="#000000"/></svg> (174 bytes)

Result: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><rect width="24" height="24"/></svg> (99 bytes — 43% smaller)

Slim down an exported Figma icon set

Paste multi-path SVG markup with redundant group wrappers and precision floats.

1.8 KB raw Figma SVG with ids, <metadata>, and 6-decimal path coords

Result: Compact inline SVG reduced by ~40–65% while preserving exact 24×24 viewBox geometry.

Frequently asked questions

Related guides

Related tools