JavaScript Minifier
Minify JavaScript files by removing whitespace and comments. Optionally obfuscate variable names.
BEFORE
function greet( name ) {// say hello
return "Hi, " + name;
}
AFTER MINIFY
function greet(name){return "Hi, "+name}
JavaScript Minifier
Minify JavaScript files by removing whitespace and comments. Optionally obfuscate variable names.
Full UI launching soon
Want early access? Let us know →
How to Use JavaScript Minifier
01
Paste your JavaScript code
02
Click Minify
03
Copy the minified output
Why Use This Tool
100% Private
Your data never leaves your browser. Nothing is uploaded to any server.
Instant Results
Modern browser APIs deliver results in milliseconds with no waiting.
Free Forever
No subscriptions, no credits, no paywalls — ever.
Frequently Asked Questions
Will minification break my code?
No — only whitespace and comments are removed. Functionality is 100% preserved.
Does it obfuscate variable names?
Optional — toggle variable name mangling separately.
Is it safe for production?
Yes — this is the same process used by build tools like Webpack and Vite.
Related Tools
Explore all 60+ tools
Find image compressors, PDF editors, developer utilities, SEO tools and more — all free, all in your browser.