HTML to JSX & React Component Converter
Paste HTML or SVG and get correct JSX instantly — styles, attributes and whitespace handled. Converts in your browser.
Help shape HTML to JSX & React Component Converter
The bug you just noticed will fade in 3 minutes. The feature idea will vanish after your next tab switch. Crazy peps don't suffer silently.
Frequently Asked Questions
JSX differs from HTML: class becomes className, style needs an object, tags must close and some attributes are camelCase. This tool fixes all of it.
Yes. It follows JSX whitespace rules and adds {" "} where HTML spacing between inline elements would otherwise be lost.
Yes. Choose Component and TS, set a name, and SVGs get typed props.
Yes — Solid keeps class and for and uses kebab-case style keys.
No. Conversion happens in your browser.