HTML to JSX Converter
Convert HTML markup into clean React/JSX component code.
HTML
JSX
About the HTML to JSX Converter
Paste HTML and convert it into a React functional component written in JSX. Class attributes become className, for attributes become htmlFor, inline style strings become style objects, self-closing tags are normalised, and the output is wrapped in a component scaffold ready to paste into your project.
Examples
Button
<button class="btn" style="color:red">Click</button>Output
<button className="btn" style={{ color: "red" }}>Click</button>Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
Code Minifier & Beautifier
Dev Utilities
Minify or beautify JavaScript, CSS, HTML, JSON, XML and SQL.
JavaScript / TypeScript Playground
Dev Utilities
Write and run JavaScript or TypeScript with a live console.
JavaScript Object to JSON
Dev Utilities
Convert a JS object literal into strict, valid JSON.
JSON to C# Class
Dev Utilities
Generate C# classes or records from JSON, with nullable reference types.
Maven ↔ Gradle Converter
Dev Utilities
Convert Maven POM XML to Gradle Kotlin DSL and back.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-25 · Runs entirely in your browser