Formateadores y código
Formateador de HTML
Formateador y minificador de HTML gratuito. Embellece con la indentación predeterminada de Prettier y el ajuste de atributos, o colapsa HTML a una sola línea para producción. En el navegador, nada se carga.
Nota del editor
Understanding · Indented HTML, sane defaults.
Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.
Preguntas frecuentes
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.
La gente también busca
Herramientas relacionadas
More in this room.
- Minificador HTMLColapsa espacios en blanco, elimina comentarios — HTML ligero.
- Formateador y Validador de JSONEmbellece, minifica y valida JSON — gratis, sin registrarse.
- Formateador de SQLEmbellece e indenta consultas SQL feas.
- Formateador y Validador de XMLEmbellece, minifica y valida XML — al instante.
- Formateador de CSSEmbellece y minifica hojas de estilo CSS.
- Formateador de JavaScript / TypeScriptJS y TS formateados con Prettier, en el navegador.