AES-256 Encryption Tool

Encrypt or decrypt text with AES-256-GCM using a password. The key is derived with PBKDF2 and everything happens in your browser via the Web Crypto API.

What Happens When You Click Encrypt

  1. A random 16-byte salt is drawn from your browser's CSPRNG - So the same password never produces the same key twice.
  2. PBKDF2-SHA256 runs 310,000 rounds, stretching your password + salt into a 256-bit key. On your machine that takes a fraction of a second; for an attacker it multiplies every single guess by 310,000 hash operations.
  3. A random 12-byte nonce is drawn for AES-GCM - Never reused, which is the one rule GCM cannot survive breaking.
  4. AES-256-GCM encrypts and signs in one pass, producing ciphertext plus a 16-byte authentication tag.
  5. Everything self-contained: the output is AES256GCM. + Base64(salt · nonce · ciphertext+tag) - One string that carries its own decryption parameters (but never the key).

Decryption runs the pipeline backwards. If even one bit of ciphertext was altered - or the password is wrong - The GCM tag check fails and you get a clean error instead of corrupted output. That authentication step is what separates modern encryption from the ECB-mode examples in old tutorials.

Understanding AES-256 Encryption

What this tool does

Your password is stretched into a 256-bit key with PBKDF2-SHA256 (310,000 iterations) and a random salt, then your text is encrypted with AES-256-GCM - The same authenticated-encryption mode used by TLS, Signal and modern password managers. The output bundles salt + nonce + ciphertext as Base64, so the same tool can decrypt it later with the right password.

Because GCM is authenticated, tampered ciphertext or a wrong password fails loudly instead of producing garbage. Read the plain-English explainer: AES-256 explained simply.

AES-256 in practice

  • The strength of the ciphertext is capped by your password - Generate a strong random password or a passphrase for the key.
  • Nothing is uploaded: encryption runs in the Web Crypto API on your device.
  • Losing the password means losing the data - There is no recovery.
  • For storing many secrets, an encrypted vault like the Password Wallet (which uses this same AES-GCM construction) is more practical.
  • Curious how encryption differs from hashing? See hashing vs encryption.

How to Use the AES-256 Encryption

1

Type or paste your text

Anything up to a few hundred kilobytes - Notes, keys, config snippets.

2

Choose a strong password

The ciphertext is only as strong as this password - Generate one rather than inventing one.

3

Encrypt and share the output

The Base64 blob bundles the salt and nonce; it's safe to email or store anywhere.

4

Decrypt with the same password

Paste the blob back, switch to Decrypt, and the exact original text returns - Or a clear error if the password is wrong.

AES key sizes - Why 256 is the standard for new systems

VariantKey sizeRoundsKeyspace
AES-128128-bit103.4 × 10³⁸ - Still unbreakable by brute force
AES-192192-bit126.3 × 10⁵⁷
AES-256256-bit141.2 × 10⁷⁷ - Comfortable margin even against future quantum attacks

AES-256 Encryption - FAQ

Has AES-256 ever been cracked?
No practical attack exists. The best published cryptanalysis barely dents the security margin, and brute force is physically impossible - Trying 10¹⁸ keys per second would still take longer than the age of the universe by dozens of orders of magnitude.
What's the weak point, then?
Your password. AES itself won't be broken, but a guessable password will be. We stretch it with 310,000 rounds of PBKDF2 to slow guessing, but a 6-character password still falls. Use a generated password or a 5+ word passphrase as the key.
What does GCM add over plain AES?
Authentication. AES-GCM detects any tampering with the ciphertext and rejects a wrong password outright instead of silently producing garbage - Which is why it's the mode used in TLS 1.3 and modern password managers.
Can you recover my data if I forget the password?
No - And neither can we see it. Encryption and decryption run entirely in your browser; the page works with the network cable unplugged. There is no backdoor, recovery key or reset.

More questions about passwords and security? Browse the security guides.