Skip to main content
>_devtools

JavaScript Minifier

Minify JavaScript with Terser: compress, mangle names, drop console calls, pick the output ES level, and see the size and gzip savings.

How to use it

Minify JavaScript with Terser: compress, mangle names, drop console calls, pick the output ES level, and see the size and gzip savings. Paste JavaScript above and adjust the compression options to inspect the smaller output.

Example

Input: function add(a, b) { return a + b; }
Output: function add(n,r){return n+r}

Limits and behavior

  • Minification can change names when mangling is enabled.
  • Input is limited to 1 MiB of UTF-8 text.