Task path / input to outcome
How to minify JavaScript
- 01
Paste the script
Paste UTF-8 source up to 256 KiB. The indent control is disabled for Minify.
- 02
Try the sample first
Sample loaded. Run the local transformation when ready.
- 03
Press Minify
Press Minify. Terser shortens JavaScript text without compression or name mangling; it retains /*!...*/ comments. Run your own tests before shipping.
- 04
Check the statistics
Compare UTF-8 input and output bytes and the savings percentage. A negative saving means the result grew; inspect it before copying or downloading.
- 05
Copy or download the result
Use Copy result for the clipboard or Download to save toolars.min.js — Copy result is the fast path when the output is headed straight into a script tag. Reset clears the panes for the next script.