Accurate conversion
Input is processed by this tool’s dedicated converter.
Transform your SVG code into JSX syntax ready for React components. This free online converter correctly converts SVG attributes to React-compatible props (e.g., `class` to `className`, `stroke-width` to `strokeWidth`), handles self-closing elements, and strips unnecessary namespaces. Ideal for creating React icons and illustrations. Works entirely in your browser, no registration needed.
Converted output will appear hereInput is processed by this tool’s dedicated converter.
Your input is processed in your browser and is not uploaded.
Copy the result or save it as a file.