SquishPixel / Compress

Compress SVG

Strip the clutter out of SVG files exported from design tools. Nothing leaves your device.

Drop images here

or , or paste from the clipboard

JPEG, PNG, WebP, AVIF, JPEG XL, HEIC, GIF, SVG · up to 50 images, 50 MB each · nothing is uploaded

Save as
Quality

What gets removed

Design tools save a lot that browsers never use: editor metadata, comments, empty groups, hidden layers and numbers written to six decimal places. SquishPixel removes those with SVGO and rewrites paths in their shortest form.

What is kept

The viewBox, element IDs, titles and descriptions are left alone. IDs are often targeted by a page's own styles or scripts, and titles are what screen readers announce.

Turning an SVG into PNG or WebP

Pick a format under "Save as" and the SVG is drawn to pixels instead. Small icons are drawn at 1,024 pixels on their longest side so the result is large enough to use.

Questions

Compress SVG: common questions

Will my SVG look different afterwards?

It should not. The clean-up only removes or rewrites things that do not change how the drawing is displayed. Use the Compare button to check.

Are scripts inside an SVG run?

No. The file is handled as text while it is cleaned, and it is only ever displayed as an image, where scripts do not run.

More tools

Other formats