Beautify or minify HTML code with syntax highlighting.
HTML Formatter
Input HTML
Format
Minify
<div> <h1>Hello World</h1> <p>This is a sample HTML.</p> </div>
Output
Copy