Everything runs in your browser. Your data is never sent to our servers.
About JavaScript Minifier
JavaScript Minifier compresses your code and can shorten variable names, producing a much smaller file for production. It uses the well known Terser engine in your browser.
Tips for best results
- Syntax errors are reported with a line and column.
- Turn off name shortening if your code depends on function names.
- Keep the original source code for editing later.
How to use JavaScript Minifier
- 1
Paste your JavaScript
Add your code.
- 2
Choose name shortening
Keep Shorten variable names on for the smallest result.
- 3
Copy the minified code
The tool shows how much smaller it is.
Frequently asked questions
Does it support modern JavaScript?
Yes. Modern syntax such as arrow functions, classes and async code is supported.
Can minifying break my code?
Rarely. Code that relies on function or variable names as text can break when names are shortened, so test the result.
Is my code uploaded?
No. This tool runs inside your browser, so your data is processed on your own phone or computer and is not sent to our servers.