Skip to content
Input
HTML or text
Modes
2 explicit
Runtime
Browser

Format parsed HTML with explicit document or fragment mode

Normalize parser output into readable indented HTML source without executing it.

Local processingNo sign-upNo resource loading

Format HTML

Source stays in this tab. Parser input is capped at 500 KiB; sanitizing uses 256 KiB.

Formatted HTML

Every result is inert, copyable source or data, never live DOM.

What this tool does

Explicit-mode, bounded, local parsing

Formatting serializes the parsed tree, so malformed source can be repaired according to HTML parsing rules. Review those repairs before replacing original code.

Formatting follows the parsed tree

Formatting serializes the parsed tree, so malformed source can be repaired according to HTML parsing rules. Review those repairs before replacing original code.

The parser runs locally with a 500 KiB input cap, 100,000-node and 100-level tree limits, and a 1 MiB output cap. It never fetches URLs, loads resources, uploads source, or saves a preset.

Explicit document and fragment modes

Document mode applies the HTML document parser and may supply implied html, head, or body structure. Fragment mode parses only a pasted fragment. The selected mode is part of the result and is never inferred from the text.

Primary references

Questions and answers

Related HTML tools