DEVELOPER TOOLS / DEVTOOLS
JavaScript Minifier
Minify JavaScript source while preserving its behavior.
Processing happens locally in this browser.
ABOUT THIS TOOL
What JavaScript Minifier does
Compress JavaScript source with Terser in the browser. Minification changes formatting and can rename local variables, so validate the resulting code in your project before shipping.
Useful for learning about minification and checking small snippets. For production bundles, use the build pipeline configured for your application.
How to use JavaScript Minifier
- Paste the JavaScript source code.
- Select Minify to compress the source.
- Copy or download the generated JavaScript.
ANSWERS AND DETAILS
Frequently asked questions
What does this tool do?
Compress JavaScript source with Terser in the browser. Minification changes formatting and can rename local variables, so validate the resulting code in your project before shipping.
When is this tool useful?
Useful for learning about minification and checking small snippets. For production bundles, use the build pipeline configured for your application.
Is my input uploaded?
No. This tool runs in your browser and does not send the value you enter to a processing server.