Free JavaScript Minifier Online
Use this free JavaScript minifier to compress JS and reduce file size. Fast, private, and works directly in your browser.
Loading tool…
What is JavaScript Minifier?
JavaScript Minifier compresses JS by removing whitespace and comments and shortening code, producing the smallest possible file for production. It is powered by Terser and runs in your browser.
How to use this tool
- Paste your JavaScript.
- Click Minify.
- Copy the minified output.
Features
- Minify with Terser
- Removes whitespace and comments
- Shows the size reduction
- Copy the minified code
- Runs entirely in your browser
This tool runs in your browser. Your files and text are not uploaded to our servers, and we do not store your input.
Frequently asked questions
Does it run my code?+
No. The code is only parsed and minified; it is never executed.
What if there is a syntax error?+
You will see an error message so you can fix the code first.
Is my code uploaded?+
No. Minification happens entirely in your browser.
Related tools
Looking for more Developer Tools?
Browse the full collection of free, browser-based tools.