Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitDeveloperJavaScript Minifier

JavaScript Minifier

Minify JS with Terser and see gzip savings. Runs entirely in your browser — nothing is uploaded.

Help
Runs locally Instant, no sign-up Works offline
How it works

How to use JavaScript Minifier

  1. 01Paste your JavaScript into the JavaScript box, or click Sample.
  2. 02Choose options such as Mangle names, Compress, Drop console.* calls and the ES target.
  3. 03Check the original, minified and gzipped sizes and the percentage saved.
  4. 04Click Copy or Save to download script.min.js.
Questions

JavaScript Minifier FAQ

6 answers to what people ask most about the JavaScript Minifier.

How do I minify JavaScript online?

Paste the code and the minified version appears on the right. The size cards show how much smaller it is, both raw and gzipped.

What does Mangle names do?

It shortens local variable and function names, such as userCount to a, which cuts file size. Turn on Keep function & class names if your code depends on them, for example in stack traces.

How do I remove console.log from my code?

Turn on Drop console.* calls. Terser then removes calls to console.log and the other console methods from the output.

Why do I get a syntax error?

The code has a parse problem, and the message shows the line and column with a pointer to it. If you are minifying plain scripts that use import or export, keep ES module switched on.

Which ES version should I choose?

Pick the oldest version your users need. ES2020 is a safe modern default, while ES5 avoids modern syntax for very old browsers. Terser does not convert newer syntax downward.

Is JavaScript Minifier free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

Something not working? Tell us and we'll fix it.

Report an issue
More tools
JSON Formatter

Format, minify and validate JSON with clear errors.

Developer
Base64 Encode / Decode

Encode text to Base64 or decode it back, UTF-8 safe.

Developer
URL Encode / Decode

Percent-encode query values or whole URLs.

Developer
HTML Entities

Escape < > & and quotes, or decode entities.

Developer
Something off with JavaScript Minifier? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt