SVG Optimizer

Remove comments, metadata, editor namespaces, and whitespace from SVG files to reduce size.

Runs entirely in your browser — nothing is uploaded or stored on any server.

About SVG Optimizer

Updated Mar 2025

Optimize SVG files by removing XML declarations, HTML comments, metadata elements, editor-specific namespaces (Inkscape, Sketch, Figma), and collapsing whitespace. Optionally remove width/height attributes to keep the viewBox, and round floating-point coordinates to 2 decimal places. Shows size reduction percentage and a before/after visual preview.

Frequently Asked Questions

Related Tools