Developer Utilities · Free tool
HTML to JSX
Convert HTML to valid JSX — class→className, inline styles to objects, self-closing tags, and SVG fixes.
Updated April 2026
What it does
Paste raw HTML and get valid JSX — class becomes className, attributes are camelCased, self-closing tags are fixed.
How to use it
- Paste the HTML snippet.
- Copy the JSX output.
- Paste into your React component.