Online JS minimizer

Minify HTML Minify CSS


Here you can minify JS code. Check out this example to understand how it works.

We don't store any code, so you can use it without any worries about privacy.


How JavaScript Minification Works

JavaScript minification removes comments, whitespace, and newlines, and shortens local variable and function parameter names where safe - dramatically reducing script bundle size without altering runtime behavior. Smaller JavaScript payloads download faster, require less CPU time to parse and compile on mobile devices, and improve Core Web Vitals like Interaction to Next Paint (INP).

Minification vs. Obfuscation

  • Minification focuses purely on file size and performance while preserving predictable execution.
  • Obfuscation intentionally transforms control flow and encodes strings to make reverse-engineering harder (at the cost of larger output). If you need obfuscation, use our JavaScript Obfuscator.
  • Tip: Always test your minified script in the browser console before deploying, especially if your original code omitted semicolons.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy