Skip to content
Toolbento

HTML formatter

Beautify HTML with consistent indentation, or minify it by removing comments and spare whitespace.

Everything stays on this device

HTML formatter runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Output

Missing a feature or found a bug in HTML formatter? Tell me on X (@_andrewtran) or by email.

How to use HTML formatter

  1. Paste your HTML in the input pane.
  2. Choose 2 spaces, 4 spaces or Minify.
  3. Copy the result or download it as a file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

Does minifying change how the page looks?

It should not. A space between inline elements is kept, because it shows on the page. The contents of pre, textarea, script and style are left as written.

Are scripts and styles minified too?

No. Only the HTML around them is. Use the CSS formatter for style sheets.

Esc

Loading tools