SVG to JSX Converter

Your SVG

Paste raw SVG markup (an icon export from Figma, Illustrator, or a design system) and get a ready-to-use React component back. The conversion fixes everything JSX requires: class becomes className, hyphenated and namespaced attributes like stroke-width and xlink:href become strokeWidth and xlinkHref, inline style strings become a style object, <!-- comments --> become JSX comments, and the root <svg> spreads props so you can pass className, width, or event handlers. data-* and aria-* attributes are preserved as-is. Everything runs in your browser — nothing is uploaded.

FAQ