Shrink JavaScript by stripping comments and unnecessary blank lines — a lightweight cleanup for quick size reduction.
How it works
- Paste your readable Javascript code into the tool.
- The engine conservatively strips out block comments, line comments, and blank lines.
- Copy the shrunken Javascript payload for faster network delivery.
Frequently asked questions
Does this tool aggressively rename variables like production minifiers?
No. Advanced minifiers like Terser rename variables and restructure logic. This tool safely removes whitespace and comments only.
Is the output guaranteed safe to run?
Yes, for typical code. Because it only removes non-executable whitespace, the logic remains identical to your source code.
When should I use a real build tool instead?
For massive production web applications, you should use bundlers. This tool is designed for quick, manual compression of small scripts.