JS Minifier

Minify JavaScript code to reduce file size

Original Size

Settings

What is JS Minifier?

JS Minifier compresses JavaScript code by removing whitespace, comments, and shortening variable names using the Terser engine. This reduces file size for faster page loads and lower bandwidth costs while preserving the code's functionality.

How to use

  1. Paste your JavaScript code into the input editor, or upload a .js file.
  2. Pick your minification options: toggle mangling (shortens variable names), compression, and whether to strip out console.log calls.
  3. Click Minify to process the code. Check the size reduction, then download the minified file or copy it to your clipboard.

Result

You have a 45KB utility library with extensive comments and long variable names. Paste it in, enable mangling and compression, and get a 12KB output — a 73% reduction ready for production deployment.

Related Tools