JavaScript Obfuscator

Obfuscate JavaScript code to protect your source code

Input

Obfuscated Output

Paste your input on the left and the result shows up here.

Or drop a file on this box, , or .

What is JavaScript Obfuscator?

Need to protect your JavaScript source code? Obfuscation rewrites your code into a functionally identical but unreadable form: similar to what the open-source javascript-obfuscator project does.

According to Wikipedia, obfuscation makes code harder to read while preserving the runtime behavior defined by the ECMAScript spec. It is often paired with a minifier like Terser for production bundles.

Everything happens in your browser.

How to Use the JavaScript Obfuscator

Follow these steps to obfuscate your JavaScript.

1

Paste, Upload, or Load Sample

Paste JavaScript into the left panel.

function getSubscriber() { return { id: "1" }; }
2

View Obfuscated Output

The right panel shows the scrambled JavaScript.

3

Download or Copy

Download saves the wrapped script as obfuscated.js and Copy puts it on the clipboard. Load it in a test page before it goes anywhere near production, and keep the original: the payload is a Base64 string handed to eval, which any curious reader can turn back with atob().

When You Would Use This

Code Protection

Protect your JavaScript source code from being copied.

Intellectual Property

Safeguard proprietary algorithms.

License Protection

Make it harder to bypass license checks.

Competitive Advantage

Protect your competitive edge.

Common Questions

Is my code stored?

No, everything happens in your browser.

Does obfuscation break my code?

No, your code works the same.

Can it be reversed?

It makes code harder to understand.

Does it affect performance?

Minimal impact.

Can I deobfuscate it?

You can try using a deobfuscator.

Does it work with large files?

Yes, depending on your device.

Other JavaScript Tools

Obfuscate a copy, never the only copy. Keep the readable source tidy with the formatter, check it with the validator first, and turn to the deobfuscator when scrambled code arrives from someone else: