JavaScript Minifier
Paste JavaScript and shrink it by removing comments, extra spaces and line breaks.
JavaScript
Minified
Recent minifications on this device
How this tool works
Method. Comments are removed and spaces are kept only where the code needs them. Text inside quotes and regular expressions is never changed. The code is checked first, and invalid JavaScript is refused with its error.
Privacy. Everything happens in your browser. Nothing is uploaded or shared; the recent-minifications record stays on this device only.
Limits. Code up to 1 MB. Variable names are not renamed, so the minified code stays readable enough to debug.