HTML beautifier
Re-indent and pretty-print minified HTML — fully client-side.
Runs 100% in your browserHow to beautify HTML
- Paste minified HTML. Drop in the squashed markup.
- Adjust indent. Pick 2 or 4 spaces, or tabs.
- Copy or download. Grab the beautified output.
About beautification
js-beautify is the de-facto in-browser formatter behind editor.config-style integrations and
countless online tools. The page hands it your input, returns a re-indented version, and you
pick the indent style. Content-sensitive tags (<pre>,
<textarea>) keep their inner whitespace so behaviour stays correct.
Frequently asked questions
- It re-indents minified or one-line HTML so it is readable — closing tags align, attributes wrap, and nested structure is obvious.
- Whitespace only. Content nodes (
,