JavaScript Minifier

Shrink JavaScript for size checks—runs locally; source maps disabled by default.

When to use this tool

  • Checking the minified size of a small utility before adding it to production.
  • Minifying a snippet for a blog post or a demo playground.
  • Comparing how Terser compresses two implementations of the same function.

How it works

  1. Paste the JavaScript source.
  2. Click minify.
  3. Read the output and the before/after size.
  4. For production builds, let your bundler minify. This tool is for ad hoc checks.

Privacy: This tool runs entirely in your browser. Your input is not sent to our servers.

Advertisement

Frequently asked questions

Does it produce source maps?

Source maps are disabled by default for speed and privacy. For real builds, enable source maps in your bundler.

Will it break my code?

Terser is conservative and safe by default. Code using eval-based dynamism may need manual review after minification.

Is the code uploaded anywhere?

No. Minification runs in your browser via WebAssembly / JS.