HTML to JSX

Convert your HTML code to React JSX instantly

HTML Input

JSX Output

Your JSX code will appear here...

Features

Attribute Conversion

Automatically converts HTML attributes to JSX (class → className, for → htmlFor, etc.)

Self-Closing Tags

Properly handles void elements like img, input, br with self-closing syntax

Style Conversion

Converts inline style strings to JSX style objects with camelCase properties

Formatted Output

Produces clean, properly indented JSX code ready to use in your React components

Copied to clipboard!