HTML to JSX Converter

Paste HTML, get JSX

Paste HTML and get JSX you can drop into a React component. It renames class to className and for to htmlFor, camelCases the attributes JSX expects, turns inline style="..." strings into style objects, self-closes void elements, and rewrites HTML comments. The HTML is parsed, never executed. Nothing leaves this page.

Best-effort static transform. It does not convert <script> bodies, inline event handler strings (onclick="..."), or template syntax. Review the output before shipping.

All conversion happens locally in your browser using the built-in HTML parser. Your markup is never sent to any server.