Remove Data Attributes From SVG

Strip every data-* attribute, including valued ones

Remove XML declaration? Remove XML declarationClean Illustrator SVG? Clean Illustrator SVG

FAQ

Quick answers

How do I remove data attributes from an SVG?
Click Remove data attributes. data-name, data-id, and other data-* keys are deleted.
Should I clean Figma first or only strip data- attributes?
Figma cleanup also drops frame ids. This page only removes data-*. Use both if the export is noisy.
Are aria-* or xmlns:xlink removed?
No. Only attributes that start with data-.
Do empty data- attributes need a separate pass?
This pass already deletes them. Empty-attribute cleanup is for blank non-data attrs.
Remove XML declaration → Clean Illustrator SVG → Clean Figma SVG → Remove hidden layers →
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