Re-indent pasted HTML before reading it
A minified dump, a copied template, a CMS snippet — one flat line of markup is unreadable. Re-indent it first.
Tools used in this guide
The job
HTML copied out of DevTools, a CMS, or a minified template often arrives as one unreadable line. The formatter re-indents it: nested elements drop a level, raw-text blocks (<script>, <style>, <pre>, <textarea>) are left alone, and short inline runs stay on one line so a paragraph doesn't explode into fifty lines.
Formatting a dump
Paste the markup and press Format. Tags nest with two-space indents; comments and doctype stay put; inline elements like <a> and <strong> stay inline when the run fits in 80 characters.
- Void elements (<img>, <br>, <input>) close themselves.
- Content inside <pre>/<textarea>/<script>/<style> is never touched — whitespace there is meaningful.
- Malformed nesting is left as written, not repaired: it formats what you gave it.
Where it stops
It is a formatter, not a validator — it won't tell you a <div> is missing its </div> or that an attribute is misspelled. For that, run a validator after you've made the structure readable. Up to 500,000 characters per paste.