SVG Metadata Remover
Strip comments, <metadata> blocks, XML declarations, and editor-specific namespaces (Inkscape, Sodipodi, RDF) from SVG markup. Runs entirely in your browser.
Invalid SVG — check your markup and try again.
What gets removed
- XML declarations —
<?xml version="1.0"?>, not needed in HTML5 documents. - DOCTYPE declarations — legacy SVG 1.1 doctype references that browsers ignore.
- Comments —
<!-- … -->blocks anywhere in the document. - <metadata> elements — author, license, and Dublin Core / RDF blocks generated by design tools.
- Editor-specific elements —
<sodipodi:namedview>,<rdf:RDF>, and other elements in theinkscape,sodipodi,rdf,cc, anddcnamespaces. - Editor-specific attributes —
inkscape:*,sodipodi:*, and the namespace declarations that define them.
Frequently Asked Questions
What does the SVG Metadata Remover strip out?+
It removes the XML declaration (<?xml version="1.0"?>), DOCTYPE declarations, HTML/XML comments, <metadata> blocks, and editor-specific namespaces and elements left behind by tools like Inkscape and Adobe Illustrator — including <sodipodi:namedview>, <rdf:RDF>, and any inkscape:* or sodipodi:* attributes.
Will this change how my SVG looks?+
No. Everything this tool removes — comments, metadata, DOCTYPE declarations, and editor-specific namespaced elements and attributes — is invisible to browsers and has no effect on rendering. The preview shows the cleaned SVG so you can confirm it looks identical before copying.
Why do exported SVGs contain so much extra markup?+
Design tools embed authoring metadata — author info, color profiles, layer names, grid and guide positions, version numbers — so the file can be reopened with full editing context later. Browsers ignore all of it, so once an SVG is ready for the web, stripping this metadata reduces file size with zero visual change.
Is my SVG sent to a server?+
No. Parsing and cleanup run entirely in your browser using the built-in DOMParser and XMLSerializer. Your SVG markup never leaves your device.
Related Tools
How to use
- Paste SVG markup exported from a design tool — the cleaned output appears instantly.
- The summary below the editor lists exactly what was removed — comments,
<metadata>blocks, and editor-specific namespaces. - Copy the cleaned result with the Copy button — the output renders identically to the input.