Skip to main content

HTML Formatter

Prettify or minify HTML code.

Indent:
Input HTML
Output

Why Format HTML?

Properly formatted HTML is easier to read, debug, and maintain. Minified HTML reduces file size for faster page loads.

Features

  • Prettify with configurable indentation
  • Minify to reduce file size
  • Handles void elements correctly
  • Preserves preformatted content