Minify JavaScript

Minify JavaScript code

How to use

  1. Paste your JavaScript into the box.
  2. Whitespace and comments are stripped to shrink the code.
  3. Copy the minified JS for production.

Why use this tool

Frequently asked questions

Will minifying break my code?

Removing whitespace and comments is safe. For maximum compression with renaming, use a full build tool; this is a quick, safe minifier.

Is this the same as obfuscation?

No. Minifying shrinks code while keeping it functional; obfuscation deliberately makes it hard to read, which is a different goal.

Is my code private?

Yes. It's minified entirely in your browser.

Back to all tools