JavaScript Minifier

Minify and compress JavaScript using Terser. Removes whitespace, comments, and optionally mangles variable names.

How to minify JavaScript

  1. Paste your JavaScript into the input field.
  2. Choose options — mangle renames variables to single letters for maximum compression.
  3. Click Minify — Terser processes it in your browser (first use loads ~200KB library).
  4. Copy the minified output.

Why minify JavaScript?

Need more tools?

Browse our collection of free developer tools.

Browse All Tools →