DEVtoy
Language · English

HTML Beautify/Minify

Beautify or minify HTML source code. Choose readable indentation or compact output for your development workflow.

How to use

  1. Paste your input or load the example below.
  2. Adjust the options, then select “Format HTML”.
  3. 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> &amp; ready.</p><ul><li>USB-C</li><li>Backlit keys</li></ul></article></section><footer><a href="/help">Help</a></footer></main></body></html>

Related tools