Skip to content
Devtoolry

JavaScript Minifier

Minify and mangle JavaScript with Terser for smaller bundles. Supports modern ES syntax.

About the JavaScript Minifier

The JavaScript Minifier uses Terser, the minifier behind most JavaScript bundlers, to remove whitespace and shorten local variable names (mangling) for smaller files.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the JavaScript Minifier

  1. Paste JavaScript or open a file.
  2. Choose whether to mangle names and apply compression optimisations.
  3. Copy or download the minified code.

Frequently asked questions

What does mangling do?

It renames local variables and function parameters to short names. Global names and object properties are left alone, so behaviour does not change.

Does it support modern syntax?

Yes, ES2015+ features such as modules, classes, async functions and optional chaining are supported.