Home
Tom Utilities

JavaScript Minifier

HTML, CSS & JavaScript

Reduce JavaScript size by removing comments and unnecessary whitespace.

Input

Result

How to use

How to minify JavaScript

Press Minify to strip comments and collapse whitespace. Identifiers are never renamed.

  1. Paste JavaScript into the input editor.
  2. Press Minify.
  3. Copy the compressed code.

Frequently asked questions

Does it rename variables?

No, renaming is not performed so the output stays predictable and safe.

Is the result still valid?

Yes, the minifier is newline safe and keeps automatic semicolon insertion working.