JavaScript minifier

Make JavaScript files smaller for faster websites, using Terser - the minifier behind most modern build tools.

Shorten names

Free · No sign-up · Your files are processed on your device and never uploaded

How to use JavaScript minifier

  1. Paste or type…
    1

    Paste or type

    Put your content in the box - or try the example.

  2. Result appears instantly
    2

    Watch the result

    The result updates as you type - choose options above if needed.

  3. TXTCopy / Download
    3

    Download the result

    Ready in seconds. Your file never left your device.

Features

  • Compression and name shortening (optional).
  • Supports modern JavaScript (ES2020+).
  • Syntax errors with line and column.

Private by design

Everything runs in your browser. Nothing you paste is uploaded, logged or stored.

Questions

Is my code uploaded?

No - Terser runs in your browser.

More developer tools

All tools →