Readable nesting at a glance
Every block-level element drops onto its own indented line, so the parent-child structure of a page or email template is visible without collapsing tags in an editor.
Re-indent messy HTML into clean, readable, properly nested markup.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Format and beautify HTML online. Re-indent tangled markup with 2 or 4 spaces, keep inline elements tidy and make templates readable — entirely in your browser.
Formatted HTML is the difference between reviewing a template in seconds and squinting at one long line for minutes. Markup that comes out of email builders, CMS exports, framework renderers and minifiers has usually had its structure flattened, and a human being has to put that structure back before they can read it.
Indentation is the only real change. Every block-level element opens on its own line, its children are indented one step further, and the closing tag returns to the parent's level. No tags are added or removed and no text content is altered.
Because whitespace between block elements is not rendered, re-indenting a page never changes how it looks in a browser. The output differs from the input byte for byte while remaining pixel for pixel identical on screen.
Keeping inline tags on the same line as their text is what makes a formatted paragraph readable. If every span dropped onto its own line a single sentence would span a dozen rows and the structure would be harder to read, not easier.
Three contexts treat whitespace as content, and a correct formatter leaves them alone: the pre element, textarea, and anything styled with white-space set to pre or pre-wrap. Re-indenting those would change the rendered output, so the tokens inside are passed through exactly as they arrived.
These are opposite operations on the same source. Format when a human has to read, review or diff the markup; minify when it ships to a browser and every byte costs bandwidth. Most teams keep the formatted version in source control and minify during the build, which makes the two tools two ends of one workflow rather than rivals.
Step by step
Paste your HTML into the input panel — a whole document or a fragment both work.
Choose 2 or 4 space indentation, then press Format HTML.
Read the re-indented output; inline elements stay on one line so the shape is obvious.
Copy the result or download it as an .html file.
Why use it
What this tool is good for, and what it deliberately does not try to do.
Every block-level element drops onto its own indented line, so the parent-child structure of a page or email template is visible without collapsing tags in an editor.
HTML emitted by builders, email platforms and frameworks often arrives as one long line. Formatting turns it into something a human can review and diff.
Match whichever indent width your project already uses so the formatted output drops straight back in without a whitespace-only diff.
Templates frequently contain unpublished structure and tracking snippets. Formatting happens in your tab, so none of it reaches a server.
Questions
Short, honest answers about quality, limits and privacy.