Skip to content
Jellykit

JavaScript Minifier (Lite)

Lightweight JavaScript minifier that strips comments, indentation and blank lines while keeping your code working. Free, quick and fully in-browser.

Runs in your browser. Nothing is uploaded.

About JavaScript Minifier (Lite)

This lightweight JavaScript minifier removes comments, indentation and blank lines. Line breaks between statements are kept on purpose: JavaScript's automatic semicolon insertion means joining lines can change what code does, so this tool never risks it.

For production bundles with variable renaming and dead-code removal, use a build tool such as esbuild or Terser. This is for quick snippets, bookmarklets and inline scripts.

How to use JavaScript Minifier (Lite)

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. The result appears instantly as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Why aren't my lines joined into one?

Without full parsing, joining lines can break code that relies on automatic semicolon insertion. Keeping the line breaks guarantees the code still runs.

Does it rename variables?

No. Variable names are left alone.

Is JavaScript Minifier (Lite) free and private?

Yes. JavaScript Minifier (Lite) is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all developer tools →