All tools
JavaScript Minify
Compress JavaScript code for production
Privacy: Your code is processed locally with Terser in your browser. Nothing is sent to a server.
About JavaScript Minifier
Every unnecessary space, line break and comment in your JavaScript makes the file bigger and your site slower to load. This free minifier strips all of that out and shrinks your JS to the smallest size that still works, so pages load faster for your visitors. It runs entirely in your browser, so your code is never uploaded to a server.
How to use JavaScript Minifier
- 1
Paste JavaScript
Paste your JavaScript code in the input area.
- 2
Minify code
Click minify to remove whitespace, comments, and shorten variable names.
- 3
Copy minified code
Copy the minified JavaScript to clipboard or download it.