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
<div><p>Hi</p><br><span class="a">x</span></div>

Related tools