Convert your JavaScript into the classic Dean Edwards eval() packed format instantly. Paste your script, click Pack, and copy the packed output.
What is a JavaScript Packer?
A JavaScript Packer converts normal JavaScript into a compact eval(function(p,a,c,k,e,r){...})
form. The packed output runs the same as the original script but appears compact and encoded.
Example
Before Packing
function helloWorld() {
console.log("Hello World!");
}
After Packing
eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;
k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};
while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);
return p}('0 1(){2.3("4 5!")}',6,6,'function|helloWorld|console|log|Hello|World'.split('|'),0,{}))
Features of Our JavaScript Packer
- Instant code packing — paste and get packed output in seconds.
- Classic eval format (Dean Edwards style).
- Online and free — no installation or signup.
- Preserves functionality — packed code behaves like the original.
- Cross-browser compatible.
How to Use the JavaScript Packer
- Paste your JavaScript code into the input area.
- Click the Pack button.
- Copy the packed eval() output and place it in your project.
Advantages
- Quick and easy — no complex settings.
- Makes code less readable at a glance.
- Can slightly reduce file size in some cases.
Limitations of Eval Packing
Eval-packed JavaScript is not a secure protection method. Packed code can be unpacked using readily available tools. Use advanced obfuscators (string encryption, variable renaming, control flow flattening) if you require stronger protection.
When to Use the JavaScript Packer
Use it for demos, experiments, quick sharing, or when you want to reduce immediate readability of code. Do not rely on it for serious code protection.
Conclusion
Our JavaScript Packer provides a fast, browser-based way to convert JavaScript into the classic eval() packed format. It’s free, easy to use, and preserves your script’s behavior while making the source less readable at a glance. Remember that eval packing is not secure against determined reverse-engineering — choose advanced obfuscation if you need stronger protection.
Try it now: paste your JavaScript, click Pack, and copy the packed code instantly.