Skip to main content
DevToys
Formatters

HTML formatter

Indent HTML markup

Conversion workspace

HTML Formatted HTML

Input
HTML
Output
Formatted HTML
How to use / Notes

How to use

  1. Paste the HTML to format.
  2. Tags are indented.
  3. Copy the result.

Notes

  • Reformatting can change whitespace handling and subtly affect rendering (pre, inline elements).
  • Contents of script/style blocks may be left untouched.