HTML Formatter

Format or minify HTML markup in your browser.

Output appears here

How to use this tool

  1. 1Paste HTMLInput your raw or messy HTML markup.
  2. 2Format or minifyBeautify elements with clean tag trees, or minify layout markup.
  3. 3CopyCopy the clean code block for your website.

What this tool is useful for

  • Indenting messy HTML structures to make tag closures easy to audit.
  • Compacting index markup to save bytes on initial asset load.
  • Cleaning template layouts or rich editor output.

Privacy & processing

HTML code is processed inside browser window. No data is stored or uploaded.