SVG Optimizer

Shrink SVG markup, keep the pixels identical.

Where SVG bloat comes from

SVGs exported from design tools carry everything the editor needed and nothing the browser does: metadata blocks, editor version comments, generator attributions, empty groups, and coordinates with six decimal places. An icon that should weigh 300 bytes routinely ships at 2-3 KB — multiplied across a page of icons, that's real bytes on the critical rendering path.

This optimizer strips the junk layers: metadata and comments vanish, whitespace collapses, and (optionally) numeric coordinates get rounded to two decimals — imperceptible at any real icon size, often saving another 15-25%. Validate visually afterwards: the cleaned markup renders identically, but always spot-check complex artwork before deleting the original.

FAQ

Is this as thorough as SVGO?

No — SVGO also merges paths, removes unused defs and rewrites path data. This tool does the safe universal passes; run SVGO in a build pipeline when you need maximum squeeze.

Why not just Gzip?

Do both — server compression handles repetition, but shrinking the source reduces parse time and works even when a file is inlined or served uncompressed.