Encode and decode Caesar, ROT13, ROT47, ROT5, ROT18 and Atbash ciphers, or crack an unknown shift automatically.
Shifts each letter a fixed number of places along the alphabet.
Any whole number works, including negative numbers. It wraps around the alphabet length.
Every Caesar shift of your input (plus Atbash and ROT47), ranked by how much it looks like English. Select a result to decode with it.
Your input Typical English
| Letter | Count | Your input | English |
|---|
Counts the letters A-Z only. Accented letters and other scripts are not counted.
This Caesar cipher decoder and encoder shifts every letter by a number you choose, so you can scramble a message or read one in seconds. It suits students, puzzle fans and developers. You can also switch to ROT13, ROT47, ROT5, ROT18 or Atbash, or let the tool try all 26 shifts to crack an unknown message.
A Caesar cipher is a substitution cipher that replaces each letter with the letter a fixed number of places further along the alphabet. That fixed number is the shift, also called the key. With a shift of 3, A becomes D, B becomes E, and Z wraps around to C.
The Roman writer Suetonius reported that Julius Caesar used a shift of 3 for private letters, which gives the cipher its name. In math terms, you give each letter a position (A is 0, Z is 25), add the shift, and wrap around after 26. Decoding subtracts the same number.
English has only 25 useful shifts, so anyone can break the cipher with patience. That is why it is used for teaching, puzzles, geocaching clues and light text obfuscation, not for protecting real secrets.
The Cipher menu also covers five close relatives of the Caesar cipher. Each one follows a fixed rule, so there is no key to guess.
| Cipher | What it changes | Example |
|---|---|---|
| Caesar | Letters, any shift you pick | Hello becomes Khoor (shift 3) |
| ROT13 | Letters, shift of 13 | Hello becomes Uryyb |
| ROT5 | Digits only, shift of 5 | 2024 becomes 7579 |
| ROT18 | Letters (ROT13) and digits (ROT5) | Hello 2024 becomes Uryyb 7579 |
| ROT47 | Printable ASCII characters | Hi becomes w: |
| Atbash | Reversed alphabet (A to Z, B to Y) | Hello becomes Svool |
You can encode or decode a message in under a minute by following these steps. The result updates as you type, so there is no submit button.
Below the result you will also find Alphabet mapping, a How it works walkthrough, and a Letter frequency chart that you can switch to a table with Show as a table.
Here is a short example that shows the full round trip. Say you want to send the note Meet me at noon with a shift of 3.
Phhw ph dw qrrq. Spaces stay where they were, and so does the capital letter.Now imagine a friend receives that text and has no key. They paste it into Input text, press Try all shifts, and the tool lists every possible decoding. The line that reads Meet me at noon is the winner, and it is shown as shift 3. They can also set Direction to Decode with Shift 3 and get the same answer.
Notice that the shift 29 gives the same result as shift 3, because 29 minus 26 is 3. A shift of -23 does too. The small label next to the Shift box shows the normalized value so you can see this at a glance.
The Result box shows your converted text, and the extra panels explain why it looks that way. Each one helps you check your work or solve a puzzle.
This view runs every possible shift and ranks the candidates by how much they look like English. The tool compares letter patterns and checks for common English words. A top candidate that contains real words, such as the, and or you, is almost certainly correct.
Short inputs are the weak spot. When your text has fewer than about 20 letters, the tool flags low confidence, because a handful of letters can look like English under more than one shift. Read the top few candidates yourself and pick the one that makes sense.
The Letter frequency chart compares the letters in your input with typical English. In English, E is the most common letter (about 12.7%), followed by T, A, O and I. If the tallest bar in your cipher text is H, then E probably became H, which points to a shift of 3.
Use Show as a table if you prefer exact counts per letter. A flat chart with no clear peaks suggests the text is not a simple shift cipher, or is written in a language other than English.
Alphabet mapping lays the plain alphabet above the cipher alphabet, so you can encode by hand with the same rule. The How it works section walks through the first few letters step by step, which makes it useful for homework and for explaining the method to someone else.
Anyone who needs a quick, transparent letter shift will find it useful. Common situations include:
Most surprising results come from a mismatched setting. Check these first.
When you share an encoded message, always tell the recipient the cipher, the shift and any custom alphabet. Grouping output in blocks of 5 is a traditional way to hide word lengths and make the text easier to copy accurately.
A Caesar cipher is not encryption you should rely on. Trying all 26 shifts takes less than a second, and the other ciphers here have no key at all. Never use them for passwords, personal data or business information.
If you need something one-way and harder to reverse, hashing is a different concept. You can generate checksums with the MD5 generator, or store passwords with a salted, slow hash using the bcrypt hash generator. Note that a hash cannot be decoded, while a Caesar cipher always can.
Also keep in mind that decoding here means reversing a letter shift. If you want to read a PEM file such as an SSL certificate, use the certificate decoder instead. For more utilities in the same area, browse the security and encryption tools hub.
The automatic shift finder works best on English text of a sentence or longer. Very short inputs, text in other languages, or messages with heavy abbreviations can rank the wrong candidate first, so treat the top result as a strong suggestion rather than proof.
Paste your message into the Caesar cipher tool on this page, pick a cipher and a shift, and see the result as you type. If the shift is a mystery, press Try all shifts and let the ranked list point you to the answer.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market