JavaScript Minifier

Note: this is a safe whitespace/comment minifier. It preserves string contents. Always test the output before using it in production.

About JavaScript Minifier

JavaScript is often the heaviest part of a page. Minification removes comments and whitespace so the file downloads and parses faster. Our free JavaScript Minifier compresses your scripts instantly.

Paste your JS, minify, and deploy the compact version. Combine with our HTML and CSS minifiers for a fully optimized page.

Keep in mind

  • Keep the original source under version control; minified code is write-only.
  • Verify functionality after minifying, especially with older syntax.
  • For the biggest wins, also defer non-critical scripts.