Convert SVG CSS Classes to Attributes

Expand CSS class rules into element attributes

Inline → attributes? Inline → attributesAttributes → inline? Attributes → inline

FAQ

Quick answers

How do I flatten SVG CSS classes into attributes?
Paste SVG that uses classes and click Expand classes.
What happens to the style tag after expanding?
Rules are applied to elements; you can then Remove Style Tags if the sheet is unused.
Can I convert resulting attributes to inline styles next?
Yes. Follow with Attributes → Inline if needed.
Is class expansion free without uploading?
Yes. Free browser tool.
Inline → attributes → Attributes → inline → Remove style tags → Remove hardcoded fills →
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