← All tools
Free tool No accountJavaScript Minifier
Minify JavaScript in your browser: comments and whitespace removed, code compressed and names shortened (terser).
Input
Output
AI uses your own key (several are free); a button opens a short setup.
About the JavaScript Minifier
Make JavaScript smaller by removing comments and extra whitespace — a quick, safe minify for snippets and small scripts.
How to use it
- Paste the JavaScript.
- The minified version appears on the right.
- Copy or download it.
Tip: For production apps, a build tool (esbuild, Terser) also shortens names; this tool keeps names as they are, which is safer for quick jobs.
Questions
Is my data uploaded?
No. The tool runs in your browser; what you paste or open never leaves your device and nothing is stored on a server.