Formatadores e Código
Formatador de HTML
Formatador e minificador de HTML gratuito. Embeleze com a indentação e o envolvimento de atributos padrão do Prettier, ou compacte HTML para uma única linha para produção. No navegador, nada é carregado.
Nota do editor
Understanding · Indented HTML, sane defaults.
Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.
Perguntas frequentes
Quick answers.
›Which HTML formatter is this?
Prettier's HTML parser with default settings — 2-space indent, 80-column target, attribute per line when the tag overflows. The minifier is a lightweight whitespace collapser that preserves <pre>, <script>, <style> and <textarea> content byte-for-byte.
›Will it break my <pre>, <script>, or <style> blocks?
No — those blocks are protected from whitespace collapse during minification. Their content is extracted, the rest of the document is minified, then the blocks are restored verbatim.
›Does it work on HTML fragments, not just full documents?
Yes. Paste a <div>...</div> or any partial tree; Prettier handles it the same way it handles a full document.
›Is my HTML uploaded?
No — formatting and minification run entirely in your browser. Safe for sensitive markup.
As pessoas também pesquisam por
Ferramentas relacionadas
More in this room.
- Minificador de HTMLComprime espaços em branco, remove comentários — HTML compacto.
- Formatador e Validador de JSONEmbeleze, minifique e valide JSON — grátis, sem registo.
- Formatador de SQLEmbeleze e indente consultas SQL feias.
- Formatador e Validador de XMLEmbeleze, minifique e valide XML — instantaneamente.
- Formatador de CSSEmbeleze e minifique folhas de estilo CSS.
- Formatador de JavaScript / TypeScriptJS e TS formatados com Prettier, no navegador.