Developer · Free forever
JavaScript minifier
Remove comments and unnecessary whitespace from JavaScript. Safe for production code, runs locally.
Frequently asked questions
Is this safe for production?
Yes for simple scripts. For complex codebases or maximum compression, use a tool like Terser or esbuild as part of your build pipeline.
Does it rename variables?
No. This is a lightweight whitespace-and-comments minifier. It does not perform variable mangling or tree shaking.
Will it break my regex or template literals?
Comment stripping is heuristic — review the output for code containing inline regex with slashes or template strings spanning multiple lines.