How to use Javascript Compressor

Note: this page needs to be updated for version 3.0.


All statements, including function declarations, must be correctly terminated with semi-colons. View this example of a correctly terminated javascript code.


Base62 encode

Shrink variables


Debug code(;;;)

Three semi-colons (;;;) are treated like single-line comments.

For example, this code:

;;; alert("TEST!");

Would be removed by the packing program.


Packed scripts should successfully unpack on all browsers that support JavaScript. Only basic JavaScript functionality is used to decode the packed script.

Some browsers may not support the packer itself. The web interface requires DOM support. Legacy browsers will display a disabled interface.

Description borrowed from algorithm author Dean Edwards.

<- Back to Javascript Compressor