HTML Formatter

Paste messy HTML to indent block elements for readability, or minify to remove comments and extra whitespace.

How to use the HTML Formatter

  1. Paste HTML.
  2. Click Format or Minify.
  3. Copy or download.

How it works

This is a lightweight formatter: script, style and pre content is left untouched. For complex templates, use your editor’s formatter.

Good to know

Runs locally.

Frequently asked questions

It only changes whitespace.

No.

BillGen provides general-purpose tools; verify important outputs before relying on them.