JavaScript Minifier
Minify JavaScript to make files smaller and pages faster.
How it works
- 1Paste your JavaScript.
- 2It is minified as you type.
- 3Copy or download the result.
Features
- Shows the size before and after.
- Variables renamed, dead code removed.
- Errors reported clearly.
- Private: runs in your browser.
Frequently asked questions
Is it safe?
Terser renames local variables and removes dead code without changing behaviour. License comments (/*! ... */) are kept.
Can I undo it?
Use the JavaScript Formatter to make minified code readable again (renamed variables stay renamed).
Is my data sent anywhere?
No. Everything runs in your browser; nothing is uploaded.