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
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
Compress PNG
Shrink PNG files and keep their transparency. Everything happens on your device.
Compress JPEG
Make photos lighter for the web and email. Nothing leaves your device.
Compress WebP
Squeeze WebP files further, with transparency intact.
Compress AVIF
The smallest files for photos, encoded on your own device.
Compress GIF
Shrink animated GIFs and keep the motion. Everything happens on your device.