HTML Formatter/Beautifier

This HTML Beautifier tool formats random and unorganized HTML content into a structured and readable format by adding indentation, and line breaks.

Input
Output

How to use this tool?

You can write or paste HTML data into the input textbox. You can also upload a .html/.htm file using the Upload HTML File button or directly drag and drop the .html file into the input textbox. Next, click on the Format button to format HTML data and produce the formatted HTML data in the output textbox.

Copy the output code by clicking on the Copy button or click on the Download HTML File button to download the data.html file in your browser.