AES Encrypt/Decrypt
Encrypt and decrypt text with AES-CBC or AES-GCM.
The AES Encrypt/Decrypt tool uses the browser Web Crypto API to encrypt and decrypt text with AES-CBC or AES-GCM. Passphrases are strengthened with PBKDF2, and salt, IV and authentication tags are packed into a shareable payload.
Mode
How to use
- Choose Encrypt or Decrypt and select AES-CBC or AES-GCM.
- Enter a passphrase and the input text or encrypted payload.
- Run the operation and copy the result for later decryption.
Frequently asked questions
Is my text uploaded anywhere?
No. Encryption and decryption happen locally in the browser with Web Crypto.
What is inside the encrypted payload?
The payload stores the algorithm, key size, salt, IV, authentication tag and ciphertext as a versioned Base64 string.
Can I decrypt with a different key size?
The decrypt mode can auto-detect the algorithm and key size from the payload.
Related tools
JSON Formatter
Format, validate and minify JSON in one place.
XML Formatter
Pretty-print and indent XML documents.
YAML Formatter
Format YAML and convert between YAML and JSON in both directions.
CSV to JSON
Convert CSV tables into JSON data.
JWT Decoder
Decode JWT header, payload and expiration.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.