SVG optimizer

Slim down your SVGs with SVGO, right in the browser: pick the precision, drop metadata and comments, compare the sizes before and after and download one at a time or all in a ZIP.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Drop one or more .svg files here, or choose from your computer.

Options

Fewer decimals, smaller file. 3 is fine for almost everything.
Usually no: without a viewBox the image cannot scale.
Screen readers use them: remove only if the image is decorative.
It can break references from CSS and JavaScript.

The safe SVGO preset is used: it does not change how the image looks.

Files

No files yet: add one above.

What changes

SVGO rewrites paths, merges useless groups, shortens colors and removes what is not visible. The default preset is meant not to change the drawing; still check the preview, especially with animations and scripts.

Ids, title and viewBox

To be safe the viewBox, title and ids stay as they were: they are needed to scale the image, for accessibility and for references from CSS and JavaScript. You can remove them in the options.

Where the data goes

Files are read and processed on this page: they are not uploaded anywhere.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain