JavaScript Minifier

Minify JavaScript with Terser.

Paste JavaScript and get a minified version using Terser — whitespace and comments removed and names shortened where safe. See the size you save. Everything runs in your browser.

Runs entirely in your browser — nothing is uploaded.

How to use the javascript minifier

  1. 1Paste your JavaScript.
  2. 2See the minified output and size saved.
  3. 3Copy or download the result.

Frequently asked questions

Is my code uploaded?

No — minification runs entirely in your browser with the Terser library; your code never leaves your device.

What if my JS has a syntax error?

Terser reports it — fix the syntax and the minified output appears automatically.

Read the guide
How to Minify CSS, JavaScript, and HTML (Free)

Related tools