Encrypt & decrypt online
Encrypt text with a secret, or paste encrypted text (Base64) and decrypt it with the same cipher and secret. 174 ciphers from AES to Blowfish, all in your browser.
How to decrypt text online
To decrypt, you need three things: the encrypted text, the cipher it was made with, and the secret (the key). Get one of them wrong and the result stays empty.
- Choose the cipherPick the one the text was encrypted with in the Cipher field. Not sure?
aes-256-cbcis the most common. - Enter the same secretThe password or key used for encrypting. Decryption only works with exactly the same one.
- Paste and decryptPaste the encrypted text (Base64) into the right field and click ← Decrypt string. The plain text appears on the left.
Try it: 0kp0ZxPTw6nGqvcX4DjYnw== is hello world, encrypted with aes-256-cbc and the secret my secret.
What are you trying to decrypt?
“Decrypt” means different things. Some of them work in seconds, some only with the key, and some not at all. Find your case.
Base64, hex, URL encoding and JWTs are encoding, not encryption. There is no key: decode it and the text is back.
AES, DES, Blowfish and the other ciphers here decrypt with the same cipher, key and IV. Without the key, a modern cipher can't be broken.
A hash is one-way. All anyone can do is hash guesses and compare, which is why common passwords are found in seconds.
Old ciphers keep the letter patterns of the text, so frequency analysis finds the key. Often you don't need it at all.
Good services store only a hash of your password, so nobody can decrypt it, not even the service. Use “Forgot password” or your password manager.
The password is the key. Without it the only way in is guessing, with offline recovery tools such as John the Ripper or hashcat, and only for your own files. Old formats (ZipCrypto, 40-bit PDF) can sometimes be broken; a modern AES file with a long password can't.
Ransomware uses the same strong encryption, and the attackers keep the key. Free decryptors exist for well over a hundred ransomware families, usually because the criminals made a mistake or police seized their keys. Check the official No More Ransom project of Europol, police and security companies before you pay anything, and remove the malware before you decrypt.
No More Ransom: decryption tools ↗What ransomware is and what to do →
Encryption and decryption, explained
Encryption turns readable text into ciphertext that looks like noise. Decryption is the way back: encrypt to hide, decrypt to read. Both steps need the same cipher and the same key.
hello worldmy secret0kp0ZxPTw6nGqvcX4DjYnw==hello worldAES, ChaCha20, DES and Blowfish use the same key to encrypt and decrypt. All 174 ciphers on this page work this way. More on symmetric encryption.
RSA and elliptic curves encrypt with a public key, and only the private key decrypts. Used for key exchange and signatures, not for long texts. More on asymmetric encryption.
Why decryption fails
An empty field or garbled characters after Decrypt nearly always mean that one of these does not match.
aes-256-cbc and aes-256-ctr are different. Key length and mode must match exactly.
One character off and nothing comes out. Watch for spaces and line breaks at the end.
This tool uses no IV (zero bytes, like PHP's openssl_encrypt without one). Most apps add a random IV, often in front of the ciphertext. Without it the first block breaks.
The right field expects Base64. Hex such as d24a74… needs converting first; text starting with U2FsdGVkX1 is OpenSSL or CryptoJS output with a passphrase and salt.
Authenticated modes also need a tag. Without it the result stays empty, so test with aes-256-cbc instead.
Can you decrypt a password?
It depends on how it was stored. Passwords in databases are usually hashed, not encrypted, and a hash can't be decrypted by anyone. Here is how to tell what you have.
| Looks like | What it is | Can it be decrypted? |
|---|---|---|
5f4dcc3b5aa765d61d8327deb882cf99 | MD5 hash (32 hex characters) | No. A hash is one-way. You can only hash a guess and compare. md5 tool → |
5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 | SHA-1 hash (40 hex characters) | No, same as MD5. 64 hex characters are usually SHA-256. sha1 tool → |
$2y$10$N9qo8uLOickgx2ZMRZoMye… | bcrypt password hash | No. Check a password against it instead. bcrypt check → |
$6$Xy7pQ2$AWgzgpd/3uPc7YNGbw… | Linux password hash (SHA-512 crypt) | No. You can only test a guess. Linux password hash → |
U2FsdGVkX1/B76FtQj89cCBYKwCv… | OpenSSL or CryptoJS output with a passphrase ("Salted__") | Yes, with the passphrase. Key and IV come from the passphrase and a salt, so this tool can't read it directly. |
cGFzc3dvcmQ= | Base64, only encoded | Yes, anyone can. There is no key. Base64 decode → |
0kp0ZxPTw6nGqvcX4DjYnw== | Base64 from a cipher like aes-256-cbc | Yes, with the right cipher and secret. That is what the tool above does. Try it → |
Which cipher should I use?
Use exactly the cipher, mode and key it was encrypted with. aes-256-cbc is the most common guess.
AES with a 256-bit key. Works in PHP, OpenSSL, Python and Java, if you pass the same key and IV.
ChaCha20 is a modern stream cipher, used in TLS and WireGuard. Same security level as AES-256.
Use authenticated encryption such as AES-256-GCM or ChaCha20-Poly1305 with a random IV per message, from a library, not by hand.
3DES, Blowfish, CAST and IDEA still turn up in legacy software. Fine for reading old data, not for new data.
DES (56-bit key) and RC4 are broken. Anything ending in -ecb shows patterns of the plain text.
All 174 ciphers
Every cipher has its own page with the tool, an example and the key facts. Each one encrypts and decrypts.
AES54 ciphers
DES / 3DES24 ciphers
Camellia24 ciphers
ARIA30 ciphers
RC2, RC4, RC518 ciphers
ChaCha202 ciphers
Questions about encryption and decryption
How do I decrypt text online?
Choose the cipher the text was encrypted with (for example aes-256-cbc), enter the same secret, paste the encrypted text into the right field and click Decrypt string. The plain text appears on the left. Nothing is sent to a server.
What is the difference between encryption and decryption?
Encryption turns readable text into ciphertext with a key. Decryption is the reverse: the same cipher and the right key turn the ciphertext back into the original text. With symmetric ciphers like AES both steps use the same key.
Can I decrypt without the key?
Not for a modern cipher like AES. Trying every key would take longer than the age of the universe. Only weak setups can be broken: very short or guessable secrets, or classical ciphers like Caesar and Vigenère.
Can you decrypt a password or an MD5 hash?
If the password was hashed (MD5, SHA-1, SHA-256, bcrypt), no. A hash is one-way. Sites that "decrypt" MD5 only look it up in lists of known passwords. If the password was encrypted, you can decrypt it with the cipher and key that were used.
Can files encrypted by ransomware be decrypted?
Only if a free decryptor exists for that ransomware family. Ransomware uses strong encryption and the attackers keep the key, so no website can simply decrypt the files. Check No More Ransom (nomoreransom.org), the project of Europol, police and security companies, keep a copy of the encrypted files and report the attack to the police.
Why is the decrypted result empty or garbled?
Almost always the cipher, the secret or the IV does not match, or the input is not Base64. Encrypted strings from other tools often carry a random IV or a salt that this tool does not read. See "Why decryption fails" on this page.
Is it safe to encrypt text here?
Your text and secret never leave your browser. The tool works like PHP's openssl_encrypt with a zero IV, which is ideal for testing and for matching PHP code. To protect real data, use a random IV and authenticated encryption such as AES-256-GCM.
Which encryption is the most secure?
AES-256 and ChaCha20 are the standard choices today. In practice the mode and the key handling matter as much as the cipher: use an authenticated mode such as GCM and a random IV for every message.
Key size vs. encrypted data size
The size of encrypted data is usually determined by the original input (plaintext), not directly by the key size.
However, encryption output may be larger due to additional components:
- Initialization Vector (IV) – adds randomness to prevent identical outputs
- Message Authentication Code (MAC) – ensures data integrity
These elements increase the total size of the encrypted result, even though the key itself does not directly affect it.
Key size and security
In general, larger key sizes provide stronger security because they increase the number of possible combinations an attacker must try.
However, security is not only about key size:
- Algorithm design matters
- Implementation quality matters
- Attack type matters
There is always a trade-off between security and performance. Larger keys increase security but may slow down encryption and decryption.
For most modern applications, well-established standards like AES-128 or AES-256 provide a strong balance between security and speed.
History of encryption
Encryption has evolved over thousands of years, from simple manual techniques to advanced mathematical systems.
Ancient times
The earliest known use of encryption dates back to ancient Egypt, where modified hieroglyphs were used to obscure messages.
The Greeks later developed the scytale, a device that wrapped text around a rod to hide its meaning.
Classical ciphers
During the Roman Empire, the Caesar cipher became widely known. It replaces each letter with another letter shifted by a fixed number of positions.
In the Renaissance, more advanced methods such as the Vigenère cipher improved security by using multiple substitution alphabets.
Mechanical encryption
Between the 16th and 18th centuries, mechanical aids like the Cardan grille were used to hide messages using physical templates.
In the early 20th century, encryption became more complex with machines like the Enigma. This electromechanical device was used during World War II and later broken by Alan Turing and his team, marking a turning point in modern cryptography.
Modern cryptography
With the rise of computers in the 20th century, encryption shifted to mathematical algorithms:
- DES became a standard in the 1970s
- AES replaced DES in the early 2000s due to stronger security
Today, encryption secures almost all digital communication, including banking, messaging, and cloud storage.
Classical ciphers: Caesar vs. Grille
The Caesar cipher is a simple substitution method where each letter is shifted by a fixed number of positions in the alphabet. It is easy to use but also easy to break.
The Grille cipher uses a physical template with holes to hide parts of a message. The correct placement reveals the hidden text.
Both methods are historically important but are not secure by modern standards.
Example: Caesar cipher
Original message:
MEET ME AT THE PARK
With a shift of 3:
Plaintext:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Ciphertext:
DEFGHIJKLMNOPQRSTUVWXYZABC
Encrypted result:
PHHW PH DW WKH SDUN
The same key is used to decrypt the message by reversing the shift.
Quantum-safe encryption
Quantum computers may break some current encryption methods by solving complex mathematical problems more efficiently.
Most commonly used algorithms today (including AES and RSA) are not fully resistant to quantum attacks.
New approaches are being developed, such as:
- Lattice-based cryptography
- Code-based cryptography
- Hash-based cryptography
These methods aim to remain secure even in a future with powerful quantum computers.
The field is still evolving, and standards are actively being developed.