JavaScript Code Minifier (Terser)

Reduce the size of your JavaScript code using Terser.

How to Use This Tool

Enter JavaScript Code

  1. 1

    Paste or type the JavaScript code you want to minify into the 'Input Code' area.

  2. 2

    Ensure the code is syntactically valid JavaScript.

Minify & Copy

  1. 1

    Click the 'Minify Code' button.

  2. 2

    The minified (uglified) code will appear in the 'Minified Code' area below.

  3. 3

    If minification fails due to syntax errors, an error message will be shown.

  4. 4

    Use the 'Copy Minified Code' button to copy the result.

Cookie Settings

We use cookies to enhance your experience and analyze site traffic. By clicking "Accept All", you consent to our use of cookies.