SVG Optimizer

Optimize SVG files online for free with this SVG optimizer. It removes editor data, comments, hidden elements and extra decimal places from SVG icons, logos and illustrations, often making them 30–80 percent smaller while they look exactly the same. Everything runs in your browser using the trusted open-source SVGO engine.

Private by design: your files are processed in your browser and never uploaded to any server.

Get this tool as a free widget for your website

Copy this code and paste it into any web page (WordPress: use a Custom HTML block). It is free, has no ads, and works on every device.

How to optimize an SVG

  1. Choose one or more SVG files.
  2. Keep Number precision at 2 (recommended), or use 1 for the smallest files and 3 for detailed drawings.
  3. Leave Extra passes on for the best result.
  4. Compare the sizes and download the optimized files (saved as name.min.svg).

What does an SVG optimizer remove?

  • Metadata and comments added by Illustrator, Inkscape, Figma and other editors
  • Hidden, empty and unused elements and definitions
  • Extra decimal places in coordinates (12.345678 becomes 12.35)
  • Default attribute values and redundant groups
  • Long IDs, shortened to save space (optional)

The viewBox is always kept, so your SVG still scales correctly in every browser and design tool.

Why optimize SVG files?

  • Faster websites: inline SVG icons and logos are part of every page load.
  • Cleaner code: easier to edit, animate and style with CSS.
  • Smaller apps and themes: icon sets with hundreds of files add up quickly.

Features

  • Powered by SVGO, the industry-standard optimizer
  • Bulk optimization with ZIP download
  • Precision and ID options
  • Keeps viewBox for responsive scaling
  • Free, private, no upload

Private by design: your images never leave your device

Most online compressors and resizers upload your photo to their server, process it there and send it back. This tool works differently. Everything happens inside your own browser using built-in web technology, so your photos, ID pictures and signatures are never uploaded, stored or seen by anyone. That makes it safe for personal documents, and it also makes it fast: there is no upload or download wait, and it keeps working even on a slow connection once the page has loaded.

Add this SVG optimizer to your website (free widget)

Do you run a blog, school, coaching or business website? You can add this free SVG optimizer to your own page as a widget in under a minute. It works just like the tool above: files are processed in your visitor’s browser and never uploaded, and the widget shows no ads, only a small “Powered by All Tool Widgets” link.

  1. Open Get this tool as a free widget for your website just below the tool.
  2. Pick a button colour that matches your brand and click Copy code.
  3. Paste the code into your page: a Custom HTML block in WordPress, an HTML/JavaScript gadget in Blogger, or an Embed HTML element in Wix and Shopify.

See all embeddable tools on our free widgets page.

What does an SVG optimizer do?

It removes code that is not needed to draw the image, such as editor metadata and extra decimals, so the file is smaller but looks the same.

Will optimizing change how my SVG looks?

No, with the recommended settings the image looks identical. If a detailed drawing changes slightly, choose precision 3.

Is this the same as SVGOMG?

It uses the same SVGO engine that powers SVGOMG and many build tools, with simple recommended settings.

Can I optimize many SVG files at once?

Yes. Select several files and download them all as a ZIP.

Can I convert SVG to PNG or JPG?

Yes. Use our SVG to PNG or SVG to JPG converters.

Are my files uploaded?

No. SVG files are optimized inside your browser and never leave your device.

Can I add this SVG optimizer to my website?

Yes. Copy the free widget code from the box below the tool and paste it into any web page. The widget is free for personal and commercial websites, shows no ads and keeps your visitors’ files private.

More free tools you may need: SVG to PNG, SVG to JPG, Image Compressor, Compress PNG.