Home
Categories
Text Tools
Developer Tools
Image Tools
PDF Tools
Games
Webmaster Tools
Reference & Query
Other Tools
Home
Developer Tools
HTML Formatter
HTML Formatter
Format and beautify messy HTML code with proper indentation. Free online HTML formatter.
HTML input
Copy
Clear
HTML formatting options
Indentation
Tab
2 spaces
4 spaces
8 spaces
Line wrapping
Do not wrap
Wrap after 80 characters
Wrap after 120 characters
Wrap after 160 characters
HTML attributes
Keep existing attribute wrapping
Place each attribute on its own aligned line
Align wrapped attributes when needed
Other
Indent
<head>
and
<body>
content
End output with a newline
Format HTML
Copy
Clear
Need smaller output?
Open HTML Minifier
.