HTML formatter

Paste HTML, click Format - indented output appears instantly.

Indent HTML with two spaces per nesting level so the structure is easy to read. Handles tags, comments and self-closing elements. All in your browser.