My Learning

Keep this for later

Sign in or create a free account to save it. You’ll return to this page afterward.

Sign inCreate an account

Javascript Obfuscator

Apply reversible Base64-based wrapping to JavaScript source.

This is reversible encoding, not security. Never run untrusted generated code.

How to use this tool

Enter JavaScript source and process it; use the companion deobfuscator to recover the source text.

Important to know

Apply reversible Base64-based wrapping to JavaScript source.

This is simple reversible encoding, not code protection or malware analysis. The generated wrapper executes code if someone runs it; never run untrusted code.

Formula and methodology

Encode source bytes as Base64 and place them in a browser TextDecoder wrapper that evaluates the decoded source.

Example

console.log("Hi") becomes an encoded wrapper that can be decoded back to the original text.

Frequently asked questions

Does this keep source code secret?

No. Anyone can decode the Base64 payload.