Caesar Cipher & ROT13
Type in either box to encrypt or decrypt English letters with a shift, switch to ROT13 in one tap, and see the results for all 25 shifts at once.
All 25 shifts
Enter ciphertext above and the results for shifts 1 to 25 will be listed here.
How to Use
- Type or paste plain text into the top box and the bottom box immediately shows the ciphertext for the current shift; there's no encrypt button to press. Only English letters move and their case is kept. Digits, spaces, punctuation, and other scripts stay as they are.
- Paste ciphertext into the bottom box and the top box immediately shows the plain text for the same shift; there's no decrypt button either.
- Pick a shift from 1 to 25. The default is 3, the shift Caesar himself is said to have used. The shift is this cipher's key: the other person needs to know the same number to read it.
- Press “ROT13” to set the shift to 13. Shifting by 13 twice returns the original, so the same step both encrypts and decrypts, which is why it's used to hide spoilers on forums.
- If you don't know the shift, look at “All 25 shifts” below. Each row is the plain text you'd get if the ciphertext had been encrypted with that shift. Find the row that reads as real text and its shift is the answer. The row for the shift you've selected is outlined. For long text, each row shows only the first part.
- “Swap” moves the result into the box you typed in. “Clear” empties both boxes.
FAQ
What is the Caesar cipher and how does it work?
The Caesar cipher is one of the oldest ways to encrypt text, said to have been used by Julius Caesar for military messages. Each letter moves a fixed number of places along the alphabet. With a shift of 3, A becomes D, B becomes E, and Z wraps around to C, so HELLO becomes KHOOR. Decrypting moves each letter back by the same number. The shift is its key, and both sides need to know it.
Is the Caesar cipher secure? Can I use it to protect data?
It has no security at all and shouldn't protect anything that matters. There are only 25 possible shifts, so anyone holding the ciphertext can try all of them and break it, which is exactly what the 25-shift list on this page does, with no computer needed. It's good for puzzles, classroom demos, and learning the basics of cryptography. To really protect content, use AES Encrypt & Decrypt, or Password-Protect Text to send a message only the other person can open.
What is ROT13 and how does it relate to the Caesar cipher?
ROT13 is the Caesar cipher with the shift fixed at 13. The alphabet has 26 letters, so 13 is exactly half: applying it twice returns the original, and encrypting and decrypting are the same step. Forums use it to hide spoilers and puzzle answers so people have to choose to read them. That only keeps text from being seen at a glance. It doesn't keep anything secret.
I don't know the shift. How do I decode it?
Paste the ciphertext into the bottom box and look at “All 25 shifts”. Each row is the plain text you'd get if it had been encrypted with that shift, so find the row that reads as real text and that row's shift is the answer. With only 25 possibilities it's usually obvious at a glance. If no row makes sense, it may not be a Caesar cipher, or a different alphabet or extra processing may have been used.
Are digits, punctuation, and other scripts encrypted?
No. The Caesar cipher only moves the 26 English letters and keeps their case. Chinese and Japanese text, digits, spaces, punctuation, emoji, full-width letters, and accented letters all stay as they are, so you'll see parts of the text unchanged in the result.
Related Tools
Password-Protect Text
Lock a message with a password and get locked text or a share link. Only someone with the same password can read it.
AES Encryption and Decryption
Encrypt or decrypt text with AES-128, 192, or 256 in CBC, GCM, CTR, or ECB mode. Enter the key and IV as text, hex, or Base64.
Morse Code Translator
Type in either box to turn text into Morse code or decode dots and dashes back into text, then play it as sound at the speed you choose. Includes Japanese Wabun.
Base64 Encoder & Decoder
Type in either box to encode text as Base64 or decode Base64 back into text. UTF-8 safe, with a URL-safe alphabet option.
Text to Binary & Hex Converter
Type in either box to turn text into the binary, octal, decimal, and hex of each UTF-8 byte, or decode those bytes back into text.