Format, minify, check parsing or escape HTML fragments and complete documents. Original tag case, attribute quotes, entity spelling, comments, script code and style content remain intact.
Suggested workflow
Select fragment mode and load the example. Formatting indents h2, p and pre inside section by two spaces while keeping inline text in p unchanged. Switch to document mode for a full page, inspect parsing issues, then copy or download the result.
What to check
Structural indentation changes only located block containers with explicit closing tags. Mixed text, inline separators, pre, textarea, scripts, styles, foreign namespaces and omitted-end-tag subtrees remain intact. Parsing uses HTML fragment or document rules, executes no resources and is not a complete conformance audit. Limits: 100000 UTF-16 input units, 64 levels, 10000 parsing nodes and 1000000 output units.