Remove Comments from SVG

Delete XML/HTML comments from SVG markup without touching the artwork

Metadata? Strip SVG metadataSmaller file? Reduce SVG file size

FAQ

Quick answers

How do I remove comments from an SVG file?
Paste the SVG and click Remove comments. All <!-- ... --> blocks are deleted from the markup.
Do SVG comments affect rendering?
Browsers ignore comments when drawing. They still add bytes and can leak internal notes in shipped files.
Are CDATA sections treated as comments?
No. Only XML comments are removed. CDATA used for real content is left alone by this action.
Should I strip comments before committing SVG icons?
Yes if the comments are export noise. Keep comments only when they document intentional authoring notes.
Strip metadata → Clean SVG file → Reduce size →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina