Remove Unused SVG Namespaces Online

Keep xmlns for SVG itself; delete unused xmlns:foo declarations

Remove Inkscape NS? Remove Inkscape NSRemove sodipodi attrs? Remove sodipodi attrs

FAQ

Quick answers

How does remove unused SVG namespaces decide what to drop?
It scans element prefixes and attribute prefixes. A xmlns:foo with no foo:* usage is removed. The SVG xmlns stays.
Will xlink:href survive unused-namespace cleanup?
If any xlink: attribute exists, xmlns:xlink is kept. Otherwise it is dropped.
Is this safer than removing Inkscape namespaces by name?
This pass is prefix-usage based. The Inkscape/sodipodi/Sketch pages target those exporters even if you still want a surgical list.
Do unused namespaces change rendering?
Browsers ignore unused xmlns. Removing them only shrinks markup.
Remove Inkscape NS → Remove sodipodi attrs → Clean Sketch SVG → Clean Illustrator SVG →
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