Skip to content
UniKit

AES encrypt/decrypt (AES-128 / 192 / 256)

Local AES per FIPS-197: 128 / 192 / 256-bit keys, ECB / CBC / CFB / OFB / CTR modes, PKCS#7 padding, hex or UTF-8 keys and IVs, text / hex / Base64 input and output. None of these classic modes provides integrity checking; use a dedicated AEAD tool for authenticated encryption.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Input for AES

Result

Runs locally; keys and plaintext never leave the page.

Enter content to see the result

Input bytes: 0 · Output bytes: 0 · Block size: 0 · Mode used: 0

What this tool does

  • Encrypt text or hex bytes and hand the ciphertext to a peer with the same key.
  • Verify a custom or third-party AES implementation against published vectors.
  • Compare one key across the different modes of operation.

Example

Input

Hello, world!

Output

4e2810047e6b9a45f401807a4206a2ed

Checked against FIPS-197 Appendix B and NIST SP 800-38A vectors: AES-128 ECB 00112233…eeff → 69c4e0d86a7b0430d8cdb78070b4c55a, AES-192 → dda97ca4864cdfe06eaf70a0ec0d7191, AES-256 → 8ea2b7ca516745bfeafc49904b496089; CBC / CFB / OFB / CTR were cross-checked against node:crypto.

Frequently asked questions

Does it support GCM?

No. Only the five classic modes ECB / CBC / CFB / OFB / CTR are implemented and none provides integrity checking. Use a dedicated AEAD tool for GCM or ChaCha20-Poly1305.

Why is an IV required for CBC?

CBC XORs the data with the IV, so without one the ciphertext is undefined; this tool reports invalid-iv instead of silently using zeros.

Hex key or text key?

Either: with “Hex” the key must be 32 / 48 / 64 hex characters (16 / 24 / 32 bytes); with “UTF-8 text” the byte length is checked. A wrong length reports invalid-key-length.

What does a padding error on decrypt mean?

The key, IV or mode differs from the encryption run, so PKCS#7 validation fails (invalid-padding). Check that the parameters come from the same run and the ciphertext is complete.

Keywords:AESAES-256AES encryptFIPS-197

Related tools