Task path / input to outcome
How to format HTML
- 01
Paste the markup
Paste source up to 256 KiB UTF-8. Select two or four spaces for formatting.
- 02
Choose the indent size
Choose 2 or 4 spaces. The sample is preloaded; the new setting takes effect when you press Format.
- 03
Press Format
Press Format. The local parser adjusts HTML tags while preserving the original whitespace gaps and raw script/style text; inspect the target page.
- 04
Check the statistics
Compare UTF-8 input and output bytes and the savings percentage. A negative saving means the result grew; inspect it before copying or downloading.
- 05
Copy or download the result
Use Copy result for the clipboard or Download to save toolars.html — Copy result is the fast path when the formatted markup is headed straight into an editor or a review comment. Reset clears the panes for the next document.