Minify JavaScript using Terser. Remove whitespace, shorten variables, and reduce JS file size by up to 80%.
∞
Files Processed Today
0ms
Server Latency
100%
Browser-Based
Everything runs in your browser. Nothing is uploaded.
Use immediately without registration or account.
Process in milliseconds, right in your browser.
Knowledge Base
JS minification is the process of removing whitespace, comments, and renaming variables to shorter names without changing the program's behavior. The result is a smaller file that loads and parses faster.
Terser is the industry-standard JavaScript minifier and compressor. It performs dead-code elimination, constant folding, variable mangling, and many other optimizations. It is used by Webpack, Vite, and most modern build tools.
Well-written JavaScript should not break after minification. If your code relies on function.name or uses eval(), some minifications can cause issues. Keep your original source in version control and always test the minified output.
Minification primarily removes whitespace and comments. Uglification goes further by renaming variables to shorter names (mangling). Terser performs both, giving maximum size reduction. The resulting code is not human-readable.