HTML to JSX Converter

Paste HTML and get JSX that React accepts.

How this is worked out

JSX looks like HTML but is JavaScript, so a few things change: class becomes className and for becomes htmlFor, many attributes are camelCase (tabIndex, maxLength, readOnly), inline styles become objects with camelCase keys, void tags such as br, img and input must close themselves, comments use {/* */}, and event attributes become camelCase handlers. The converter applies these rules with pattern matching, so very unusual markup should be reviewed by hand.

Related tools: Html Beautifier, Html Editor, Html Minifier.

Something not working on this page? Tell me through the Contact page: that is how I find out what is broken and fix it.