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.
Good tool for HTML format: