HTML Formatter

Paste minified HTML and get indented, readable markup. Uses a simple tag-based indenter.

Format HTML

How it works

We parse with a regex/tag split and add indentation per nesting level. Self-closing and inline tags are handled.

When to use it

Use when inspecting or debugging HTML output.

Frequently asked questions

Invalid HTML?

We do not validate. Malformed tags may produce odd indentation.