Paste JavaScript
Paste your JavaScript into the box.
Real Terser-powered JS minification: parse, compress, mangleReadable JavaScript is written for humans: descriptive names, comments, generous line breaks. Browsers need none of that. This minifier compresses your script into its smallest valid form, producing dense code that executes identically while weighing measurably less.
Real Terser-powered JS minification: parse, compress, mangle
Options
Powered by Terser: real parsing, dead-code removal, and compression. Runs in your browser.
Paste your JavaScript into the box.
Choose whether to mangle variable names.
Click "Minify JavaScript", then copy or download the result.
Simple whitespace strippers leave most of the savings on the table and can break code. This tool runs Terser, the same minifier behind most production build pipelines, directly in your browser. Because it truly parses your code, it compresses expressions, removes dead code and reports syntax errors clearly. Production-grade minification without installing anything.
Outside the build pipeline.
A snippet destined for a CMS custom-code box, where no bundler ever runs.
Userscripts and bookmarklets that ship as a single compressed file for easy install.
Third-party embed code you were told to paste as-is, slimmed down before it goes live.
Experiments where configuring a bundler would take longer than the task itself takes.
Two habits keep it trouble-free.
Always keep the readable source as the file you edit; debugging compressed code directly is miserable.
Breakage after minifying almost always exposes a pre-existing syntax quirk, so test the page once.
Projects with a build pipeline already minify on every deploy; those tools should stay the source of truth.
Everything runs in your browser. Your code never leaves your device, no signup needed.

Discover the technology stack behind any website in seconds. Our free Technology Stack Detector uncovers CMS, frameworks, hosting, and analytics instantly.
Read article →
Free security headers checker. Instantly scan HSTS, CSP, X-Frame-Options and more on any site, get an A to F grade and clear steps to fix every website gap.
Read article →