JS Minifier
Paste JavaScript code and get minified output instantly — removes whitespace and comments to shrink file size, all in the browser.
Options:
Input
Output
Click Minify to see output
Copied!
Summary
Paste JavaScript code and get minified output instantly — removes whitespace and comments to shrink file size, all in the browser.
How it works
- Paste or type your JavaScript code into the input panel.
- Choose a compression level: Basic (whitespace only) or Advanced (mangle variable names).
- Click "Minify" to compress the code instantly.
- The output panel shows the minified code along with the size reduction.
- Copy the result with one click or download it as a .min.js file.
Use cases
- Reduce JavaScript bundle size before deploying to production.
- Compress third-party scripts that are not already minified.
- Verify how much space minification saves for a specific file.
- Quickly produce a .min.js version of a utility script.
- Speed up page load times by delivering smaller JS payloads.
- Minify inline scripts in static HTML pages.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu