The JavaScript Minifier is a free online tool that compresses JavaScript code to reduce file size. Powered by Terser, it removes whitespace, shortens variable names, and applies optimizations to produce production-ready minified output.
- Paste or type your JavaScript code in the input panel on the left.
- Adjust options like Mangle, Compress, Drop console as needed.
- Click the Minify button (or press Ctrl+Enter) to minify.
- View the compression stats showing original vs minified size.
- Click Copy to copy the result, or Download to save as a file.
- Minify JavaScript with Terser — the industry-standard ES6+ minifier.
- Mangle option to shorten variable and function names.
- Compress option to apply dead code elimination and optimizations.
- Drop console and debugger statements for production builds.
- Compression stats showing original size, minified size, and savings.
- Upload files or paste code directly.
- Copy minified code or download as a file.
- 100% client-side — your code never leaves your browser.
- Is my code sent to a server?
- No. All minification happens locally in your browser. Your code is never uploaded or stored.
- What does "Mangle" do?
- Mangle shortens local variable and function names (e.g., myVariable becomes a) to reduce file size without changing functionality.
- Should I enable "Drop console" for production?
- Yes. Removing console.log statements reduces file size and prevents leaking debug information in production.
- What minification engine is used?
- This tool uses Terser, the most widely used JavaScript minifier that supports modern ES6+ syntax.
No comments yet. Be the first to comment!