Compress SVG files

SVG files from design tools often carry editor data you do not need. This tool strips that extra text and rounds long numbers. A live preview shows the cleaned art and its new size before you save. The picture looks the same and the file loads faster.

Stays on your device Free
1. Add an SVG

Editor marks and extra spaces are removed.

Drop an SVG here, or click to choose Vector art, icons and logos
Preview of your SVG
SVG preview
New size

—

Press Compress SVG to see the new size.

40%
LightBalancedMaximum
Level 40 keeps the art pixel perfect. From level 90 up, path points round to whole units for a much smaller file. The art stays vector at every level.
Add one SVG file to begin.
Compressed

How to use compress svg

  1. Add an SVG. Drop the file into the box or choose it.
  2. Set the level. Move the slider to clean more or less. Press Compress SVG to see the cleaned art and the new size.
  3. Download. Save the smaller SVG. You can also save a gzipped SVGZ file for web use.

What you get

  • Removes comments and editor data
  • Compression slider from light to maximum
  • Rounds long numbers to two places
  • Live preview of your original and cleaned SVG
  • Optional gzip SVGZ download for web use

Compress SVG questions

Will the picture change?

No. Only comments, editor data and extra spaces are removed. Lines and colours stay the same.

What does the id and class option do?

It removes id and class names. Use it only when the SVG has no scripts or CSS inside.

Can I compress an SVG with text?

Yes. Text elements are kept. The tool does not turn text into paths.

What is SVGZ?

SVGZ is an SVG file compressed with gzip. Many web servers send it as is, and browsers can open it. Tick the gzip option to get one.

Does this tool work offline?

Yes. When you see the crossed wifi mark, the tool is ready. You can turn off the internet and keep using this open page. To open it again later, load the page once while online.