Developer
JavaScript minifier
Minify JavaScript with Terser to reduce download size.
Free to use · Runs in your browser · No signup
This tool works in your browser. Enable JavaScript to select files and create your download.
How to use JavaScript minifier
- Paste your JavaScript.
- Choose whether to shorten variable names and whether the code is an ES module.
- Minify, then copy or download the result.
What you need
Nothing to upload. Type or paste directly into the tool; results update as you go.
Your result
Minified JavaScript and the size saved.
Before you start
Minification removes comments and whitespace and may rename local variables. Test the output, and keep the original source.
Questions about JavaScript minifier
How do I use JavaScript minifier?
Paste your JavaScript. Choose whether to shorten variable names and whether the code is an ES module. Minify, then copy or download the result.
What does JavaScript minifier produce?
Minified JavaScript and the size saved.
What should I check before using JavaScript minifier?
Minification removes comments and whitespace and may rename local variables. Test the output, and keep the original source.
Is what I type sent anywhere?
No. The calculation runs in your browser, and the text or numbers you enter are not uploaded or stored.