HTML Formatter
Format and indent HTML code.
Your file never leaves this browser tab — everything runs locally on your device.
How to use html formatter
- Paste your HTML into the editor.
- Click "Format HTML".
- Copy or download the cleanly indented result.
Common use cases
- Making minified or hand-mangled HTML readable again for debugging.
- Cleaning up markup copied from a browser's "view source" or a CMS export.
- Standardizing indentation before a code review.