Why it matters
Pasting HTML from a template or a design tool into React means fixing dozens of small things by hand, and missing one gives a warning in the console or a broken style.
This parses the HTML properly (no regex), rewrites each element, and lists every change so you can review the result.
How to use it
- Type or paste your input; the example shows the format.
- Press Convert. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
What happens to onclick="…"?
It becomes onClick with the code wrapped in an arrow function, and it's flagged: in React you'd normally pass a function from your component instead.
Why defaultValue instead of value?
In React, value makes an input controlled, so it can't be typed in without an onChange handler. defaultValue keeps the HTML behaviour. Untick the option if you'll add state.
Does it handle <script> and <style>?
Their contents are kept as strings with a warning; in React they're usually moved into your bundle or CSS instead.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.