HTML Formatter

Free online tool to format an ugly HTML code, making it readable and pretty, with the proper indentation.

Autodetect HTML XML CSS JavaScript PHP JSON
Paste your code or drag a file here
xxxxxxxxxx
 
1
                                                
                                                    ​
                                                
                                            
Tab size
Download
Load URL
Browse
Copy
Clear
The formatter works locally in your browser, no data is uploaded to the server.
Wrong URL or the server does not allow cross-origin requests.