How to use
- Paste your SVG markup into the box, or upload a
.svgfile. - Pick what to remove — comments,
<title>/<desc>/<metadata>, editor data, and whitespace are all enabled by default. - The before/after byte count and the percentage saved update instantly as you type or toggle options.
- Copy the minified SVG to your clipboard, or download it as a new
.svg.
What gets removed
Optimisation is deliberately conservative — it only touches things a browser ignores:
- Comments — comment blocks left by editors or hand-authoring.
- Metadata — the XML declaration, the DOCTYPE,
metadata,title, anddescelements. - Editor data — Inkscape/Sodipodi/Adobe namespaced attributes and their namespace declarations.
- Whitespace — indentation, line breaks, and the gaps between tags.
The shapes, paths, fill colours, and viewBox that make up the actual artwork are never altered, so the output renders pixel-for-pixel the same.
Why minify SVG
Editor exports are verbose. A 2 KB icon can easily be half metadata and indentation, and when you ship dozens of inline icons that overhead repeats on every page. Smaller SVGs download faster, parse faster, and produce cleaner diffs in version control. Stripping the cruft is the cheapest performance win available for vector graphics.
Private by design
The optimiser runs entirely in your browser through a pure JavaScript string transform — no upload, no server round-trip. That keeps it instant and keeps confidential logos and client artwork on your own machine.