JavaScript Minifier
Minify JavaScript by removing whitespace, comments, and shortening variable names
All processing happens in your browser. No data is sent to any server.
Minified Output
Basic minification only (comment removal, whitespace collapse). For production use, consider terser or esbuild.
Why This Tool
Minified JavaScript loads faster and reduces bandwidth costs. This tool strips whitespace, removes comments, and compresses your JavaScript code — useful for quick one-off minification without a build tool.
How It Works
Paste your JavaScript code into the editor. The minifier processes it and outputs the compressed version with size comparison stats. Copy or download the minified result.