Online JavaScript Minifier
Loading tool...
How to use
- Paste or type your input in the left editor
- Adjust options in the toolbar if available
- Copy or download the output from the right pane
This free online tool runs entirely in your browser. No sign‑up, no server uploads.
About Minify JavaScript
Minify and compress JavaScript (via Terser) in your browser; reduce size and improve load times.
The JavaScript minifier parses the source code into an abstract syntax tree (AST), then serializes it back with minimal formatting — removing all comments, unnecessary whitespace, and redundant semicolons. Optionally, local variable names are shortened to single characters (mangling) and constant expressions are pre-evaluated (dead code elimination). The output is semantically identical JavaScript in the smallest possible representation.
Use the left editor to enter your data. The output updates in real time. You can copy, clear, download, or expand either pane.
Tip: Use the search bar to quickly switch between tools.
Sample JavaScript
function greet(n){return "Hello, "+n}Why this tool?
| Feature | Minify JavaScript | Typical alternatives |
|---|---|---|
| Free online tool | Yes | Often yes |
| Client‑side only (privacy) | Yes | Varies |
| No sign‑up required | Yes | Varies |
Explore related tools
Looking for more? Browse All tools or check categories like Beautifier, Minifier, and Validators.