SVG Optimizer
Reduce SVG file size by removing metadata, comments, editor attributes (Inkscape, Illustrator) and unnecessary whitespace. Processed in your browser.
Tamanho original
Tamanho otimizado
Redução
O que é removido
- Comentários HTML/XML (
<!-- ... -->) - Elementos de metadados (
<metadata>,<title>,<desc>) - Declaração XML (
<?xml ... ?>) - Atributos de editores:
inkscape:*,sodipodi:*,sketch:*,xmlns:xlinknão utilizado - Espaços em branco, quebras de linha e indentação desnecessárias
Strip editor bloat without touching the artwork
SVGs exported from Inkscape, Illustrator or Figma ship with baggage the browser never uses: RDF metadata, comments, inkscape: and sodipodi: attributes, indentation. That weight goes to production with every icon on your site. Paste the code (or load the file), tick what you want removed and see before and after side by side, with byte sizes and the percentage saved. Then copy the result or download the cleaned file.
The cleanup is deliberately conservative: out go the XML declaration, the DOCTYPE, comments, the metadata, title and desc elements, editor namespaces and attributes (Inkscape, Sodipodi, Sketch) and the whitespace between tags. The artwork itself is untouched: no path rewriting, no coordinate rounding, no shape merging, which is what an aggressive optimizer like SVGO does. The sizes shown are real UTF-8 bytes, not character counts.
Check the output before shipping: paste the optimized SVG into a browser tab and confirm it renders the same. Two things to watch: the title element is what screen readers announce, so leave the metadata option unchecked for icons that need accessibility; and if the file relies on xlink:href references (common in older sprites), the editor-attribute cleanup removes the xlink namespace and can break them. Everything runs in your browser; the file is never uploaded.
Frequently asked questions
Does this replace SVGO?
Can the cleanup break my SVG?
Is my file uploaded anywhere?
Related Tools
JSON Size Analyzer
Analyzes a JSON payload and shows how many bytes each key takes, sorted by weight, with percentage of total and the full path per node.
Icon Finder
Search SVG icons from the Lucide library (1300+ icons) by name. Copy the SVG or component name.
PWA Favicon SVG Generator
Generate a simple inline SVG favicon from letter(s) or emoji and background color. Ready to paste into <head>.