JavaScript 压缩
删除注释和不必要的空白以减小 JavaScript 体积。
输入
结果
使用方法
How to minify JavaScript
Press Minify to strip comments and collapse whitespace. Identifiers are never renamed.
- Paste JavaScript into the input editor.
- Press Minify.
- Copy the compressed code.
常见问题
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.