Caesar Cipher
Caesar Cipher
Any shift · brute-force all 25
How to Use
📖 Tool Introduction
The Caesar cipher is one of the oldest recorded ciphers, traditionally attributed to the Roman general Julius Caesar who used it to communicate with his officers in the field. Its mechanism is beautifully straightforward: every Latin letter in the plaintext is shifted a fixed number of positions forward along the alphabet. With a shift of three, for example, A becomes D, B becomes E, and X wraps around to A, continuing the same pattern until every letter has moved. Decryption simply shifts every letter back by the same amount. Because the alphabet has exactly twenty-six letters, there are only twenty-five meaningful shifts, which means the Caesar cipher offers no real secrecy today, yet it remains the perfect gateway into understanding how classical substitution ciphers work. This tool does two things for you. First, a slider lets you choose any shift from zero to twenty-five and switch freely between encrypt and decrypt so you can transform arbitrary text in either direction. Second, when you hold a ciphertext and have no idea which shift was used, a single click on Brute force lists all twenty-five possible decryptions at once; you simply scan the list with your eyes, recognize the row that reads as sensible English, and click it to adopt that result as the output. Uppercase and lowercase letters are shifted independently, while punctuation, spaces and CJK characters are never touched. The whole workflow runs locally in your browser, so sensitive notes never travel over the network. Because the crack panel renders instantly, experimenting with how different shifts distort a sentence becomes a genuinely instructive way to build intuition about substitution frequency and why trivial ciphers collapse under exhaustive search. The crack panel lists every offset from one to twenty-five in ascending order, each row showing the opening words of its candidate so your eye can skim for the one that suddenly turns into readable English. When you spot it, one click not only copies that decryption into the output but also snaps the slider to the exact offset and flips the mode to decrypt, so you can immediately re-run or adjust without retyping. This tight loop between guessing, seeing and adopting is what makes brute force feel like a puzzle rather than a chore.
✨ Key Features
- Free shift: a slider sweeps zero to twenty-five with a live readout of the current value
- Both directions: encrypt shifts forward, decrypt shifts back, results are inverses
- Brute force: one click lists all twenty-five candidate decryptions
- Click to adopt: any row in the crack list becomes the output and refills the shift
- Case preserved: upper and lowercase shift independently without mixing
- Fully offline: pure in-browser math, copy and download supported, private
📝 How to Use
- Drag the shift slider to choose how many positions letters move
- Select encrypt or decrypt as your current mode
- Type the plaintext or ciphertext into the input area
- Click Encrypt/Decrypt, or press Ctrl+Enter
- If the shift is unknown, click Brute force and click the readable row among the twenty-five
⚠️ Notes
- Empty input: running with nothing typed gives a friendly prompt
- Letters only: digits, punctuation, spaces and CJK characters are not shifted
- For teaching: Caesar is trivial to brute-force and must never protect real secrets
- Visual cracking: the tool lists all candidates; you spot the readable one yourself
- Reversible: applying the opposite shift to the output restores the input