01What is AES Encryptor?
Sometimes you need to pass a short secret through a channel you do not fully trust, or you want a known-good ciphertext to test your own crypto code against. AES Encryptor does both with AES-256-GCM, run through the browser's Web Crypto API, so the text and password stay on the page. What you type in Password / Key is not used as the key directly. It is stretched with PBKDF2-HMAC-SHA256 (RFC 8018) over 600,000 iterations and a fresh random 16-byte salt. That count follows OWASP's current guidance for PBKDF2-SHA256, and it makes each password guess slow for an attacker. Every encryption also draws a new random 12-byte IV, the nonce size NIST SP 800-38D recommends for GCM. So encrypting the same text twice gives two different outputs, and that is expected. The output is one Base64 string that packs salt, IV, ciphertext and the 16-byte GCM authentication tag, in that order. You only need that string and the password to decrypt. The size is predictable: 44 bytes of overhead plus your text in UTF-8 bytes. Encrypting hello gives 49 bytes, which is always 68 Base64 characters, whatever the password. The pangram The quick brown fox jumps over the lazy dog gives 116 characters. Because GCM is authenticated, a wrong password or one changed character makes decryption fail. You get the error Decryption failed. Check your password/key and ciphertext. instead of garbage. The same message appears for truncated or non-Base64 input, so it will not tell you which of those went wrong. Older ciphertext made when the tool used 100,000 iterations still decrypts, because the tool retries with that count. The format is plain, so you can open it elsewhere. Split the bytes, run PBKDF2 with the same parameters and hand the tag to any AES-GCM library. We checked this by building a string in Node with crypto.pbkdf2Sync and createCipheriv in the same layout. Be honest with yourself about the limits. PBKDF2 slows guessing but cannot save a weak password, because anyone holding the ciphertext can guess offline. There is no key exchange and no signature, and nothing proves who encrypted the message. Lose the password and the text is gone, because nothing is stored. Expect a short pause on each click too, since 600,000 iterations take real CPU time.
Developers use it to pass a short secret safely or to get a reference AES-256-GCM ciphertext for testing their own decryption code. The tool runs entirely in your browser, so your data never leaves your device.
02How to use AES Encryptor
- Stay on the Encrypt tab and type or paste your text into Plaintext.
- Enter a password, or click Generate random key to fill in a random 32-byte value (Base64) that you then share or store safely.
- Click Encrypt and copy the Base64 output; it already contains the salt and IV.
- To decrypt, switch to the Decrypt tab, paste that Base64 string, enter the same password and click Decrypt.
- If you see a decryption error, the password is wrong or the ciphertext was changed or truncated.
03Worked examples
- Input:
Encrypt tab, Plaintext: hello, any password - Result:
A 68-character Base64 string, different on every click - 16-byte salt + 12-byte IV + 5 bytes of ciphertext + 16-byte tag = 49 bytes, which Base64-encodes to 68 characters. The exact characters are random, so none are shown.
- Input:
Encrypt tab, Plaintext: The quick brown fox jumps over the lazy dog - Result:
A 116-character Base64 string - 43 text bytes + 44 bytes of overhead = 87 bytes, which is 116 Base64 characters.
- Input:
Decrypt tab, Ciphertext: AQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAgzCRVCzSbrYrleBYlQ9ZnxBgSBonw==, Password: correct horse battery staple - Result:
hello - Built in Node with crypto.pbkdf2Sync (600,000 iterations, SHA-256) and aes-256-gcm in the tool's salt, IV, ciphertext, tag layout, using fixed salt and IV bytes so the string is reproducible. The tool itself always uses random ones.
- Input:
Same ciphertext, Password: correct horse battery stapler - Result:
Decryption failed. Check your password/key and ciphertext. - A wrong password changes the derived key, so the GCM tag check fails and no text is returned.
- Input:
Decrypt tab, Ciphertext: c2hvcnQ= (5 bytes), any password - Result:
Decryption failed. Check your password/key and ciphertext. - Fewer than 44 bytes cannot hold salt, IV and tag. The tool's internal too-short message is replaced by the same generic error.
04Common use cases
- Encrypting a database URL or API key before pasting it into a ticket, then sending the password over a different channel
- Producing an AES-256-GCM plus PBKDF2 test string to check a Node, Python or Go decryption routine against
- Showing a class how authenticated encryption rejects ciphertext after a single character is changed
- Demonstrating that the same plaintext encrypts to different output every time because of the random salt and IV
- Decrypting a note a colleague encrypted with this tool, using the passphrase they told you in person
- Generating a random 32-byte key to use as a strong password for a one-off shared secret
05Tips
- Use Generate random key rather than a short word. Offline guessing against a weak password still works, PBKDF2 or not.
- Output length tells you a lot. Base64 length is 4 times the ceiling of (44 + plaintext bytes) / 3, so a string that does not fit was probably cut off.
- To decrypt in Node.js, Base64-decode, take bytes 0-15 as salt, 16-27 as IV and the last 16 as the tag. Derive the key with crypto.pbkdf2Sync(password, salt, 600000, 32, 'sha256') and call setAuthTag before final().
- Line breaks and spaces pasted into the Ciphertext box are stripped before decoding, so wrapped output from an email still works.
- Never reuse an IV with the same key in GCM. This tool sidesteps that by drawing a new salt and IV on every click.
06Related concepts
AES-256-GCM, PBKDF2, Initialization vector, Authenticated encryption, Web Crypto API.
Frequently Asked Questions
What is AES Encryptor?
AES Encryptor is a free, browser-based developer tool on AIDToolStack. Encrypt and decrypt text using AES-256-GCM via Web Crypto API. It requires no installation or sign-up and works entirely in your browser.
Is AES Encryptor free to use?
Yes. No sign-up, no fees and no usage cap.
Does AES Encryptor store my data?
No. It runs in your browser; nothing is uploaded.