ReallyUseful.Tools

JavaScript minifier

Minify JavaScript with Terser: remove whitespace, shorten variables, and drop console calls. Supports ES modules and modern syntax.

How to use JavaScript minifier

Minify JavaScript with Terser, the same compressor used by most modern build tools.

  • Removes whitespace and comments, and shortens local variable names
  • Dead-code removal and constant folding, with two compression passes
  • Optionally drop console.* calls and keep license comments
  • Supports modern syntax and ES modules

Syntax errors are reported with the line and column.

JavaScript minifier FAQs

Is JavaScript minifier free?

JavaScript minifier is a free online tool on ReallyUseful.Tools. No account is required.

Does JavaScript minifier run in my browser?

JavaScript minifier is designed to run in your browser where supported, so files can stay on your device instead of being uploaded to a server.

More Developer Tools

JSON formatter & validator

Format, beautify, validate, and minify JSON online. Pinpoint syntax errors by line and column, sort keys, and copy or download the result.

Unix timestamp converter

Convert Unix epoch timestamps to human-readable dates and back. Supports seconds and milliseconds, local time, UTC, and ISO 8601.

Regex tester

Test JavaScript regular expressions with live match highlighting, capture groups, flags, and replace preview.

Browse all 54 Developer Tools tools