Minifier · JavaScript
Minify JavaScript
Paste your JavaScript below and hit Minify to compress it in one click. It uses Terser to safely rename variables and strip whitespace, comments and dead code. See exactly how many bytes (and gzipped bytes) you save.
Input
Output
Your result appears here
Paste code, pick a mode, then hit the button.
Tip: press ⌘Enter (or CtrlEnter) to run.
Frequently asked questions
Is the JavaScript minifier free?
Yes. Neatly's JavaScript minifier is completely free, needs no sign-up, and has no usage limits.
Is my JavaScript kept private?
Your JavaScript is processed on the fly and never stored or shared — nothing is saved on our servers.
Will minifying change how my JavaScript works?
No. Minification only removes what a machine ignores; the meaning and structure of your JavaScript stay exactly the same.