Strictly Compressor - Minify and Compress Javascript

The best compression with this tool so far had a reduction of 72.29%

The details of this compression were:

Original Size: 24.41 KB Compressed Size: 6.76 KB Reduced by: 17.64 KB Compression Ratio: 72.29%

Either upload a file to compress or paste the content into the input box. The maximum file size is 200KB.

In complex mode the Javascript compressor will try to rectify simple issues such as missing terminators and brackets when trying to format the code but to ensure the best possible script compression make sure the code you input validates correctly and is properly formatted.

For information about each advanced option use the help icons next to each input. For a more detailed look at all the options and how they can be used to customise your script compression please view this article which explains each option in detail.

Enter the content to be compressed

Or select a file from your PC

Advanced Options

For more details about the following options please refer to the online documentation.


Simple mode will remove comments, space and minify functions but will not condense code whereas Complex mode will try to put each function or object on its own line and will try to auto-correct code to enable this. For instance it will add or remove terminators, combine variable declarations and add brackets.

If you have specific global functions that you wish to replace with smaller names then provide a list in the format [function:minified,function:minified] for example [getEl:G,addEvent:A] will replace all occurances of function calls to getEl and addEvent with G and A respectivley. You can replace up to 20 functions with this free tool.

If you have specific global objects that you wish to replace with smaller names then provide a list in the format [object:minified,object:minified] for example [Debugger:_d,System:_s] will replace all occurances of references to the objects Debugger and System with _d and _s respectivley. You can replace up to 20 functions with this free tool.

If selected this will add the following line of code to the file var _w=window,_n=navigator,_d=document and then replace any of those objects within the supplied code with the minified version.

If selected this will add a get function to replace any document.getElementById calls in your code and then replace any occurances of document.getElementById with the minified function name provided below.

The name of the minified function that will be added if the Add Get Function option has been selected.

If selected this will remove any functions called ShowDebug which should be added to your code during development to help debuging (e.g outputing messages to console) but removed on production servers to aid performance.