跳到主要内容

HTML Formatter

Desenvolvedor

Re-indent compressed or one-line HTML. pre, textarea, script and style blocks keep their original whitespace.

正在加载工具…

Como usar

3 passos
  1. 01

    Paste your HTML — minified single-line source works too

  2. 02

    Pick an indent: 2 spaces, 4 spaces or tabs

  3. 03

    The result updates live on the right; copy or download it

Perguntas frequentes

2 perguntas
Q1Will it change how the page renders?

No. It only adds newlines and indentation between tags; attributes and text content are untouched, and spacing between inline elements is preserved.

Q2Does it re-indent the contents of <pre>?

No. pre, textarea, script and style are masked before formatting and restored afterwards, so preformatted text stays exactly as it was.

Desenvolvedor