Skip to content
snip tools

HTML beautifier

Re-indent and pretty-print minified HTML — fully client-side.

Runs 100% in your browser
 

How to beautify HTML

  1. Paste minified HTML. Drop in the squashed markup.
  2. Adjust indent. Pick 2 or 4 spaces, or tabs.
  3. 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

What does the HTML beautifier do?
It re-indents minified or one-line HTML so it is readable — closing tags align, attributes wrap, and nested structure is obvious.
Does it change my HTML?
Whitespace only. Content nodes (
,