Skip to content

Compress SVG

Make your SVG files lighter while they keep looking sharp. Works on many files at once.

Task limit reached

Premium feature

This feature requires you to be Premium. Upgrade to unlock it and get higher limits, AI tools and an ad-free experience.

Upgrade to Premium

How to compress an image

  1. Select or drop up to 30 JPG, PNG, SVG, GIF or WEBP images.

  2. Keep Recommended, or choose Smallest that looks the same for JPG and WEBP files.

  3. Click Compress, then download each image or all of them in a ZIP.

Compress SVG files by cleaning up the code

An SVG is a text file that describes shapes, and files exported from design tools often carry editor metadata, comments, hidden elements and long numbers nobody needs. This page minifies SVG files by removing that clutter and simplifying the code over several passes, so icons, logos and illustrations load faster on your website. The drawing stays a vector, so it still scales cleanly to any size.

Some parts of an SVG are left as they are. A photo or bitmap embedded inside the file isn't recompressed, so an SVG that carries a picture stays large, and it is often better to save that picture separately as JPG or WEBP. The width, height and viewBox are kept, and so are titles, which screen readers can use, so the drawing keeps its size and still scales the same way.

Take care if your website's CSS or JavaScript reaches inside the SVG. The optimizer shortens IDs and removes ones nothing in the file refers to, so a style or script on your page that targets an ID by name may stop matching. Numbers are rounded to a few decimal places, which is invisible at normal sizes but can matter for very precise technical drawings.

Frequently asked questions