Online JavaScript Code Compressor



If you encounter any errors with this tool attaching the file that causes problems.




About

First of all - I am NOT the author of the JS packing algorithm. I just added a simple web inteface which uses Ryan Grove's PHP port of Douglas Crockford's JavaScript packer.

Acording to the author of JSMin: "JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation. JSMin is a filter that omits or modifies some characters. This does not change the behavior of the program that it is minifying."

The purpose of this tool is to reduce the size of JavaScript code, not to obfuscate it (although the resulting code will be much harder to read and debug). If you want to prevent your code from being used by others use an JS obfuscator instead.

Remember: The JavaScript code packing uses an one-way routine so be sure to make some safe backups of the original files. Before compressing your JS you should run it through JSLint. JSLint checks for missing semicolons and such (Converting JS without proper semicolon terminations will result in code generating errors).