JavaScript Minifier

Compress JavaScript safely — no side effects on strings or eval.

About the JavaScript Minifier

Compress JavaScript by removing comments and insignificant whitespace while leaving string literals, regular expressions, and eval contents untouched — a safe, side-effect-free compression.

Frequently asked questions

Does it rename variables like a bundler?

No. This minifier is deliberately conservative — whitespace and comments only — so nothing can change behaviour.

Should I still use a bundler for production?

Yes — esbuild/terser rename and tree-shake. This tool is for quick one-off compression.

Related tools