HTML Formatter & Minifier

Paste HTML to add proper indentation for readability (Beautify) or compress it for production (Minify). Everything runs locally in your browser.

Indent:
Input code
Result

Use cases

  • Turning generated or minified HTML back into readable markup before editing
  • Compressing markup before publishing to reduce page size
  • Quickly reviewing tag structure in someone else's code

FAQ

Are script and style tags stripped during minification?

No. Their contents stay untouched. Use the dedicated JS and CSS minifiers separately before inlining them into HTML.

Does my code get sent to a server?

No. Formatting and minification run entirely in your browser via JavaScript. Nothing is ever uploaded.

Related tools