SVG to JSX Converter
Paste SVG markup to convert it to JSX for React. Your markup is processed in your browser.
Use the JSX in React
- Copy the full SVG markup from your file or choose Load example.
- Select Convert to JSX. SVG attributes such as
stroke-widthbecome React props likestrokeWidth, and inline styles become astyleobject. - Select Copy JSX and paste the result into a React component’s return value or into an existing JSX layout.
Keep the viewBox so the SVG can resize without changing its proportions.
Paste a complete <svg> element. Remove any DOCTYPE declarations, scripts, event handlers, or embedded HTML before converting.