JavaScript Minifier

Strip comments, whitespace and simplify JS code for smaller bundle sizes

Input JavaScript
Minified Output
Original
Minified
Saved
Ratio

⚠️ This is a basic whitespace/comment minifier. For production, use terser, uglify-js or esbuild for full variable renaming and tree-shaking.

About This Tool

The free JavaScript minifier reduces JS file size by removing comments, collapsing whitespace, and shortening variable names. Smaller JS files parse and execute faster, improving Time to Interactive and JavaScript execution scores in Google Lighthouse.

Common Use Cases

Frequently Asked Questions

Not perfectly. Variable names and comments removed during minification cannot be reliably recovered.
This minifier uses conservative transformation — removing comments and whitespace only. Always test minified output before deploying.
Minification reduces file size by removing whitespace. Obfuscation renames variables to meaningless names. This tool performs minification only.