Skip to content
wonderstacked

SVG Optimizer

Shrink SVG files by stripping metadata and redundant data.

Runs in your browser
Loading SVG Optimizer…

How do I make an SVG smaller?

An SVG optimizer shrinks SVG files by removing editor metadata, comments and hidden elements and trimming long decimals. This SVG optimizer uses SVGO in your browser and shows the size you saved before you download the result.

SVGs exported from Illustrator, Figma, Inkscape and Sketch often carry editor metadata, comments, unused definitions, hidden layers and numbers with far more decimal places than any screen can show. Removing them can cut a file by half or more without changing how it looks.

The tool runs SVGO, the standard SVG optimiser, in your browser. Drop one or many files, adjust the options such as decimal precision and which clean-ups to apply, compare the before and after preview and the bytes saved, then download the files or a ZIP.

Aggressive settings can break an SVG that uses IDs for scripts or CSS, or that relies on viewBox details, so check the preview and keep the original. Everything runs locally and the files are not uploaded.

Page updated .

How to use the SVG Optimizer

  1. Drop one or more SVG files.
  2. Review the options and the before and after preview.
  3. Download the optimised files or a ZIP.

Examples

Editor export
Input
logo.svg from Illustrator, 18 KB
Output
About 7 KB after removing metadata and comments
Icon
Input
An icon with 8 decimal places, precision 2
Output
Same appearance, shorter path data

Tips

  • Keep the viewBox so the image scales properly.
  • Lower decimal precision to 2 or 3 for icons to save more.
  • If an animated or scripted SVG breaks, turn off ID cleanup.

Specs & limits

Engine
SVGO (MIT)
Options
Precision and clean-up plugins
Output
Single files or ZIP
Preview
Before and after
Processing
In your browser

Troubleshooting

›Image looks different

Cause: An aggressive option changed it.

Fix: Turn that clean-up off.

›Animation stopped

Cause: IDs or classes were removed.

Fix: Disable ID cleanup.

›Size barely changed

Cause: The file was already minimal.

Fix: Nothing more to remove.

Frequently asked questions

›How much smaller will my SVG get?

It varies, often 30 to 70 percent for editor exports, less for hand-written files.

›Will it change how the image looks?

Normally not. Always compare the preview.

›What is SVGO?

An open-source tool that removes unnecessary data from SVG files.

›Can I optimise many files?

Yes. Drop several and download a ZIP.

›Why did my SVG break?

A clean-up such as removing IDs or collapsing groups affected a script or style. Turn it off.

›Is my file uploaded?

No. It runs in your browser.

More media tools

See all
esc