← back to tools

SVG Compressor

Strips comments, editor metadata & rounds path precision β€” visually lossless. Batch up to 20 files.

Processed in your browser β€” files never leave your device
πŸ—œοΈ

Drop SVG files here

or browse to upload Β· supports multiple files

Precision
2 decimals
β€”Saved
β€”Reduction
β€”Files

How it works

What does compression remove?

Comments, XML declarations, editor namespaces (inkscape:, sodipodi:), empty <defs>/<title>/<desc> tags, redundant whitespace, and rounds numeric precision in path data. Your artwork renders pixel-identical.

Is this actually lossless?

Visually yes β€” geometry is preserved within the precision you set. We don't rewrite paths, merge shapes, or guess at "unused" attributes, which is how naive minifiers break rendering. Compare before/after with the live preview to confirm.

What's the precision slider for?

SVG coordinates are often exported with 6+ decimal places that are invisible on screen. Rounding to 1–2 decimals usually cuts path data size significantly with zero visible difference. Higher precision = safer but smaller savings.

100% private β€” zero upload

Everything runs inside your browser using the native DOM parser. Files never touch a server. Works offline once the page loads. No accounts, no limits, no watermarks.