Caesar Cipher Decoder: Free Online Encoder

Caesar Cipher

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.

Direction

Encoding shifts each letter forward by the shift.

Any whole number works, including negative numbers. It wraps around the alphabet length.

Options

Use a keyed or custom alphabet, each character once. Letters match in either case unless you list both cases.

0 / 100,000

Try all shifts

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.

    Alphabet mapping

    How it works

      Letter frequency

      Your input Typical English

      Show as a table
      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.

      What Is a Caesar Cipher?

      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.

      Other Ciphers You Can Run Here

      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.

      CipherWhat it changesExample
      CaesarLetters, any shift you pickHello becomes Khoor (shift 3)
      ROT13Letters, shift of 13Hello becomes Uryyb
      ROT5Digits only, shift of 52024 becomes 7579
      ROT18Letters (ROT13) and digits (ROT5)Hello 2024 becomes Uryyb 7579
      ROT47Printable ASCII charactersHi becomes w:
      AtbashReversed alphabet (A to Z, B to Y)Hello becomes Svool

      How to Use the Caesar Cipher Decoder and Encoder

      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.

      1. Open the Cipher menu and pick Caesar (choose a shift), or one of ROT13, ROT47, ROT5, ROT18 or Atbash.
      2. Under Direction, select Encode to turn plain text into cipher text, or Decode to turn cipher text back into plain text.
      3. Set the Shift. Type a number, press the -1 and +1 buttons, or drag the slider from 0 to 25. Any whole number works, including negatives, and it wraps around the alphabet length.
      4. Open Options if you need them: Preserve case, Remove spaces, punctuation and other characters, Also shift digits 0-9, or Group output in blocks of 5. If you use a keyed or custom alphabet, enter it in the Alphabet field.
      5. Type or paste your message into Input text. The Result box fills in right away.
      6. If you do not know the shift, press Try all shifts and scan the candidate list for the one that reads as normal language.

      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.

      Worked Example: Encoding and Cracking a Message

      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.

      • Choose Caesar, set Direction to Encode, set Shift to 3 and leave Preserve case on.
      • M becomes P, e becomes h, t becomes w, a becomes d, n becomes q and o becomes r.
      • The Result reads 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.

      How Do You Read the Results?

      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.

      Try All Shifts

      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.

      Letter Frequency

      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 and How It Works

      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.

      Who Uses a Caesar Cipher Tool?

      Anyone who needs a quick, transparent letter shift will find it useful. Common situations include:

      • Students learning cryptography who want to check a hand-worked answer or see the alphabet mapping.
      • Puzzle and escape room fans who find a strange string and want to test shifts fast.
      • Geocachers decoding hints that use ROT13 or Atbash.
      • Teachers building classroom exercises and sharing the key with students.
      • Developers who need to verify the output of their own cipher code against a reference result.
      • Writers and game designers hiding spoilers or in-world messages in plain sight.

      Best Practices and Troubleshooting

      Most surprising results come from a mismatched setting. Check these first.

      • Wrong direction. If you encoded with shift 3, you must decode with shift 3. Encoding the cipher text again with shift 3 shifts it further instead of reversing it.
      • Output is all uppercase. The Preserve case option is off. Turn it on to keep your original capitals and lowercase letters.
      • Spaces and punctuation vanished. Remove spaces, punctuation and other characters is on. Leave it off when you plan to decode the text later, because word breaks are a big clue.
      • Numbers did not change. Caesar shifts letters only unless you tick Also shift digits 0-9. For digits alone, pick ROT5.
      • Custom alphabet rejected. Each character may appear only once. Keyed alphabets such as one that starts with a keyword and then lists the unused letters work well.
      • ROT13 twice returns the original. That is normal, since 13 plus 13 equals 26. Atbash behaves the same way, because reversing the alphabet twice puts every letter back.
      • Accents and non-English letters. They are not part of the standard A to Z alphabet, so they pass through unchanged unless you define an alphabet that includes them.

      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.

      Limitations and Accuracy Notes

      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.

      Frequently Asked Questions

      How do I decode a Caesar cipher without knowing the shift?
      Paste the cipher text into Input text and press Try all shifts. The tool lists every possible decoding and ranks them by how much they resemble English. Pick the top candidate that reads as normal words. Inputs under about 20 letters get a low-confidence warning, so compare the first few results.
      What is the Caesar cipher in cryptography?
      The Caesar cipher is a simple substitution cipher that moves every letter a fixed number of places along the alphabet. The number is the key. With a shift of 3, A becomes D and Hello becomes Khoor. It is a classic teaching example, not a secure method.
      How do I use a Caesar cipher decoder with a key?
      Choose Caesar, set Direction to Decode, and enter the key in the Shift box. Any whole number works, including negatives, and it wraps around 26 letters, so 29 acts like 3. The Result updates as you type. Use the Alphabet field if your sender used a custom alphabet.
      What is the difference between Caesar cipher and ROT13?
      ROT13 is a Caesar cipher with the shift fixed at 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text, so encoding and decoding are identical. Hello becomes Uryyb. Choose ROT13 in the Cipher menu when you want no shift to set.
      Why does Try all shifts show the wrong answer for my text?
      Short or unusual text can look like English under more than one shift, so the top-ranked result may be wrong. Check the next few candidates, and make sure Remove spaces is off so word breaks remain. Text in another language or with custom alphabets may also need a manual shift.
      Is this Caesar cipher tool free, and is the cipher secure?
      The tool is free and needs no sign-in. The cipher itself is not secure: there are only 25 useful shifts, and all of them can be tried instantly. Use it for learning, puzzles and fun, never for passwords or private information.
      Recommended

      Explore VPN options

      A VPN changes your network exit. It does not guarantee anonymity.

      Hide Your IP Encryption Network coverage
      Protect My IP Now