HTML to JSX Converter

Your HTML

Paste raw HTML (copied from a mockup, a legacy template, or scraped markup you're migrating to React) and get a ready-to-use JSX component back. The conversion fixes everything JSX requires: class becomes className, for becomes htmlFor, attributes like tabindex, colspan, readonly, and srcset are camelCased to their React equivalents, inline style strings become a style object, void elements (<img>, <br>, <input>, ...) are self-closed, and <!-- comments --> are removed. data-* and aria-* attributes are preserved as-is, and markup with multiple top-level elements is automatically wrapped in a fragment. Everything runs in your browser — nothing is uploaded.

FAQ