SVG Optimizer

Minify SVG files in your browser. Strips comments, useless whitespace, default attributes, and rounds long decimals. Files never leave your device.

🔒 Files never leave your browser — no upload, no server, no tracking.
Enter input above to see the result.

What is this for?

This tool runs a tiny set of hand-rolled regex passes over an SVG to shrink its byte size: it strips XML comments, collapses runs of whitespace between tags, drops a handful of attributes that already match their default values, and rounds long fractional coordinates to 2 decimal places. Each pass is a checkbox you can disable. Everything happens in your browser — no upload, no server.

When to use it

Common gotchas