Formateadores y código
Minificador HTML
Collapse whitespace, drop comments — slim HTML.
Nota del editor
Understanding · Whitespace mostly, but watch the inline content.
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.
›Will minification break my website?
Standard minification only removes redundant whitespace and comments which does not affect page layout. However, if your CSS relies on `display: inline-block` without specific margins, removing whitespace between elements can slightly shift their horizontal positioning.
›Does this tool remove script or style tags?
No. The minifier collapses whitespace within `<script>` and `<style>` tags if they contain standard JS or CSS, but it will not remove the tags themselves or alter your logic.
›Is my source code private?
Yes. The minification logic is executed entirely via JavaScript in your client browser. Your HTML is never uploaded to our infrastructure.
›What is the difference between compressing and minifying?
Minification removes source code characters to reduce file size, while compression (like Gzip or Brotli) happens at the server level to shrink the data during transit. For best performance, you should use both.
La gente también busca
Herramientas relacionadas
More in this room.
- Formateador de HTMLEmbellece y minifica HTML — valores por defecto de Prettier.
- 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.