JavaScript Minifier Online

Minify your JavaScript code instantly online. Remove whitespace, comments and reduce file size. Free, no signup, runs in your browser.

JavaScript Input

0 bytes

Minified Output

0 bytes

How to minify JavaScript

  1. Paste your JavaScript code in the left panel or click Sample to try an example.
  2. Click Minify — the compressed JS appears instantly on the right.
  3. Click Copy or Download to use your minified file.

Frequently Asked Questions

What does JavaScript minification do?

It removes whitespace, comments, and unnecessary characters from your JS code without changing how it runs. This reduces file size and speeds up page load time.

Is my code sent to a server?

No. Everything runs in your browser with JavaScript. Your code never leaves your device.

Will minified JS still work correctly?

Yes for most cases. This tool applies safe minification — removing comments and whitespace only — without renaming variables, so your code behavior is preserved.

How much can minification reduce file size?

Typically 20–50% depending on how much whitespace and comments your original code contains.