HTML Beautify/Minify
Beautify or minify HTML source code. Choose readable indentation or compact output for your development workflow.
How to use
- Paste your input or load the example below.
- Adjust the options, then select “Format HTML”.
- Review the result, then copy or download it.
No uploads. No account. Processing stays in your browser.
Example input
<!doctype html><html lang="en"><head><title>Inventory</title></head><body><!-- Product summary --><main><h1>Available items</h1><section class="products"><article data-sku="KB-01"><h2>Keyboard</h2><p>In <strong>stock</strong> & ready.</p><ul><li>USB-C</li><li>Backlit keys</li></ul></article></section><footer><a href="/help">Help</a></footer></main></body></html>