DO IT EASY APP
English

AES text encryption and decryption

Encrypt text with a password using AES-256, or decrypt it. Everything runs in your browser.

  • No sign-up, no fees.
  • AES encryption: encrypt text with a password using AES-256, decrypt it with the same password.
  • Decrypt encrypted text with the password.
  • The same text comes out different on every encryption.
  • The work is done in the browser, with Web Crypto.
  • What you type is processed, but never shared with anyone.

How to use the AES Encryption Tool

Want a note to be readable only by whoever knows the password? There are two ways:

To encrypt

  1. Type the text on the Encrypt tab.
  2. Enter a strong password.
  3. Press Encrypt and Copy the result.

To decrypt

  1. Switch to the Decrypt tab and paste the encrypted text.
  2. Enter the password and press Decrypt.

Even if you encrypt the same text with the same password twice, a different result comes out every time; that's normal and increases security.

What is AES encryption?

AES-256 is an encryption standard used today in banking, government communication and messaging apps, and considered unbreakable. Encrypting text turns readable writing into meaningless characters; only someone who knows the right password can open it again. A secret address, a note, a coupon code or a secret message you'll send a friend can be protected this way. You can paste the resulting encrypted text into an email, a message or a public page; no one without the password can read it.

How does it work?

  • Encryption: AES-256-GCM. The GCM mode also checks whether the text has been altered; if a single character has been tampered with, decryption fails.
  • Key: a 256-bit key is derived from the password with PBKDF2 (SHA-256, 600,000 iterations). This high iteration count slows down guessing of the password; that's why encryption takes a moment.
  • Salt and IV: for each encryption a random 16-byte salt and a 12-byte initialization vector are generated and included in the result.
  • The whole process is done with the browser's built-in Web Crypto; no extra library is used.

The encrypted text has a format specific to this tool: the output of another AES tool may not decrypt here, and this tool's output may not decrypt in another.

About the password

If you forget your password, the encrypted text can't be opened in any way. We have no copy or recovery path. The strength of encryption depends on the password's strength: a short or guessable password wastes the strong algorithm.

Tips for sending a secret message

  • Send the password separately: pass the encrypted text by email and the password by phone or in person; sending it through the same channel gives no protection.
  • A strong password: generate the password with Password generator and check its strength with Password strength checker.
  • Careful when copying: pasting the encrypted text with missing or extra characters breaks decryption.

Common mistakes

  • Not saving the password: a forgotten password can't be brought back.
  • Expecting file encryption: this tool is for text; for PDFs there's Add / remove PDF password.
  • Mixing it up with a fun cipher: don't use Caesar cipher and ROT13 for real privacy; it's only for puzzles.

For digest values there's Hash generator, for encoding Base64 encode / decode.

Frequently asked questions

Is AES encryption free?

No cost at all. Not bad, right?

Are my text and password sent anywhere?

No. The encryption happens in your browser. What you type is processed, but never shared with anyone.

It says "wrong password" but I typed it right.

Upper and lower case and spaces matter in the password. Also make sure the encrypted text wasn't copied with missing or extra characters.

Can I encrypt a file?

This tool is for text. File encryption isn't available for now; there's a password tool for PDFs.

What happens if I forget my password?

The text can't be opened again. There's no recovery path.

Why is the same text encrypted differently every time?

A random salt and initialization vector are generated for each encryption; this increases security. If the password is right, all of them decrypt to the same text.

How secure is AES-256?

With a correct and strong password, it's considered unbreakable with today's computers. The weak point is most often the password itself.

Can I use it on my phone?

Yes. Type the text and the password, tap Encrypt.

Why can't AES-256 be decrypted without the password?

The key that opens the text is derived from the password. If there's no password, there's no key; breaking AES-256 by trial and error isn't possible with today's computers.

What's the best password for password encryption?

Long and unguessable: at least 16 characters or four or five unrelated words. Short and simple passwords leave even a strong algorithm unprotected.

Where can I paste the encrypted text?

Into an email, a message, a notes app or a document. Since the text consists only of letters, digits and signs, it travels everywhere; but take care that no characters are missing when copying.

Related tools