SVG Optimizer
Losslessly minify SVG markup — strip comments, defaults, unused IDs, empty groups.
About this tool
Paste an SVG and shrink it. Strips XML comments, normalises whitespace, removes default attribute values (fill='black', opacity='1'), rounds numeric precision and drops unused ids and empty groups. Before/after byte count + preview shown side by side.