HTML Formatter
Format and indent HTML.
Paste HTML to indent and tidy it. This is a lightweight, dependency-free formatter — it re-indents tags by nesting depth. Everything runs locally in your browser.
Your input is processed locally in your browser — nothing is uploaded, stored or logged.
Saved you time?Buy me a coffee
How it works
- 1 Paste your HTML.
- 2 The indented output appears live.
- 3 Copy or download the .html file.
Common use cases
- Make minified HTML readable.
- Tidy up copied markup.
- Inspect page structure.
- Prepare HTML for review.
Frequently asked questions
Is my input sent to a server?
No. Everything runs locally in your browser — your input is never uploaded, stored or logged.
Are there limitations?
It re-indents by tag nesting and is intentionally simple; it does not reflow text content or fix invalid markup. For complex documents, a full formatter may differ.
Is it really free?
Yes — free, with no signup and no limits.