SVG Optimizer

Optimize your SVG.
Reduce its file size.

Make your SVG file smaller in your browser. Round long numbers, shorten colors and minify the code, then compare the result with the original.

Open your SVG
  1. Import
  2. Mode
  3. Settings
  4. Download
No SVG selectedChoose a file to begin

Open your SVG

Choose a file or drop it here to get started.

Your file is processed in your browser.

How it works

Compare the size before and after

Each setting shortens or removes one kind of code. A lower precision saves more but can move fine details, so compare Original and Result before you download.

  1. Open your SVG, or try the example.
  2. Choose the settings, then select Optimize SVG.
  3. Compare the result with the original and download it.

SVGenic

Ready to make variations?

SVGenic turns the layers of one SVG into many variations: new colors, interchangeable layers or pixel art. Previews are free.

A flower illustration with petals, leaves and a pot, used as example artwork for optimizing an SVG.
Botanical study · example SVG artwork

Minify SVG code and reduce the file size

Design apps often write more code than a drawing needs: numbers with many decimals, long color codes, comments, empty groups, indentation and line breaks. SVG Optimizer rewrites that code in a shorter form to make the file smaller.

Choose the precision of numbers and what to remove, then compare Original and Result in the preview. The file size before and after is shown, so you can see the difference before you download one optimized SVG.

  • Make SVG icons and illustrations lighter for a website.
  • Minify an SVG before you paste it into HTML or CSS.
  • Shorten the long decimal numbers of a design app export.

A few things to know

What does the optimizer change?

Depending on your settings, it rounds numbers to a lower precision, shortens color codes, removes comments and empty or hidden elements, and removes indentation and line breaks. Removing the title and description, which can describe the image to screen readers, and removing unused IDs are off by default. Scripts and external links are removed when the file is opened.

Will my SVG look the same?

Rounding numbers can move small details, most of all at Low precision. Compare Original and Result in the preview before you download, and choose Medium or High if something moved.

How much smaller will my file be?

It depends on how the file was written: exports with long numbers, comments and indentation have the most to remove. The file size before and after is shown with the result.

Where is my file processed?

Your SVG is optimized in your browser. When usage statistics are configured, the tool sends its name and an export-request event.