JavaScript Minifier Online
Minify JS to reduce file size and speed up page loads. All processing happens in your browser — your code never leaves your device.
JavaScript input
Minification options
Why Minify JavaScript?
Your JavaScript is processed locally in your browser. Nothing is uploaded or stored.
Smaller scripts download faster and can improve performance for real users.
Enable compression, name mangling, and optional console removal to fit your use case.
Copy the minified result to your clipboard or download a ready-to-use .min.js file.
Use on desktop, tablet, or mobile — no installation required.
No sign-up, no limits. Minify as often as you need.
How to Minify JavaScript
Three simple steps
- 1Paste or upload your code
Paste JavaScript into the editor or upload a .js file to load it instantly.
- 2Adjust options (optional)
Toggle compression, name mangling, console removal, and license comment preservation.
- 3Minify and export
Click Minify JavaScript, then copy the output or download it as a .min.js file.
JavaScript Minifier FAQ
Is this JavaScript minifier free to use?
Yes. The tool is free with no sign-up and no usage limits.
Is my code private?
Yes. All minification runs in your browser. Your code is not uploaded or saved.
Should I enable name mangling?
Mangling usually makes output smaller. If your code exposes specific global names that other scripts rely on, keep mangling off or test carefully.
Why would I drop console.*?
Dropping console statements can reduce size and avoid leaking logs in production. Keep it off for debugging builds.