Skip to content
ConvenTools

JavaScript Minifier

Runs in your browser — your files never leave your device

Minify JavaScript with Terser — the same engine bundlers use. Local names are shortened, whitespace removed and constants folded, all in your browser, so your source code never leaves your device.

810 bytes

How to use it

  1. 1
    Paste JavaScript

    Paste your JS source into the input box.

  2. 2
    See the minified output

    Terser compresses the code live and shows the size saved.

  3. 3
    Copy

    Copy the minified JavaScript with one click.

Real minification with Terser

This isn’t just whitespace removal: Terser parses your code and rewrites it — renaming local variables, folding constant expressions and dropping dead code — to produce genuinely smaller output that runs identically.

Paste a snippet or a whole file. Syntax errors are reported so you can fix the source before shipping.

Frequently asked questions

Is my code uploaded anywhere?

No. Minification runs entirely in your browser with Terser compiled to run client-side; your source never leaves your device.

Does it change how my code behaves?

No. Terser preserves behaviour — it only makes the code smaller. Avoid relying on function or variable names being preserved.

Why do I get a syntax error?

Terser must parse valid JavaScript. The error points to where parsing failed so you can fix the source.