HTML Formatter
Beautify HTML with configurable indentation, line wrapping and attribute layout, without ever rendering or running it.
Open toolConvert HTML to valid JSX for React: className, htmlFor, style objects, self-closing tags and SVG props.
Paste HTML and get JSX that React accepts: class becomes className, for becomes htmlFor, attributes such as tabindex and readonly are camel-cased, inline styles become style objects (with vendor prefixes and custom properties handled), void elements self-close, comments become JSX comments, and braces in text are escaped. SVG attributes such as stroke-width become strokeWidth.
Inline event handlers are turned into empty functions with the original code in a comment, and form values become defaultValue/defaultChecked so the result works as an uncontrolled form. Optionally wrap the result in a fragment or a named component. The HTML is parsed as text and never run. Everything runs in your browser. Nothing you enter is uploaded, logged or stored.
Your code or text
Pasted or opened from a file
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste HTML.
Optionally name a component, choose fragment wrapping and indentation.
Copy or download the JSX and review the notes underneath.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Optionally name a component, choose fragment wrapping and indentation.
Copy or download the JSX and review the notes underneath.
Beautify HTML with configurable indentation, line wrapping and attribute layout, without ever rendering or running it.
Open toolPreview HTML and CSS safely in an isolated, offline sandbox at phone, tablet and desktop widths.
Open toolBeautify minified or messy JavaScript with configurable indentation and brace style, plus a syntax check that parses the code without running it.
Open toolClean and minify SVG files by removing editor data, comments and excess precision.
Open tool