AES Encryption and Decryption
AES-256 Text Encryption With a Password
Protect any message with AES encryption in a few clicks, then turn it back into plain text with the same password or key, without anything leaving your browser.
- FreePrice
- GCM, CBC, CTRModes
- NoneSign-up
- In your browserRuns
AES Encryption and Decryption
Encrypt and decrypt text with AES-256, using a password or your own key
- Mode
- AES-GCM
- Key size
- 256
- Time
- —
Ready. Set a password, then encrypt text or decrypt what you paste.
| Part | Value | Meaning |
|---|
| Result | Check | Details |
|---|
What This AES Encryption Tool Does
This AES encryption tool turns readable text into a scrambled string that only someone with the right password or key can read. Type a message, choose a password, and press Encrypt. To read it again, paste the string on the other side and press Decrypt.
It uses AES-256, the same cipher that protects banking, messaging apps and disk encryption. By default it runs in GCM mode, which also detects if anyone changed the text on the way. CBC and CTR are there too, for systems that expect them.
The work happens inside your browser, through its built-in Web Crypto engine. Therefore your text, your password and your key never reach our server, which is exactly what you want from an encryption tool.
How AES Encryption Works
AES works on fixed blocks of 16 bytes at a time. It takes 16 bytes at a time and scrambles them through 10, 12 or 14 rounds of substitution and mixing, depending on the key size. Without the key, the result looks like random noise, and with it, every byte comes back exactly.
A cipher alone is not enough, though. A mode decides how the blocks connect, and a fresh random value, the IV, makes sure the same message never encrypts the same way twice. So this tool adds a new IV every time and writes it at the front of the output.
Lock Your Text Behind a Password
Most people will use a password, and that is the default. The tool turns the password into a 256-bit key with PBKDF2, running SHA-256 600,000 times over. As a result, anyone trying to guess the password has to repeat all that work for every single guess.

A random salt goes into that step too, so the same password gives a different key each time. The salt is stored at the front of the output, so the other side can rebuild the same key from the same password.
AES Decryption, Step by Step
For AES decryption, paste the encrypted string into the second box, set the same mode and password, and press Decrypt. The tool reads the salt and IV from the front of the string, rebuilds the key and restores the text.

In GCM mode it also checks a 16-byte tag. If even one character was changed, or the password is wrong, the check fails and you get a clear error instead of garbled text. That is one of the main reasons GCM is the default here.
Bring a 256-Bit Key of Your Own
Developers often need to match another system exactly. For that, switch the key source to A raw key and paste a key in hex or Base64. A 32-byte key gives AES-256, and a 16-byte key gives AES-128. If you need a new one, the New random key button makes a secure 256-bit key for you.

In this mode the output is the IV followed by the ciphertext, the layout most libraries use. As a result, you can check that your server and your app agree before you ship.
GCM, CBC or CTR?
Choose GCM unless something forces you not to. It encrypts and also proves the text was not changed, as the article on Galois/Counter Mode explains. CBC and CTR only hide the text, so an attacker could flip bits without you noticing. Therefore the tool warns you whenever you pick them.
AES-128 or AES-256?
Both are safe today. AES-128 uses a 16-byte key and 10 rounds, while AES-256 uses a 32-byte key and 14 rounds. The longer key adds a large safety margin, including against future quantum computers, at a small cost in speed.
With a password, this tool always makes a 256-bit key, so you get AES-256 without thinking about it. With a raw key, the length you paste decides: 32 bytes means AES-256, and 16 bytes means AES-128. The Key size box above the status line always shows which one is in use.
Where AES Comes From
In 2001, after an open contest, the US standards body NIST picked a cipher called Rijndael, designed by Joan Daemen and Vincent Rijmen, and named it the Advanced Encryption Standard. The full rules are in FIPS 197, the AES standard.
More than twenty years later, AES is still unbroken in practice. Most processors even have special instructions for it, which is why encrypting a whole disk no longer slows a laptop down. Today, governments, banks and cloud providers rely on it every single day.
How Safe Is This AES Encryption?
AES is not where attacks usually succeed. AES-256 with a random key cannot be brute-forced with any computer that exists or is planned. In practice, the password is what an attacker goes after, so a long one matters more than anything else.
Use at least 12 characters, or better, four or five random words. Also, keep the password apart from the message: send the encrypted text by email, for example, and the password by phone. If both travel together, the encryption adds very little.
Why Denwix Keeps AES Inside Your Browser
Many online encryption tools send your text to a server, encrypt it there and send it back. That means someone else sees the plain message and the password, even if only for a moment. The Denwix AES page skips that step entirely.
Instead, it calls the Web Crypto encrypt function that every modern browser ships. After the page loads, the AES code runs on your own device, even with the network off.
Decrypting in Other Languages
Because the layout is simple, other programs can read what this tool makes. With a password, take 16 bytes of salt, then the IV, then the rest, and derive the key with PBKDF2-SHA-256 at the same number of rounds. With a raw key, skip the salt.
Python, Node, Java and Go all have AES-GCM and PBKDF2 in their standard libraries or common packages. So a message encrypted here can be opened by a script on your server, and the other way round.
What AES Encryption Is Good For
People use it to send a password or a bank detail through a channel they do not trust, to store notes in a file that others can read, or to test that two systems encrypt the same way. Developers also use it to check their own code against a known-good result.
For secrets you only need to check, not read back, such as login passwords, use a one-way hash instead. Our bcrypt generator is made for exactly that.
Using AES Encryption on This Page, Start to Finish
The defaults are the safe choice, so most people only type and click.
- 1
Set a password
Or switch to a raw key if another system needs one.
- 2
Type the message
Any text, in any language, emoji included.
- 3
Press Encrypt
The encrypted string appears in the second box.
- 4
Share it safely
Send the string and the password by different routes.
Built to Be Private and Correct
A basic encryption tool sends your text to a server. This one keeps it on your device and explains every byte.
Never uploaded
Web Crypto does the work on your device.
Tamper check
GCM mode spots any change to the text.
Strong password keys
PBKDF2 with 600,000 rounds, as OWASP suggests.
Raw keys too
AES-128 or AES-256 in hex or Base64.
Every part shown
Salt, IV and ciphertext, each explained.
Tested against Node
Output matches Node’s own crypto module both ways.
Tips for Using AES Safely
The cipher is strong, so these habits decide how safe your message really is.
- Use a long password. Four or five random words beat a short, clever one.
- Send the password separately. Never put it in the same email as the message.
- Prefer GCM. It tells you if the text was changed.
- Never reuse an IV. The tool makes a new one each time, so let it.
- Keep raw keys secret. Anyone with the key can read every message.
- Note the settings. Mode and rounds must match on both sides.
Six Mistakes With AES Encryption
Every one of them silently weakens the encryption.
Using ECB mode
It shows patterns in the data, so this tool does not offer it.
A short password
Your password sets the real strength of the AES result.
The same IV twice
With GCM, a reused IV can leak the key stream.
Password next to the message
One leak then exposes both.
Mismatched settings
A different mode or round count makes decryption fail.
Treating CBC as tamper-proof
CBC hides text but cannot prove it is unchanged.
AES Encryption Questions People Ask
How do I encrypt text with AES?
Type a password and your message, then press Encrypt. The encrypted string appears at once.
How do I decrypt AES text?
Paste the string, set the same mode and password, and press Decrypt.
Is AES-256 secure?
Yes. No practical attack on AES-256 is known. The password is the part to make strong.
Can Denwix help if I forget the AES password?
Without it, nobody can bring the text back. Denwix built it with no way around the password.
Should I pick GCM, CBC or CTR on this page?
GCM, unless another system needs CBC or CTR. GCM also detects changes.
Why does the same text give a new AES result on each run?
Every run draws a fresh random salt and IV. Both outputs still decrypt to the same text.
Can I paste in an AES key I already have?
Yes. Choose A raw key and paste 16 or 32 bytes in hex or Base64.
Can other programs decrypt this?
Yes. The layout is salt, IV and ciphertext, which Python, Node, Java and Go can all read.
Why is there no ECB mode?
ECB leaks patterns in the data, so it is unsafe for real use and left out on purpose.
Does this Denwix page send my text to any server?
No. The Denwix page encrypts and decrypts inside your browser, so the text never travels.
More Tools for Security
Handy next steps for passwords, hashes and keys.
Bcrypt Generator
Hash passwords with bcrypt, or check one against a hash.
Open tool →Password Generator
Tough passwords and word-based passphrases, generated on your own device.
Open tool →Hash Generator
MD5, SHA-1, SHA-256 and more for any text or file.
Open tool →
Ready to Lock Your Message With AES?
Set a password and press Encrypt. This AES encryption tool is free, needs no account and works in your browser.