AES ENCRYPTION ============== Use AES encryption to encrypt text with AES-256-CBC. This AES encryptor accepts encoded input and keys, with Hex or Base64 ciphertext output. AES encryption transforms text or encoded bytes into ciphertext using AES-256-CBC in this form. Supply a key, choose Hex or Base64 output, and copy the result for a compatible decryption test. Each result includes a fresh random IV before the encrypted bytes. OVERVIEW & METADATA ------------------- Canonical URL: https://million.tools/aes-encryption/ Markdown Copy (.md.txt): https://million.tools/aes-encryption.md.txt Plain Text Copy (.txt): https://million.tools/aes-encryption.txt API Endpoint: https://million.tools/api/v1/run/aes-encryption (POST, Keyless, 60 req/min) SEO Title: AES Encryption Online | AES-256-CBC Text Encryptor Alternative Names: AES Text Encryptor, Encrypt with AES, AES-256-CBC encryptor, Online AES encryptor, AES message encryption Category: Cryptography (https://million.tools/cryptography/) Tags: #AES Application Category: DeveloperApplication Platform: Web (All modern desktop and mobile browsers, requires JavaScript) Price: Free ($0.00 USD, no registration or sign-up required) Live Calculation: Supported (Auto / Live toggle enabled by default) Usage Statistics: 4 uses | 536 views Published: 2026-11-01 Last Updated: 2026-11-02 Author: Egor Volchenko (Developer & Author) KEY FEATURES ------------ - Encrypt text or encoded bytes with AES-256-CBC - Accept independently encoded key bytes - Generate and prefix a random 16-byte IV - Return lowercase Hex, uppercase Hex, or Base64 - Copy ciphertext and clear text PARAMETERS & INTERFACE CONTROLS ------------------------------- Input Parameters & Options: - input_text: Plaintext. - aes_file: File. File to Encrypt Drag and drop a file here or click to browse Upload File - hmac_key: Key. - cipher_iv: IV. - passphrase: Passphrase. - ikm: Input Key Material. - salt: Salt. - info: Info. - iteration: Number. Iterations - block-size: Number. Block Size (r) - parallelism: Number. Parallelism (p) - argon2-memory-size: Number. Memory Size (KiB) - argon2-iterations: Number. Iterations - argon2-parallelism: Number. Parallelism - nonce: Nonce. - aad: Additional Authenticated Data. - tag-length: Number. Authentication Tag Length (Bytes) - input-source: Text | File - input_encoding: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - key-size: 128 Bits | 192 Bits | 256 Bits - mode: CBC | CFB | CTR | OFB | ECB | GCM | CCM - padding: Pkcs7 | Pkcs5 | Iso97971 | AnsiX923 | Iso10126 | ZeroPadding | NoPadding - key-type: Custom | PBKDF2 | EvpKDF | HKDF | Scrypt | Argon2 - key-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - iv-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - hash: MD5 | SHA1 | SHA224 | SHA256 | SHA384 | SHA512 | RIPEMD160 | KECCAK512 - format: OpenSSL (Salted__) | None - ikm-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - salt-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - info-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - custom-iteration: Boolean. Custom Iteration. - log-n: 1,024 (2^10) | 2,048 (2^11) | 4,096 (2^12) | 8,192 (2^13) | 16,384 (2^14) | 32,768 (2^15) | 65,536 (2^16) | 131,072 (2^17) | 262,144 (2^18) | 524,288 (2^19) | 1,048,576 (2^20) - argon2-mode: Argon2id | Argon2i | Argon2d - nonce-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - aad-input-type: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | IBM866 | ISO-8859-2 | ... (42 options) - append-tag: Boolean. Append Authentication Tag to Output. - tag-input-type: Hex | Base64 - output_format: Hex (Lower Case) | Hex (Upper Case) | Base64 Output Fields & Metrics: - tag: Authentication Tag. - result: Encrypted Ciphertext. Controls: Encrypt, Clear, Copy Tag, Copy, Fill test data, Auto / Live INTERACTIVE EXAMPLE (TEST VECTOR) --------------------------------- Settings: - Input Type: Text - Input Encoding: UTF-8 - Key Size: 256 Bits - Mode: CBC - Padding: Pkcs7 - Key Type: Custom - Key Encoding: Hex - Key: 3031323334353637383961626364656630313233343536373839616263646566 - IV Encoding: Hex - IV: 61626364656639383736353433323130 - Append Authentication Tag to Output: Enabled - Output Encoding: Hex (Lower Case) Plaintext: Hello, million.tools! Encrypted Ciphertext: 526f208f070a7f4337fd4ab54cdc53d9d9b64a1180d8c2c534bc50107060f086 HOW TO USE AES ENCRYPTION ------------------------- Use the steps below to encrypt a test message. Encrypt a test message: 1. Type Hello or another non-sensitive test message into Plaintext. Set Input Encoding: to UTF-8 for normal text. 2. Keep Encryption Key & Parameters enabled. Enter the key in Encryption Key / Password and choose its representation with Key Encoding (Search/Type):. 3. Choose Hex (lower), Hex (UPPER), or Base64. The output label mentions Base64, but the selected radio button determines the representation. 4. Keep Auto / Live on to update the result as you edit. To work manually, turn Auto / Live off and click Run. 5. Read Encrypted Ciphertext (Base64). Keep the complete result, including the IV prefix, and record the selected representation. 6. Click Copy to copy the result. Use Clear where shown, or a field's clear control, to clear the text. For a round-trip test, encrypt Hello using the UTF-8 key 12345678901234567890123456789012 and select Base64. Decrypt that complete output with the same key to recover Hello. A random IV means ciphertext changes between runs. Key bytes and fixed cipher settings: The cipher is AES-256-CBC with standard block padding. The key is used as raw bytes: values shorter than 32 bytes are zero-padded and longer values are truncated to 32 bytes. Despite the Password label, no password-based key derivation runs. Use exactly 32 test key bytes for predictable interoperability. Keep the IV with the ciphertext: The output is the random 16-byte IV followed by ciphertext, encoded as selected. There is no separate IV, mode, padding, or key-derivation control. CBC output has no authentication tag, so decryption success alone does not establish authenticity. FREQUENTLY ASKED QUESTIONS -------------------------- Q: Which AES mode is used? A: The current form uses AES-256-CBC with standard block padding. It does not expose GCM, CTR, ECB, or another mode selector. Q: Is a password converted into a key with PBKDF2? A: No. The supplied key bytes are padded or truncated to 32 bytes. The field label does not imply a password-based key-derivation step. Q: Why does the same input encrypt differently each time? A: Each operation generates a random 16-byte IV and prefixes it to the ciphertext. Keep that prefix for decryption. Q: Is the result always Base64? A: No. The selected Hex (lower), Hex (UPPER), or Base64 radio button controls the actual representation, even though the output label mentions Base64. Q: Does this ciphertext include an authentication tag? A: No. The current CBC output contains an IV and ciphertext without an authentication tag. Use an authenticated encryption design in applications that need tamper detection. Q: Is the text processed entirely in my browser? A: No. The current form sends its input to the calculation API. Use non-sensitive sample data when testing. RELATED TOOLS ------------- - AES Decryption (https://million.tools/aes-decryption/): Decrypt compatible AES-256-CBC ciphertext from Base64 or Hex. Supply the matching key and retain the 16-byte IV prefix to recover the plaintext. ABOUT THE AUTHOR ---------------- Egor Volchenko — Developer & Author Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience. Links: x.com (https://x.com/egorleet) | github.com (https://github.com/egorleet) | t.me (https://t.me/egorleet) | instagram.com (https://www.instagram.com/egorleet) | facebook.com (https://www.facebook.com/egorleet/) | egorleet.blog (https://egorleet.blog/) | mastodon.social (https://mastodon.social/@egorleet) | twitch.tv (https://www.twitch.tv/egorvolchenko) | stackoverflow.com (https://stackoverflow.com/users/31679135/egor-volchenko) | reddit.com (https://www.reddit.com/user/Vegetable_Window9185/) | youtube.com (https://youtube.com/@egor-volchenko)