JavaScript Minifier

Minify JavaScript to shrink bundle size and improve performance. Free online JS minifier powered by Terser. Runs locally in your browser.

About the JavaScript Minifier

Compress JavaScript with Terser — it removes whitespace, shortens local names, and drops comments while preserving behavior. Smaller scripts load and parse faster in the browser. Everything runs in your browser — nothing is uploaded.

Common use cases

  • Faster loads: ship smaller bundles to your users.
  • Snippets: minify a single file without a build tool.
  • Embeds: compact inline scripts for widgets and tags.

How it works

  1. Paste JavaScript, upload a file, or fetch it from a URL.
  2. Click Minify.
  3. Copy the result or save it, and check the size reduction.

Frequently asked questions

Is the output safe to run?

Terser preserves program behavior. Still, test minified output before deploying, especially code that relies on function names at runtime.

Is my code uploaded?

No. Minification runs locally in your browser — your code never leaves your device.