JavaScript Obfuscator, Minifier, and Packer

This page has two purposes. First, you can use this page to minify your JavaScript by taking unnecessary empty space and comments out of it, making your javascript more compact and thereby increasing the speed at which your JavaScript loads. Second, you can use this page to obfuscate your JavaScript and protect it from thiefs.

script to pack:

Disclaimer: This algorithm has been thoroughly tested. However, if you do not know what you are doing, please, do not use this tool. We do not guarantee that your resulting script will function in any way. We do not store your script on our server. This means two things for you. First, this means your script remains secure. Second, this also means it is your responsibility to maintain the original copy of the script. Very little to no tech support will be given with this algorithm, because we operate under the assumption that you know what you are doing. If you do not know what you are doing, do not use this algorithm.


  1. Read the disclaimer.
  2. The algorithm used for packing allows all forms of JavaScript except one. You must correctly terminate all JavaScript statements with semi-colons. This includes function declarations.

    Here is an example of correct, semi-colon terminated JavaScript

    Make sure that all statements, including function declarations, are correctly terminated with semi-colons.

    // sample code
    var input, output;
    // notice the semi-colon at the END of function declarations
    onload = function() {
    	input = document.getElementById("input");
    	output = document.getElementById("output");
    function packScript() {
    	output.value = pack(input.value);
    function clearAll(focus) {
    	output.value = input.value = "";
    	// the "if" statement is NOT terminated with a semi-colon
    	if (focus) {
  3. Enter only the JavaScript into the textbox. Do not enter plain text into the textbox. Do not enter the beginning and ending tags:
    <script type="text/javascript">
  4. Choose your encoding option. Choose "Minify" to simply reduce the size of your javascript. Choose any of the other options to obfuscate your javascript.
  5. Choose "Fast Decode" and "Special Characters" if you wish. By default, "Fast Decode" is checked and "Special Characters" is unchecked.
  6. Click on "Pack".
  7. The textbox that appears contains your obfuscated or minified script. You can copy that and paste it wherever you want within javascript tags.
If you ever need to deobfuscate your script:
  1. Copy the obfuscated javascript into the first textbox. Make all the options the same as they were when you obfuscated the script, and click "Obfuscate".
  2. Once you've done that, another texbox will appear together with a button labelled "Decode". Click the Decode button until you are back to your unobfuscated script.
comments powered by Disqus

Generators and Codes:

Address Munger Code and Markup Displayer Contact Form Generator Contact Us Decimal ASCII Tables Decimal-to-Hex-to-Decimal Calculator & Hex Tutorial FAQ Hexadecimal ASCII Tables Javascript Minifier and Obfuscator Link To Mailto Syntax Tutorial Password Hasher Privacy Policy Recommended Products Spam Filter Keywords Spam Related Glossary Special ASCII Characters Support

Purchase a hosting package from

eXTReMe Tracker