Code / Developer tools
JS Minifier
Compress and bundle JavaScript source code by removing whitespace, comments, and optimizing syntax.
READY
DEV UTILITY
Terser Engine
javascript
Example_Script.js
EXAMPLE
INPUT JAVASCRIPT
1 line
UTF-8
12345678910111213141516171819202122232425
Compression Mode
Optimizer Switches
Weight Delta
-
Original
0 B
arrow_forward
Minified
0 B
Payload saved
0 B
Minified JavaScript
Enter JavaScript to begin.
Minify JavaScript safely
Paste JavaScript and choose fast or deep mode. Review mangling and debug-removal switches before minifying.
Example
function sum(a,b) { return a + b; } keeps its behavior after default minification.
Before you use the result
Test minified code in your application. Removing console calls can also remove their argument side effects.