JavaScript Minifier
Minify or beautify JavaScript using Terser. ES6+ support, compression stats. 100% client-side.
Privacy: All minification uses Terser in your browser. Your code never leaves your device.
Related Tools
Frequently Asked Questions
What does JavaScript minification do?
JS minification removes whitespace, comments, shortens variable names (mangling), and eliminates dead code. This reduces file size and improves page load performance.
Does this support ES6+ / modern JavaScript?
Yes. Terser fully supports modern JavaScript including arrow functions, template literals, destructuring, async/await, optional chaining, and more.
What is variable mangling?
Mangling replaces long, descriptive variable names with short single-letter names (e.g., 'userName' becomes 'a'). This is safe for local variables but won't rename global variables or properties by default.
Is my code secure?
Yes. All minification happens in your browser using Terser. Your code never leaves your device — no data is sent to any server.