HTML Formatter / Minifier

Format single-line HTML into a clearly structured multi-line layout, or compress it into one line.

输入 HTML 源码
输出结果

How to Use

  1. Paste your code into the input area.
  2. Select your preferred indentation (2 or 4 spaces).
  3. Click Format to beautify, or Minify to compress.
  4. Click Copy to clipboard.

FAQ

Is my data uploaded to a server?

No. All processing is done instantly online.

How large of a file is supported?

Since it runs in the browser, it supports a few megabytes.

Need more powerful features?

* Some links are affiliate partnerships

Related Tools