JavaScript Minifier

JavaScript मिनिफ़ायर

Minify JavaScript with Terser – compress code and shorten names.

Runs in your browser – nothing you enter or upload is sent to our server

How to use the JavaScript Minifier

  1. Paste JavaScript or open a .js file.
  2. Choose whether to compress, shorten names and keep licence comments.
  3. Click Minify JavaScript.

Supported formats: JS, MJS, TXT

Powered by Terser

This tool uses Terser, the same minifier used by most modern build tools, running entirely in your browser. It understands modern JavaScript (ES2015+), so it can safely remove dead code, shorten local variable names and compress expressions.

If your code has a syntax error, Terser reports the line and column instead of producing broken output. Licence comments (/*! … */, @license) can be kept, which is required by many open-source licences.

Frequently asked questions

Is my code uploaded?

No. Terser runs in your browser; your code never leaves your device.

Can minifying break my code?

Rarely. Code that depends on function names (for example with eval or reflection) can be affected by name shortening – turn off “Shorten variable names” in that case.