HTML Formatter

Formats a HTML string/file with your desired indentation level. The formatting rules are not configurable but I think it provides the user with the best possible output.

Note that the formatter will keep spaces and tabs between content tags such as divs and spans as it's considered to be valid content.

*Files bigger than 1 meg will be formatted to a new window.

Option 1: Copy-paste your HTML document here
Option 2: Or type in the URL to your HTML file
Indentation level:
Force output to new window: