Caesar Cipher Converter

–shift 3
ShiftA becomesKnown for
3DCaesar's own - Suetonius, Life of Julius 56
1Bthe weakest useful shift
13NROT13 - the self-inverse spoiler convention
25Zequal to shifting backward by one
Suetonius, Life of Julius Caesar 56: in private correspondence Caesar substituted for each letter 'the fourth letter of the alphabet, namely D for A' - the primary source in English at the University of Chicago. Letters shift, digits and punctuation pass through. Crack panel: all 25 decodings, best frequency match flagged. Related: ROT13 converter and letter frequency counter.

The Caesar cipher slides every letter of your message a fixed number of places down the alphabet, wrapping Z back to A - shift 3, Caesar's own setting, turns ATTACK into DWWDFN. Type text and pick a shift to encode, or paste something unreadable and use the crack panel: it shows all 25 possible decodings side by side and scores each against English letter frequency, highlighting the most likely plaintext automatically.

This is the grandfather of substitution ciphers, and the paper trail is unusually direct: Suetonius, in Life of Julius Caesar, describes how in private correspondence Caesar replaced letters 'by substituting for each letter the fourth letter of the alphabet, namely D for A' - a protection he judged 'entirely without meaning for an interceptor' today, but enough against casual readers two thousand years ago. The crack panel shows exactly why: twenty-five guesses, no key required.

How to use

  1. Type or paste your message, set the shift (1-25, or 0 to disable), and read the converted text live - encoding and decoding are the same operation in opposite directions.
  2. To crack an intercepted message, paste it into the box: the 25-shift panel lists every possible plaintext, with the frequency-scored best guess marked.
  3. Check the guess against sense, not just score - short texts and unusual letters can mislead the ranking, and the runner-up shifts are right there to compare.

Frequently asked questions

Why did Caesar use a shift of 3?

Suetonius gives the eyewitness detail: for private letters Caesar used a substitution where D stood for A - the fourth letter replacing the first. A shift of three has no cryptographic magic; it is simply far enough from the original letters to defeat a casual glance, which was the entire threat model. The full passage, in Loeb's translation, is linked under the tool - the cipher's primary source survives to this day.

How do you crack a Caesar cipher without the key?

Two attacks, and the tool runs both. Brute force: only 25 shifts exist, so every decoding can be listed in a panel and read by eye. Frequency analysis: E is the most common English letter (about 12% of text), so the shift that makes the ciphertext's letter distribution look most like ordinary English is almost always the right one. Either way the cipher collapses instantly - it defends against laziness, not effort.

Is ROT13 the same thing?

ROT13 is the Caesar cipher with the shift frozen at 13, its own opposite: applying it twice returns the original text, which made it the usenet convention for hiding spoilers and punchlines. It is not a separate cipher, just Caesar's mechanism with a self-inverse setting - which is why this tool's shift box at 13 behaves exactly like any dedicated ROT13 page.

Can a Caesar cipher handle punctuation and numbers?

By convention, no - only letters shift; spaces, digits and punctuation pass through untouched. That leaking structure is itself a weakness: word lengths and repeated patterns survive the cipher, giving a codebreaker a head start. This converter preserves everything non-alphabetic as-is, matching how historical Caesar ciphers were actually written and why modern ciphers encrypt the bits behind every character instead.

Related tools