Output appears here...How to use
Paste your JavaScript
A single function or a full file both work. Try sample loads a small greeting function so you can watch the transformation happen.
Run Minify
Terser compresses expressions and renames local variables. If your code has a syntax error, the exact parser message appears below instead of broken output.
Copy into production
Take the single-line result and drop it into your script tag, your CDN upload, or your deployment folder.
Why JS Minifier
- Paste your code and minify js in one click. Full terser minification compresses and mangles, so the javascript minify output is as small as it gets.
- It reports how many bytes you saved on each run.
- Runs in your browser. Your code never leaves your device, so you can minify private scripts safely.
- The whole minify step happens locally, with no build tooling to set up.
- Free with no limit. Use minify js online as often as you need, with no sign up.