RevealTheme logo

Formatador e Embelezador de HTML

Formate HTML minificado ou em linha com indentação e quebras de linha adequadas.

Como usar esta ferramenta

  1. 1

    Paste your minified or single-line HTML into the input box.

  2. 2

    Read the indented result that appears below as you type — there is no button to press.

  3. 3

    Select and copy the formatted output from the result panel.

  4. 4

    Spot-check anything with <pre>, <textarea>, comments, or inline scripts, since those are not handled perfectly.

O que é o Formatador e Embelezador de HTML?

O HTML minificado é uma única string longa: rápida de entregar, mas impossível de ler. Esta ferramenta reverte a minificação: cada elemento em sua própria linha, com os elementos filhos indentados dois espaços a mais. Os elementos vazios (img, br, input) permanecem em linha. A saída é puramente estética e é renderizada de forma idêntica.

Casos de uso comuns

  • Expanding a minified production HTML page so you can read its structure during debugging.

  • Tidying a snippet copied from a browser's DevTools Elements panel before pasting it into documentation.

  • Re-indenting a fragment of email or marketing HTML that arrived as one long line.

  • Inspecting the nesting and tag hierarchy of unfamiliar markup at a glance.

  • Cleaning up generated or template-output HTML before committing it to a repository.

  • Teaching or reviewing HTML structure where consistent two-space indentation makes nesting obvious.

Perguntas frequentes

Ela preserva os espaços em branco dentro de <pre>?
O conteúdo de texto em linha é colapsado. Para marcação com muito <pre>, talvez você precise restaurar os espaços em branco manualmente.

Ferramentas relacionadas