JavaScript Minifier
Basic JS minify — remove comments and blank lines.
Powered by terser; minifies in your browser.
输入
输出
Minify JavaScript with terser — safely removes comments and whitespace and shortens code. Runs in your browser.
使用方法
- Paste JavaScript.
- Comments and blank lines are removed.
- Copy the result.
常见问题
- Is it a full minifier?
- No — for production, use a build-time minifier like Terser.
- Will it break my code?
- It is conservative, but always test the output.