Keep the original source
The original is captured before the first transformation. Loading an example or clearing starts a new document; Undo also restores the previous original.
- Try the example to see preserved inline text and preformatted spacing.
HTML tools
Format, compact and inspect HTML in one editor, with the original and undo history available.
Each action continues from the current content. Checking only updates diagnostics; indentation is applied when you choose Format.
Paste HTML or load the example.
Your HTML stays in this browser tab. Static preview blocks scripts and outside resources. Undo history stays in this tab and is bounded for large documents.
When a CMS export arrives as a single line, finding the element behind a broken section takes too long. This HTML formatter separates structural tags while keeping inline wording and protected blocks intact.
Format, compact and edit HTML in one editor. The outline and diagnostics follow the current code. View the original, undo or redo changes, and open static preview when needed.
A dense fragment becomes an indented outline. The HTML formatter keeps adjacent inline words, comments and the contents of pre, textarea, script and style blocks as supplied.
The HTML formatter opens a separate static frame only for the current result. Scripts, forms and outside resources cannot run inside that preview.
The original is captured before the first transformation. Loading an example or clearing starts a new document; Undo also restores the previous original.
Each action continues from the current content. Checking only updates diagnostics; indentation is applied when you choose Format. Ctrl/Cmd+Enter.
This HTML5 outline belongs to the current content. Parser-inserted nodes are marked; select a tag to locate it in the current code.
Adds line breaks between structural tags but does not split inline wording or rewrite attributes.
Compacts the current content while keeping comments and embedded code. Byte counts compare the original with the current document.
Shows the HTML5 parser’s element hierarchy, including browser-inserted nodes, and lets you return to a source line.
A separate sandboxed frame strips active elements and blocks outside loads; preview stays off until you select it.
Usually only layout between structural tags changes, but CSS can make whitespace significant. Inline text and preformatted blocks stay literal; compare the output in the actual page.
The HTML5 parser can recover enough to display a structure. Diagnostics flag located parser issues and likely unclosed tags; they do not repair the source.
An HTML beautifier improves readability, while a validator checks conformance. This HTML formatter gives only a bounded structure check; use a dedicated checker for a standards verdict.
No. HTML whitespace can become text. Compact mode changes only structural gaps and tag spacing outside quotes, keeps comments, and leaves inline gaps alone.
No. Parsing and formatting run in this browser tab. Static preview is opt-in, isolated and barred from external requests.
Found an unexpected result?
Paste HTML, format, compact or inspect it, then copy the current content.