JS Compression

home / products - contact

Compress your JavaScript with this simple online tool

The tool removes all unessessary characters in your sourcecode. The script becomes shorter and nearly unreadable.

Copy and paste your script here (max. size is 200 KB):

Keep first comment (useful for copyright headers)
Remove semicolons before curly brackets ( ;} => })
gzip output file (the download of the GZ file will start after pressing "Compress Script")
(this may take a few seconds, please be patient)

Loads your JavaScript in the IFRAME below. It's just a simply syntax 'check'.
For FireFox there is a fantastic debug tool, click here: FireBug

The JavaScript semicolon problem

In JavaScript it's possible to omit semicolons at special cases (bad language design, but it's there).
Normally, the compression will fail then, because our script is not smart enough to recognize these cases.
=> DON'T OMIT SEMICOLONS! Your code will not work after compression. Fix it!

Bad: onMove = function() {...} Good: onMove = function() {...};
Bad: x=10 Good: x=10;