Skip to main content

SVG Optimizer

Optimize and minify SVG files with SVGO: remove editor metadata, round numbers, shorten paths and shrink files by 30–80%, with before/after preview. Batch and ZIP download.

100% client-side · no data leaves your browser

Options

Lower is smaller; 1–3 is safe for icons

Repeat until nothing more shrinks

style="fill:red" becomes fill="red"

For screen readers

If CSS or JS targets them

Avoid clashes between inline SVGs

Scale with CSS (keeps viewBox)

Drops xmlns, not for .svg files

Optimizing…

About this tool

Make SVG icons, logos and illustrations smaller without changing how they look. Paste SVG code or drop many .svg files at once; the tool runs SVGO in your browser to strip comments, editor metadata (Illustrator, Inkscape, Sketch), hidden elements and unused definitions, round numbers to the precision you choose, shorten path data, convert shapes and merge styles. See the size before and after, the gzipped size and a side-by-side preview, then download the files one by one or as a ZIP, or copy the result as a CSS data URI. Options let you keep titles for accessibility, keep or prefix IDs, remove width and height for responsive SVGs, and prepare SVG for inline HTML.

How to optimize an SVG

Make an SVG file smaller without changing how it looks.

  1. 1

    Add your SVG

    Paste SVG code or drop one or more .svg files.

  2. 2

    Pick options

    Choose the number precision and whether to keep titles, IDs and dimensions.

  3. 3

    Download

    Compare the preview, then download the optimized file, the ZIP, or copy a data URI.