Atbash and Caesar Ciphers Explained: The Mirror and the Shift
The two warm-up ciphers — a mirrored alphabet and a shifted one. Lowest point values, fastest wins.
From Goggles On, OlyPrep's free YouTube channel · 5:21Watch on YouTube
Check what you just watched.
Ciphers are learned by solving them. Try one in the Cipher Lab: it is free and needs no account.
60-second questions
How the Atbash Cipher Works: The Mirror Alphabet
How the Caesar Cipher Works: Shift the Alphabet by Three
The Cipher Lab has every cipher from the video, with practice messages to crack.
Open the Cipher LabMaya: Today we're cracking two ciphers that are all about moving letters: one flips the whole alphabet like a mirror, and one just slides it.
James: Those are Atbash and Caesar, and they're a great place to start because once you see the pattern, you can't un-see it.
Maya: Let's start with Atbash, the mirror one. Picture the alphabet written normally, A through Z.
James: Now picture it written backwards right underneath: Z, Y, X, all the way down to A.
Maya: A lines up with Z. B lines up with Y. C lines up with X. Every letter swaps places with the letter the same distance from the other end.
James: So if I wanted to write "cat" in Atbash, I look at C, which maps to X. A maps to Z. T maps to G.
Maya: So "cat" becomes "xzg." Kind of fun to look at.
James: Here's the neat trick about Atbash, though: encoding and decoding are the exact same move.
Maya: Because it's a mirror. If C flips to X, then X flips right back to C. There's no separate "undo" step.
James: So whether someone hands you plain words to hide, or hides words for you to find, you do the identical swap either way.
Maya: That makes Atbash the simplest cipher to hold in your head, because there's only one rule and it never changes.
James: Now let's slide over to Caesar, which works differently. Instead of flipping the alphabet, you shift it.
Maya: Imagine the alphabet on a strip of paper, and you slide it forward a few letters, like a number of steps.
James: Say the shift is three. A becomes D, B becomes E, C becomes F, and so on, wrapping back to the start once you reach the end.
Maya: So X, Y, Z would loop around to A, B, C, since the alphabet just keeps circling.
James: If I shift "cat" by three, C becomes F, A becomes D, T becomes W. "Cat" turns into "fdw."
Maya: The big difference from Atbash is that Caesar needs a number — the shift — to work.
James: Sometimes that shift is given to you straight out, like "shifted by three," and then it's just careful counting.
Maya: Other times the shift is a secret, and you have to figure it out yourself before you can read anything.
James: How would someone even start figuring out a hidden shift?
Maya: One handy shortcut: find a single letter standing alone in the coded message. In English, a lone letter is almost always "a" or "I."
James: So if you see a lonely letter and guess it's really "a" or "I," you can measure how far the alphabet moved to get there.
Maya: Once you know the shift for one letter, that same shift applies to every single letter in the whole message.
James: That's the heart of Caesar — one number controls the entire cipher, forward or backward.
Maya: To decode instead of encode, you just shift the other direction by that same amount.
James: If encoding pushed everything forward by three, decoding pulls everything back by three, landing right where you started.
Maya: It's a little like a merry-go-round. Push it one way to encode, push it back the same amount to decode.
James: Atbash doesn't even need pushing — it's already balanced right in the middle, mirrored.
Maya: Both of these ciphers are considered warm-up level, since the rules behind them are so short.
James: Atbash has just one fixed rule: reverse the whole alphabet, always, no exceptions.
Maya: Caesar has one number to track: the shift, which might be handed to you or might be hidden.
James: Because the rules are so simple, people usually solve these two the fastest, once they know the trick.
Maya: With Atbash, the trick is just memorizing or quickly redrawing that mirrored pairing: A with Z, B with Y, and so on down the middle.
James: With Caesar, the trick is finding that shift number, often through a lonely one-letter word, and then counting carefully all the way through.
Maya: It helps to actually write the alphabet out on scratch paper when you're first learning either one.
James: For Atbash, write A through Z on one line, and Z through A right underneath it, so the pairs are staring right at you.
Maya: For Caesar, write the alphabet once, then write it again starting from wherever your shift lands, so you can just read straight across.
James: These two are different from other ciphers you might hear about, like ones using keywords or symbols instead of letters.
Maya: Right, there are other codebusting ciphers out there with their own tricks, but today we're just keeping to the two simplest movers.
James: One flips, one slides — that's really the whole idea packed into two words.
Maya: So if you ever see a scrambled message and wonder where to start, ask yourself: does this look mirrored, or does it look shifted?
James: If every letter pairs with its opposite end of the alphabet, that's Atbash, and the reversing rule never changes.
Maya: If it looks like the whole alphabet just slid over by some fixed number of steps, that's Caesar, and finding that one number unlocks everything.
James: Either way, the alphabet itself is your map — you just have to notice which direction it moved.
Maya: Mirror or slide: the two simplest secrets in the whole alphabet.
