Skip to content

SVG Compressor

Minify SVG files by removing comments, metadata, editor cruft and redundant whitespace.

How to use the SVG Compressor

  1. Add one or more SVG files.
  2. Press Minify.
  3. Compare the original and minified sizes, then download the cleaned files.

What minifying an SVG removes

SVG is a text format, and files exported from drawing applications carry a lot of material that browsers ignore: XML comments, editor metadata blocks, document titles generated by the export process, processing instructions and generous indentation. Stripping all of that leaves the drawing instructions untouched while making the file meaningfully smaller.

What is deliberately left alone

Path data, shapes, gradients, IDs, classes and inline styles are preserved exactly. Rewriting path coordinates or merging shapes can change how a drawing renders, so this tool does not attempt it. The result is a file that is smaller but visually identical.

Getting SVG files smaller still

  • Export at the smallest sensible precision from your drawing tool — coordinates with six decimal places cost bytes and change nothing.
  • Delete hidden layers before exporting; they are still written into the file.
  • Serve SVG with gzip or Brotli compression enabled on the server. Text compresses extremely well.

Frequently asked questions

Will the image look different afterwards?
No. Only material that browsers ignore is removed; the shapes and styling are untouched.
How much smaller do files get?
Exports from drawing applications often shrink by 20–50%. A file that was already hand-written and tidy will barely change.