Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

SVG Optimizer — Compress SVG Online with SVGO

Clean up SVGs exported from Figma, Illustrator, Inkscape or Sketch with SVGO — and check the before/after preview to make sure the icon still looks right.

Aktualisiert am
Open file

Preview

Original

Original SVG

Optimized

Optimized SVG

Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

So nutzt du: SVG Optimizer

  1. Paste SVG markup or open an .svg file.
  2. Keep the defaults for the best savings, or lower the precision for even smaller paths.
  3. Compare the original and optimized previews to make sure nothing shifted.
  4. Copy the optimized markup or download the .svg.

Why optimize SVG files?

SVGs exported from design tools carry a lot of baggage: editor metadata, comments, hidden layers, default attribute values, empty groups and coordinates with six decimal places. None of it affects how the image looks, but it can make the file two to five times larger than necessary. Inlined SVG icons repeat that bloat in every page.

What SVGO does

SVGO is the standard SVG optimizer used by most build tools. It runs a set of safe plugins:

  • Removes the XML declaration, comments, <metadata>, editor namespaces (Illustrator, Inkscape, Sketch) and hidden elements.
  • Collapses useless groups, merges paths where possible and converts shapes to shorter path data.
  • Rounds numbers to the chosen precision and rewrites path commands in their shortest form.
  • Minifies inline styles and colors (#FFFFFF → #fff) and removes default values.
  • Shortens IDs and removes ones that nothing references.

This tool always keeps the viewBox, which is needed for SVGs to scale correctly.

Choosing the precision

PrecisionBest for
1Simple icons drawn on a pixel grid
2–3Most icons, logos and illustrations (default 3)
4–5Detailed illustrations, maps and charts with fine curves

Lower precision means fewer digits and smaller files, but curves can shift slightly — that is what the preview is for.

Width, height and viewBox

Removing width and height lets the SVG scale to its container with CSS, which is usually what you want for icons and inline SVG. Keep them when the SVG is used in an <img> without explicit dimensions.

Next steps: turn the optimized SVG into a CSS background, a React component or a Webflow element.

Auch gesucht als: svgo online, compress svg, minify svg, svg minifier, optimize svg, svg compressor, reduce svg size.

Passende Tools zu: SVG Optimizer

  • SVG ViewBox Scaler — Normalize icons to a new viewBox (e.g.
  • Bildkompressor — Verkleinere Fotos und Grafiken um 50–90 % ohne sichtbaren Qualitätsverlust.
  • Gzip Compress & Decompress — Compress text or any file with gzip, zlib or raw deflate — or paste Base64 / open a .gz file to decompress it.
  • Brotli Compress & Decompress — Compress text or files with Brotli at any quality from 0 to 11, decompress .br data, and compare the result against gzip — all locally in your browser.

Häufige Fragen

How much smaller will my SVG get?
Exports from Illustrator, Figma or Inkscape usually shrink by 30–80 %. Hand-written or already optimized SVGs gain less.
Will optimization change how my SVG looks?
The default plugins are lossless in appearance. Very low precision can move points slightly — compare the previews, and raise the precision if you see a difference.
Why keep the viewBox?
The viewBox defines the coordinate system that lets an SVG scale. Without it, the image may not resize with CSS, so this tool never removes it.
Can I optimize SVG animations or scripts?
SVGO keeps SMIL animations and most CSS. Embedded scripts are kept, but check animated SVGs in the preview, as IDs referenced from scripts are renamed if “Shorten IDs” is on.
Is my file uploaded?
No — SVGO runs in your browser.
Kann ich SVG Optimizer als Web-App installieren und offline nutzen?
Ja. SVG Optimizer ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

Ähnliche Tools