Caesar cipher and ROT13
Encode and decode with the Caesar shift, ROT13 or Atbash, or try all 25 shifts to crack a message.
Runs entirely in your browser. Your files never leave your device.
About this tool
Julius Caesar is said to have protected his letters by shifting each letter three places down the alphabet, so A became D and B became E. The trick is far too easy to break today, but it is the classic first step in cryptography lessons, escape games, geocaching puzzles and secret notes between children.
Type a message and choose a shift to encode it, or switch to decode to reverse it. ROT13, a shift of 13, is its own inverse and still hides spoilers and puzzle answers on forums. Atbash mirrors the alphabet, A with Z and B with Y. Got a coded message without the key? The solver shows all twenty-five shifts so you can spot the one that reads.
How it works
- Paste your message.
- Choose Caesar, ROT13, Atbash or “try all shifts”.
- For Caesar, set the shift and the direction.
- Copy the result.
Only the letters A–Z are shifted, keeping upper and lower case; digits, spaces, punctuation and accented letters stay unchanged.
Worked example
With a shift of 3, HELLO becomes KHOOR, exactly as Caesar’s letters are said to have looked. ROT13 turns “Spoiler” into “Fcbvyre”, and applying ROT13 again brings it back. Atbash mirrors the alphabet: HELLO becomes SVOOL.
For a geocache clue “WKH NHB LV XQGHU WKH URFN” with no key, the solver lists all 25 shifts and shift 3 reads “THE KEY IS UNDER THE ROCK”.
Good to know
- In escape games, the shift is often hidden in the room: a number on a clock, a date or a count of objects.
- Frequency helps: in English text, the most common letter of the cipher usually stands for E.
- Never use it to protect real secrets; it can be broken by hand in minutes.