JavaScript Minifier

Compress JavaScript with Terser, the minifier behind most modern build tools. Modern syntax is supported.

Runs in your browser · nothing uploadedFree · no sign-up
Loading tool…

How to use the JavaScript Minifier

  1. Paste your JavaScript.
  2. Choose whether to mangle names and keep comments.
  3. Copy or download the result.

Features

  • ES2015+ support
  • Name mangling
  • Syntax errors with line and column

Frequently asked questions

Is mangling safe?

Yes for normal code. Disable it if other scripts access your functions by name through strings.