Developer tools

JavaScript Encrypt and Decrypt

Encrypt, decrypt, pack, or unpack text and JavaScript source with AES-GCM, XOR, or Base64/eval. Runs locally; input and passwords never leave the browser.

Runs locally in your browser. Text and passwords are never uploaded.

AES-GCM with PBKDF2-SHA256 (250,000 iterations), a random salt, and a random IV. Keep the passphrase safe; it cannot be recovered.

Ciphertext
Your result will appear here.
How to use this tool & privacy limits
  1. Choose a method, then choose encrypt/encode or decrypt/decode.
  2. Paste text or JavaScript source, and enter a password when the method requires one.
  3. Select Run, then copy or download the result.

All processing uses browser APIs and stays on this device. Input, output, and passwords are never uploaded, logged, or sent to analytics. AES-GCM uses PBKDF2-SHA256 with a random salt and IV; keep the passphrase safe because it cannot be recovered. JavaScript pack/unpack, XOR, Base64, hexadecimal, and URL encoding are obfuscation or encoding, not secure encryption. Input is limited to 2 MB and passwords to 1,024 characters.