JavaScript minifier

Simple comment/whitespace removal. Does not replace Terser/esbuild in real builds.

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

Overview

For production use your bundler pipeline. This page is for quick experiments and size checks.

Tool guide

  • O que é JavaScript Linguagem de script usada no browser e no Node; código-fonte pode ter comentários e espaços para legibilidade.
  • O que o minificador faz Remove comentários e espaços supérfluos de forma conservadora.
  • Por que usar Teste rápido de redução de tamanho. Produção deve usar bundlers (Terser, esbuild, etc.) com tree-shaking e testes.

Before

function hello() {
  // comentário
  return 1;
}

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.