ToolCabana

SVG-Optimierer

Bereinigt SVG-Markup und entfernt unnötige Metadaten.

Favorites are saved in this browser. Find them in My favorites.

SVG-Optimierer

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

So verwendest du SVG-Optimierer

SVG optimizer cleans pasted SVG markup by sanitizing it and removing metadata elements, comments and whitespace-only text, while keeping title and description elements. It shows the byte count before and after, previews the result and lets you download optimized.svg. Scripts, style attributes, embedded images and animations are stripped during sanitizing.

  1. Füge die Quelle in den Eingabe-Editor ein oder lade das integrierte Beispiel.
  2. Prüfe das Quellformat, bevor du den Vorgang ausführst.
  3. Führe den SVG-Optimierer aus, prüfe die Ausgabe und verwende dann die verfügbaren Bedienelemente zum Kopieren oder Herunterladen.

Was dieses Tool unterstützt

Bereinigt SVG-Markup und entfernt unnötige Metadaten.

Grenzen und Verarbeitung

Bilder sind auf 32 Megapixel und 16.000 Pixel pro Seite begrenzt. Die meisten Vorgänge akzeptieren eine Quelle; unterstützte Stapelvorgänge erzeugen ein ZIP-Archiv.

Beispielquelle
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"><rect width="400" height="300" fill="#f5ede6"/><circle cx="200" cy="150" r="80" fill="#ed854b"/></svg>

Häufige Fragen

Does SVG optimizer change path data or round numbers?

No. It does not rewrite paths, merge shapes or reduce decimal precision. Savings come from removing metadata, comments, whitespace-only text and forbidden markup, so the size change depends on how much of that the file contains.

Why did my SVG lose its styles after optimizing?

Style elements and style attributes are removed by the sanitizer, along with script, foreignObject, image, use, a and animation elements. Convert CSS styles to presentation attributes such as fill and stroke before optimizing to keep them.

Is the optimized SVG safer to embed on a website?

The output is sanitized with DOMPurify's SVG profile, scripts are removed, and href attributes and external url() references are stripped. Internal references such as url(#gradient) are kept.

Wo wird meine Eingabe verarbeitet?

Dieser Vorgang verarbeitet seine Quelle in deinem Browser. Kopieren und Herunterladen sind ausdrückliche Aktionen; die Quelleingabe wird nicht in einem Konto oder Verlauf gespeichert.

Welche Eingabelimits gelten?

Bilder sind auf 32 Megapixel und 16.000 Pixel pro Seite begrenzt. Die meisten Vorgänge akzeptieren eine Quelle; unterstützte Stapelvorgänge erzeugen ein ZIP-Archiv.