HTML Formatter & Beautifier

Paste HTML below to prettify with proper indentation, or minify to remove whitespace. 100% browser-based.

How to format HTML

  1. Paste your HTML into the input field.
  2. Click Format to prettify with proper indentation.
  3. Click Minify to compress whitespace for production.
  4. Copy the formatted output.

Need more tools?

Browse our collection of free developer tools.

Browse All Tools →