JavaScript Minifier
Minify and compress JavaScript using Terser. Removes whitespace, comments, and optionally mangles variable names.
How to minify JavaScript
- Paste your JavaScript into the input field.
- Choose options — mangle renames variables to single letters for maximum compression.
- Click Minify — Terser processes it in your browser (first use loads ~200KB library).
- Copy the minified output.
Why minify JavaScript?
- Smaller file size means faster page loads.
- Removes comments, whitespace, and renames variables to reduce bytes.
- Use minified files in production; keep originals for development.
Need more tools?
Browse our collection of free developer tools.
Browse All Tools →