How to compress an SVG for delivery
When to use an SVG optimizer
Run an SVG optimizer on the copy of a logo, icon, or illustration you plan to publish. It is especially useful when your design editor exports extra markup and the vector paths already look right.
If cleanup barely changes the file size, check for embedded bitmap images or complex paths. In your vector editor, remove unused layers or simplify a copy of a path. Check the fine details at the smallest size you plan to use before exporting again.
Check what changed
The compressor removes ordinary comments and empty groups, and trims extra spaces in path commands. It keeps recognized license notices and the original numeric precision. If the result is not smaller, the tool keeps the original.
Compare at the size you will use
Keep the original and open the compressed file alongside it. Check thin strokes, text, and transparent edges at the intended display size. For a raster comparison, use the SVG to PNG converter to export both files at the same pixel dimensions.
Save a separate delivery copy
Keep the editable SVG alongside your compressed and raster exports. The SVG workflow guide covers the checks to make before sharing or publishing the files.