UltraConvert
Hashing & Crypto

AES Encrypt & Decrypt

Encrypt sensitive text with AES-GCM 256-bit authenticated encryption. Your passphrase is stretched via PBKDF2-SHA256 (200,000 iterations) with a random salt per encryption. The output format is a single base64 blob containing salt, IV, and ciphertext+authentication tag. Decrypt with the same passphrase to recover the original text. All operations via Web Crypto — no third-party libraries.

What does this tool do?

The AES Encrypt/Decrypt tool provides strong authenticated encryption using industry-standard algorithms. It uses AES-GCM (Galois/Counter Mode) with 256-bit keys, which provides both confidentiality and integrity verification. Key derivation uses PBKDF2 with SHA-256 and 200,000 iterations to resist brute-force attacks on weak passphrases. Each encryption generates a unique random salt (prevents rainbow table attacks) and IV (initialization vector, ensures identical plaintexts produce different ciphertexts). The self-contained output format includes everything needed for decryption except the passphrase.

How it works

Encryption: derive key using PBKDF2-SHA256 with 200,000 iterations from passphrase + random 16-byte salt. Generate random 12-byte IV. Encrypt plaintext using AES-GCM-256, producing ciphertext and 16-byte authentication tag. Concatenate: salt (16) + IV (12) + ciphertext + tag. Encode as base64 for transportable text. Decryption: decode base64, split components, derive key with same PBKDF2 parameters from passphrase + salt, decrypt and verify authentication tag using AES-GCM, return plaintext. All via Web Crypto API — no external crypto libraries.

Features

How to use

  1. 1

    Select mode

    Choose Encrypt to protect text, or Decrypt to recover encrypted content.

  2. 2

    Enter text and passphrase (encrypt)

    Paste the sensitive text to encrypt. Enter a strong passphrase — NOT a password you use anywhere else. Longer is better than complex.

  3. 3

    Copy the ciphertext

    The base64 output is your encrypted data. It can be safely stored or transmitted — it reveals nothing without the passphrase.

  4. 4

    Decrypt to recover

    To decrypt: paste the ciphertext, enter the same passphrase, and get the original text back. Any character error in passphrase or ciphertext will fail decryption.

Common use cases

Secure note sharing

Encrypt sensitive information for secure transmission over insecure channels. Send the ciphertext via email/IM, share the passphrase separately.

Personal data protection

Encrypt private notes, journal entries, or personal information before storing in cloud services or on shared devices.

API secret handling

Encrypt API keys and secrets for temporary storage during development workflows, decrypting only when needed.

Secure clipboard transfer

Encrypt sensitive data on one device, copy ciphertext through shared clipboard or messaging, decrypt on another device.

Tips & best practices

Frequently asked questions

Can the ciphertext be cracked?
Not without the passphrase. AES-GCM-256 is computationally infeasible to break. PBKDF2 slows brute-force guessing. Use a long, random passphrase for security.
Is this compatible with openssl enc?
Not directly — our format is intentionally simple (single base64 blob with salt/IV inline). It's not compatible with OpenSSL's enc format which uses different key derivation. You can decrypt anywhere with this tool.
What if I lose the passphrase?
The data is permanently unrecoverable. That's the design of strong encryption — there is no backdoor, no recovery service, no way to access without the passphrase. Store it securely in a password manager.
Why is the ciphertext different each time for the same text?
Random salt and IV ensure identical inputs produce unique outputs. This prevents attackers from recognizing repeated messages and is a security feature, not a bug.

Related tools