Shrink JavaScript by removing comments and whitespace. Safe mode keeps variable names unchanged.
How to use
- Paste your JavaScript.
- Click Minify.
- Copy or download the .min.js file.
Frequently asked questions
Will it break my code?
Safe mode only removes comments and spaces, so behaviour stays the same. Test the result before deploying.
Does it rename variables?
No. Use a build tool such as Terser for full mangling.
Is my data uploaded anywhere?
No. Everything runs inside your browser, so nothing you enter is sent to a server.
More free tools: see all tools.
