JS Minifier

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

Your files never leave your device

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

How to JS Minifier

  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.

Frequently Asked Questions