About JS minification

Minification reduces code size by removing comments and unnecessary whitespace, improving load times. This tool applies safe transforms without changing logic.

For maximum effect in production, use bundlers with terser/rollup/webpack. This tool is handy for quick edits and local optimization.

Aggressive mode loads Terser only when requested, keeping the page lightweight for basic usage while enabling deeper optimization of modern ES2022+ syntax when needed.

How to use

  • 1

    Paste code

    Copy your JavaScript into the top field.

  • 2

    Pick options

    Keep checkboxes for comments and whitespace. Aggressive may alter behavior due to ASI — use only if needed.

  • 3

    Minify

    Click Minify — result will appear below.

  • 4

    Save

    Copy the result or download `.min.js`.

FAQ