HTML formatter

Re-indent pasted HTML markup — nested tags, raw-text blocks, and short inline runs kept readable.

HTML stays in this browser — nothing is sent anywhere.

A formatter, not a validator: it re-indents the tags it finds and leaves malformed nesting as written. <pre>, <textarea>, and <script>/<style> contents are kept as-is. Short inline elements stay on one line when they fit within 80 characters.

How to use

  1. Paste HTML.
  2. Format it.
  3. Copy the re-indented markup.

What it supports

A formatter, not a validator: tags are re-indented and malformed nesting is left as written. <pre>, <textarea>, <script>/<style> contents are untouched. Inline elements stay on one line within 80 characters. Up to 500,000 characters.

Related tools

Related guides