🔍

JavaScript Minifier

Minify JavaScript with Terser to shrink files and speed up sites.

How it works

Minify JavaScript — removing whitespace, comments and shortening local names — to reduce file size and speed up your site. Powered by Terser, running in your browser.

Try an example

Minified JS

🔒 Generated entirely in your browser — nothing is uploaded.

🔒 Runs in your browser: tags, sitemaps and minification are generated locally from what you type — nothing is uploaded, no signup, no limits.

About the JavaScript Minifier

This free JavaScript minifier shrinks your JS by removing whitespace and comments and shortening local variable names, reducing file size so your site loads and runs faster. It's powered by Terser — the industry-standard minifier — running entirely in your browser.

Your code is never uploaded.

How to use it

  • Paste your JavaScript.
  • The minified output and size saved appear instantly.
  • Copy it into your production bundle.

Frequently asked questions

What does a JavaScript minifier do?

It removes everything the browser doesn't need — whitespace, comments — and shortens local variable names, producing much smaller code that behaves identically.

Is minified JavaScript the same as obfuscated?

No. Minification reduces size while keeping the code functionally identical; obfuscation deliberately makes code hard to read. Terser minifies, it doesn't obfuscate.

Will minifying break my code?

Terser is safe for standard JavaScript. As always, test your minified bundle, and keep the readable source for development.

Is my code uploaded?

No. Minification runs entirely in your browser with Terser.

Related searches

javascript minifierjs minifierminify javascriptminify js onlinejs compressorterser online

Related SEO tools