HTML to JSX
Convert an HTML fragment to JSX — class to className, inline styles to objects, comments to JSX comments.
How to use
- Paste HTML.
- Convert.
- Copy the JSX output.
What it supports
Handles attribute renames (class, for, tabindex, http-equiv…), style strings to objects, void elements, and HTML comments. Event attributes like onclick are flagged — JSX wants onClick handlers. Input up to 500,000 characters; a converter, not a sanitizer.