HTML minifier

Removes HTML comments and whitespace between tags conservatively.

{{ t("sizeBefore") }}: {{ minifyHtml.beforeSize }}
{{ t("sizeAfter") }}: {{ minifyHtml.afterSize }}
{{ t("sizeReduction") }}: {{ minifyHtml.reduction }}

Overview

Minified HTML is harder to debug. Keep a readable source in the repo.

Tool guide

  • O que é HTML Ver secções anteriores.
  • O que o minificador faz Remove comentários HTML e espaços entre tags de modo conservador.
  • Por que usar Reduzir HTML estático para deploy simples. Mantenha fonte legível no repositório; minificado dificulta debug.

Sample

<div>
  <p> Olá </p>
</div>

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.