Lay out messy HTML neatly using your browser's own HTML reader. It runs in your browser: nothing you type leaves your device, and there is no sign-up.
What it does #
Fragment or document, normalisation disclosed.
Useful for:
- Clean pasted-from-anywhere markup.
- Make view-source output reviewable.
- Normalise before comparing two versions.
How to use it #
- Paste HTML (fragment or whole doc).
- Read the indented result.
- Note that the PARSER normalised it (as browsers do).
- Copy out.
Know the limits #
- Rule-based findings are evidence for human judgement, not a verdict; passing every check guarantees no ranking, citation or delivery outcome.
- The analysis covers only what you supply, at this moment β live systems, remote state and future behaviour are outside its sight.
Private by design #
What you paste or type is worked on by this page in your own browser. It is not sent to URSY or to anyone else, and nothing is kept after you close the page. We only count that the tool was used, never what you put in it.
Questions #
Why did my markup change slightly?
It went through a real HTML parser β the same forgiving machine browsers use β which closes implied tags and normalises structure. What you get back is what browsers were already seeing; sometimes that itself is the revelation.
Why are spans and links not broken onto lines?
Whitespace between inline elements is RENDERED in HTML β naive pretty-printers add visible gaps around links. This one keeps inline runs inline, which is the difference between formatted and broken.
Words to know #
Related tools #
- JavaScript MinifierStrip comments and spare spaces from JavaScript, without breaking strings.
- IP Subnet CalculatorTurn a CIDR range into its netmask, first and last address, broadcast and host count.
- Chmod CalculatorSwitch file permissions between numbers (755) and letters (rwxr-xr-x), with the sums shown.
- Base64 Encoder + DecoderTurn text into Base64, or Base64 back into readable text.
Page facts checked 23 Nov 2026. Sources: HTML Living Standard
Cite this page: HTML Formatter. URSY. Updated 24 November 2026. https://ursy.com/webmaster-tools/html-formatter/ · Section links