Remove metadata and editor noise
Design-tool exports often ship with doctype declarations, XML processing instructions, comments, and metadata blocks that browsers never use. These transforms are among the safest byte savings in SVGO and are enabled by default on SVGOMG.net for most production assets.
SVGO plugins in this topic
- Remove doctype
removeDoctypeRemoves the <!DOCTYPE svg> declaration. Browsers do not need it for inline SVG and it only adds bytes.
- Remove XML instructions
removeXMLProcInstStrips <?xml version="1.0" encoding="UTF-8"?> and similar processing instructions at the top of the file.
- Remove comments
removeCommentsRemoves XML comments left by editors and hand-authored notes.
- Remove <metadata>
removeMetadataDeletes <metadata> blocks (often license, layer names, or XMP from Adobe tools). Safe byte savings with no visual effect.
- Remove editor data
removeEditorsNSDataRemoves editor-specific namespaced attributes (Adobe, Sketch, Figma cruft) that browsers ignore.
- Remove <title>
removeTitleRemoves <title> elements used for accessibility tooltips in standalone SVG documents.
- Remove <desc>
removeDescRemoves <desc> long-description elements, saving bytes when not needed.
Related topics
Try it
Open SVGOMG.net, load your SVG, and toggle the plugins above in the Features panel.