HTML Formatter
This HTML formatter pretty-prints and minifies markup in the browser with js-beautify. Paste a single-line template, a CMS export, or a component dumped onto one line, then choose Format for indented tags or Minify for a compact string. Options cover indent size (2 or 4 spaces), an optional wrap line length, and whether existing newlines stay in place. Wrap length 0 leaves long attribute lists unbroken; a positive number breaks those lines so reviews stay readable.
Formatting only changes whitespace. It does not close tags, rename classes, or rewrite inline styles. If you need unclosed-tag or duplicate-id checks, use HTML Validator first, then format the fixed source here. HTML Beautifier is the sibling page for deeper attribute wrapping; this page is the faster format-and-minify path.
Nothing is uploaded. The editor treats your HTML as text, so scripts inside the paste do not run on this page. That matters for email templates, admin snippets, and third-party widgets you would rather not execute while cleaning indentation. Download the result as .html or copy it back into your editor when the structure is easy to scan.