SVG to JSX
Paste SVG markup below.
">
Paste SVG markup and convert it into JSX ready for React. Hyphenated attributes become camelCase, class becomes className, comments become JSX comments and shapes self-close.
Paste SVG markup below.
The converter rewrites every SVG attribute to its React DOM equivalent: stroke-width becomes strokeWidth, fill-rule becomes fillRule, and class becomes className. HTML comments turn into {/* */} blocks, and empty shapes like path and circle are self-closed so JSX parses them.
Export an icon from Figma or Illustrator, paste the SVG here, and drop the JSX into a component file. Wrap it in a function returning the markup and you have a reusable React icon with props for size and color.