JavaScript minifier

Minify JavaScript with Terser.

Runs on your device

This tool runs in your browser. Your files and text are not uploaded.

Accepts: Paste text or open a file. Limits: Up to 25.0 MB.

Loading tool…

How to use JavaScript minifier

  1. Paste JavaScript.
  2. Choose options.
  3. Select Minify.
  4. Copy or download.

Questions

Does it support modules?

Yes. Turn on "ES module" for code that uses import and export.

Related tools

More in Developer tools · All tools · Tool ID developers/js-minifier