DEVELOPER TOOLS · LOCAL ONLY

JavaScript Minifier

Strip JavaScript comments and whitespace while keeping the code runnable.

Up to 200,000 characters. Removes comments and whitespace only; nothing is renamed and the code is never executed.

Minify
3 lines · 70 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Removes comments and whitespace only; nothing is renamed and the code is never executed.

How to use

Strip JavaScript comments and whitespace while keeping the code runnable.

Remove comments and indentation to reduce size while deliberately keeping line breaks, so semicolon-free code cannot change meaning through automatic semicolon insertion. Strings, template literals, and regular expressions are untouched, and adjacent signs never collapse into `++`. For maximum compression use Terser or esbuild.

Limits and privacy

Up to 200,000 characters. Removes comments and whitespace only; nothing is renamed and the code is never executed.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.