Indent HTML code
Each block of the page ends up on its own line, shifted according to its depth; links, bold text and other inline elements stay inside their sentence. No tag is added or removed, even when an optional closing tag is missing, and the content of pre and textarea areas stays exactly as it was.
Spot structural errors
A browser displays almost anything, even shaky code: the mistake then shows up in the layout. The tool reports, with line and column, elements never closed, badly nested tags, repeated attributes and open comments. Notes complete the list: image without alternative text, duplicate identifier, missing doctype, language or title, obsolete elements.
Minify a page
Minification folds blanks, removes those around blocks as well as comments. The content of scripts and style sheets is not rewritten: for CSS, use the CSS formatter.
Limits
This check does not replace full W3C validation. Blanks only change at the edges of block elements; if your CSS turns those blocks into inline elements, check the rendering. Templates mixed with another language may be misread. Files up to 5 MB.
Frequently asked questions
Why is </p> reported although I did open a paragraph?
A paragraph closes by itself when a div, a list or a heading arrives. Your </p> then closes nothing, and the browser creates an empty paragraph.
Does formatting change the display?
It only changes spaces around blocks, where the browser ignores them. Between two inline elements, an existing blank remains and none is invented.
Is the pasted code executed?
No. It is only read as text: no script runs, no image or address is loaded.
Is my code sent anywhere?
No, it never leaves your browser. Only your settings are kept on your device.