HTML formatter

0 uploads — runs entirely in your browser, works offline

Formatted HTML

HTML formatter — beautify or minify

Paste HTML and get it indented by tag nesting, or minified. It formats in your browser (0 uploads, works offline).

How to use it

  1. Paste your input into the left pane.
  2. Choose any options above the panes.
  3. The result updates live on the right — Copy or Download it.

FAQ

How do I format or minify HTML for free?

Paste your HTML and it is indented according to tag nesting in your browser, with no upload — void tags like img and br are handled correctly. Tick minify to collapse whitespace between tags instead.

Will it break my markup?

No — it only adjusts whitespace between and around tags. Self-closing and void elements are recognised so the indentation stays correct.

Is my HTML uploaded?

No. Formatting is local and nothing is stored; it works offline.

Does it fix invalid HTML?

It indents rather than repairs — malformed markup is indented as best it can, but it is not a validator.

Limits

A pragmatic indenter, not a parser. Inline scripts and styles are indented as text, not reformatted.

Related

The XML and CSS formatters tidy those; HTML-to-Markdown converts to Markdown.

Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.