JavaScript Code Compressor

This tool compresses or minify JavaScript codes. It reduces the code size by removing the unnecessary data, such as extra spaces, line breaks, comments and indentation. It does not modify or recode the codes - it means that after the compression, the script will run perfectly just like the original algorithm.

Paste the javascript code here, select options and then click the Optimize button
Upload JavaScript File
Optimization Level:
Normal: Strip comments and leading white spaces
Semi-Compact: Remove lines in algorithm
Compact: Remove more lines and make the algorithm inline if possible.
Old size:
New size: