Skip to tool

JS Minifier

Basic minification: removes comments and whitespace. Does not rename variables or perform tree-shaking. Always test the output before using in production.
About this tool

Strip comments and collapse whitespace from JavaScript to reduce file size. Basic minification: no variable renaming. Runs entirely in your browser.

Privacy and details

Your files never leave your device.

Fast browser processing with no account required.

Optimized for desktop and mobile with accessible controls.

How to use
  1. Paste your JavaScript into the input area.
  2. The minified output appears instantly with the bytes saved shown above.
  3. Click "Copy JS" to copy the result to your clipboard.
  4. Or click "Download .js" to save the minified file.
Why use this tool

Reducing JavaScript file size improves page load performance. This tool performs safe comment and whitespace removal: no variable renaming or dead code elimination: making it safe to use without a build pipeline.