▶ TrainingGet Pro

Caesar Cipher

The Caesar cipher slides every letter a fixed number of places along the alphabet. This tool lets you write, read and crack shift messages in seconds.

Open the Caesar Cipher tool ↗

Opens Unscramble Words 4U, our free word-puzzle site, in a new tab. Free, with no sign-up.

What it does

Type a message, pick a shift between 1 and 25 with the slider, and the coded version appears alongside. Two rows of letters under the slider show which plain letter becomes which coded letter, so learners can see the rule rather than just the answer. Switch to Decode to reverse a message you have received. Only A to Z change; capitals stay capital, and spaces, digits and punctuation are left alone.

If you have a Caesar message but no key, the Try all 25 shifts button lists every possibility, ranked by how much each looks like English. The right answer usually comes out on top. That makes it perfect for showing why a cipher with so few keys is weak, and for history work on how Romans may have hidden letters. The Roman writer Suetonius recorded that Julius Caesar used a shift of three.

Screenshot of the Caesar Cipher on Unscramble Words 4U, ready to use
The Caesar Cipher as it first appears on Unscramble Words 4U.Tip: Shift 13 is the same as ROT13, which undoes itself if you apply it twice.

How to use it

  1. Type or paste your message into the text box.
  2. Leave Encode selected to hide a message, or choose Decode to read one.
  3. Move the slider to set the shift; check the two letter rows to see the mapping.
  4. Press Copy result to paste the answer into a worksheet or message.
  5. Stuck without the key? Press Try all 25 shifts and look at the top suggestions. Read a few, because a very short message can sometimes make a wrong shift look sensible.
Screenshot of the Caesar Cipher showing results for the example “Meet me at the library”
Example: we entered “Meet me at the library” to show the kind of result you get.Tip: Ask learners to spot the most common letter in a long coded passage; in English it is often E, which can reveal the shift.

More tips

Ideas for the classroom and home learning

Questions

What shift did Caesar use?

According to Suetonius, three places, so A became D.

Can I decode without knowing the shift?

Yes. Put the message in the box and use the "Try all 25 shifts" button; the most English-like result comes first.

Are numbers changed?

No. Digits stay exactly as typed; just letters move.

Is it safe for real secrets?

No. With only 25 keys it can be cracked almost instantly, so keep it for games and lessons.

Open the Caesar Cipher tool ↗

Opens Unscramble Words 4U, our free word-puzzle site, in a new tab. Free, with no sign-up.

The Caesar cipher is a teaching and puzzle tool, not real security. Never use it for passwords or personal information.

Related

← All word games and codes