01What is Caesar Cipher?
The Caesar cipher moves each letter a fixed number of places down the alphabet, so with a shift of 3 an A becomes D and a Z wraps round to C. Suetonius wrote that Julius Caesar used exactly that shift of 3 in his letters, and the trick has survived as a puzzle staple and a first lesson in cryptography. This tool does three jobs with it. First, it encrypts or decrypts as you type. Choose Encrypt or Decrypt, drag the Shift slider anywhere from 1 to 25, and the Result box updates instantly. Upper and lower case keep their case. Anything outside plain A to Z, such as digits, spaces, punctuation or an accented é, passes through untouched. Shift 13 is ROT13, which undoes itself when run twice. Second, it shows a Frequency Analysis chart. Your text's letter counts sit next to a bar for the English average, where E leads at about 12.7 percent. In a long ciphertext, the tallest bar usually marks where E landed, and the gap from E to that letter is your likely key. Third, Show Brute Force (All 25 Shifts) decrypts the input with every possible key in one table. Your current shift is highlighted. There are only 25 keys, so this is usually the quickest way to crack a message. Here is how that played out on a test string. We encrypted "Meet me near the eastern gate at seven" with shift 7 and got "Tlla tl ulhy aol lhzalyu nhal ha zlclu". The frequency chart put L on top with 10 of 31 letters. L sits seven places after E, and row 7 of the brute force table reads as plain English again. Some honest limits. Frequency analysis needs text. A five-word clue may not have a clear peak, and the English reference bars won't help with other languages. The cipher only knows the 26 Latin letters, so it can't shift Greek, Cyrillic or accented letters. Above all, a Caesar shift protects nothing. Use it for games, spoiler hiding and teaching, never for data that matters. All the shifting, counting and the brute force table are computed by script on this page, so your text stays in the tab.
CTF players, puzzle makers and teachers who want to apply a Caesar shift or crack one with frequency analysis and brute force. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Caesar Cipher
- Type or paste your message into Input Text.
- Choose Encrypt or Decrypt under Mode.
- Drag the Shift slider to your key; the middle mark is 13 (ROT13).
- Read the Result box and click Copy Result.
- For an unknown key, compare the Frequency Analysis bars with the English average, or click Show Brute Force (All 25 Shifts) and look for the readable row.
03Worked examples
- Input:
Encrypt, shift 13: Hello World - Result:
Uryyb Jbeyq - ROT13. Running Uryyb Jbeyq through shift 13 again gives back Hello World.
- Input:
Encrypt, shift 3: Attack at dawn - Result:
Dwwdfn dw gdzq - The shift Suetonius attributes to Caesar.
- Input:
Decrypt, shift 3: Wklv lv d vhfuhw - Result:
This is a secret - Input:
Encrypt, shift 3: Zebra-123! - Result:
Cheud-123! - Z wraps to C. Digits and punctuation are left unchanged.
- Input:
Encrypt, shift 1: Café - Result:
Dbgé - Only A-Z and a-z move, so the accented é passes through as-is.
- Input:
Brute force on: Tlla tl ulhy aol lhzalyu nhal ha zlclu - Result:
Shift 7: Meet me near the eastern gate at seven - Trimmed to the readable row. Shift 6 gives Nffu nf ofbs... and shift 8 gives Ldds ld mdzq...
04Common use cases
- Cracking a Caesar or ROT13 clue in a CTF challenge, geocache or escape-room puzzle
- Showing a class how frequency analysis breaks simple substitution ciphers
- Hiding spoilers or puzzle answers with ROT13 in a forum post or README
- Checking expected output for a Caesar cipher kata in a coding bootcamp
- Encoding a short clue for a scavenger hunt with a chosen key
- Confirming that your own cipher function wraps Z to A and keeps punctuation
05Tips
- Encrypting with shift n gives the same text as decrypting with 26 minus n. Hello encrypted with 23 and decrypted with 3 both give Ebiil.
- The brute force table always decrypts. Paste ciphertext there, not your plaintext.
- On short clues, skip the chart and scan the brute force table. Too few letters rarely produce a clear E peak.
- Puzzles that shift digits too, or use a custom alphabet, are not plain Caesar. This tool leaves digits alone.
06Related concepts
Substitution cipher, ROT13, Frequency analysis, Brute-force attack, Classical cryptography.
Frequently Asked Questions
What is Caesar Cipher?
Caesar Cipher is a free, browser-based developer tool on AIDToolStack. Encrypt/decrypt with Caesar cipher It requires no installation or sign-up and works entirely in your browser.
Is Caesar Cipher free to use?
Yes. No sign-up, no fees and no usage cap.
Does Caesar Cipher store my data?
No. It runs in your browser; nothing is uploaded.