Cipher Decipher

Classical Ciphers

Caesar Cipher

Encrypt or decrypt messages by shifting letters through the alphabet.

Share this tool

Cipher DecipherCipher Decipher
Plaintext Tool

Caesar shift cheat sheet

Each row shows ciphertext for plaintext "ABCDEFGHIJKLMNOPQRSTUVWXYZ" at the listed shift (encryption).

ShiftCiphertext alphabet
1BCDEFGHIJKLMNOPQRSTUVWXYZA
2CDEFGHIJKLMNOPQRSTUVWXYZAB
3DEFGHIJKLMNOPQRSTUVWXYZABC
4EFGHIJKLMNOPQRSTUVWXYZABCD
5FGHIJKLMNOPQRSTUVWXYZABCDE
6GHIJKLMNOPQRSTUVWXYZABCDEF
7HIJKLMNOPQRSTUVWXYZABCDEFG
8IJKLMNOPQRSTUVWXYZABCDEFGH
9JKLMNOPQRSTUVWXYZABCDEFGHI
10KLMNOPQRSTUVWXYZABCDEFGHIJ
11LMNOPQRSTUVWXYZABCDEFGHIJK
12MNOPQRSTUVWXYZABCDEFGHIJKL
13NOPQRSTUVWXYZABCDEFGHIJKLM
14OPQRSTUVWXYZABCDEFGHIJKLMN
15PQRSTUVWXYZABCDEFGHIJKLMNO
16QRSTUVWXYZABCDEFGHIJKLMNOP
17RSTUVWXYZABCDEFGHIJKLMNOPQ
18STUVWXYZABCDEFGHIJKLMNOPQR
19TUVWXYZABCDEFGHIJKLMNOPQRS
20UVWXYZABCDEFGHIJKLMNOPQRST
21VWXYZABCDEFGHIJKLMNOPQRSTU
22WXYZABCDEFGHIJKLMNOPQRSTUV
23XYZABCDEFGHIJKLMNOPQRSTUVW
24YZABCDEFGHIJKLMNOPQRSTUVWX
25ZABCDEFGHIJKLMNOPQRSTUVWXY

Introduction

Looking to crack a classic rotation cipher or build a CTF warmup challenge? The Caesar cipher shifts characters by a fixed modulo. While completely insecure by modern standards, it remains a fundamental learning tool in cryptography. Paste your text below to instantly brute-force or encrypt your message right in the browser without sending any data to external servers.

What this tool does

  • Rotates uppercase and lowercase Latin letters independently using a fixed shift value.
  • Ignores numbers, punctuation, and spaces, leaving them untouched in the output.
  • Provides an interactive slider to rapidly brute-force unknown shifts visually.
  • Includes Encrypt and Decrypt modes for quick forward or backward alphabet traversal.
  • Executes entirely locally in your browser for absolute privacy and zero latency.

How this tool works

The interface evaluates the entire input string on each keystroke using your selected shift value and mode. The logic applies a modulo 26 operation exclusively to the Latin alphabet characters (`A-Z` and `a-z`), preserving their original case.

When in Encrypt mode, the tool applies the mathematical formula `E(x) = (x + n) mod 26`. Decrypt mode applies the inverse, `D(x) = (x - n) mod 26`, allowing you to recover the original plaintext without doing mental math. Non-alphabetic characters like punctuation, spaces, and numbers pass through the algorithm untouched, mirroring how classic cryptograms maintain sentence structure.

The interactive slider allows you to rapidly sweep through all 25 possible shifts. This visual brute-forcing method runs entirely on the client side, meaning your text is never transmitted over the network.

How the cipher or encoding works

The Caesar cipher is one of the simplest and most widely known encryption techniques. It is a type of monoalphabetic substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet.

According to the Roman historian Suetonius in his work *The Twelve Caesars*, Julius Caesar used a shift of 3 to protect messages of military significance. While it provided some security against an illiterate population at the time, it possesses a key space of exactly 25 possible shifts.

Because the key space is so small, a Caesar cipher is trivial to crack using modern methods. A computer can brute-force all possible combinations in milliseconds. Even without computers, attackers can break it by applying Frequency Analysis, exploiting the fact that letters like 'E' and 'T' appear predictably often in the English language. It serves today as an educational model to explain key spaces and the mechanics of rotation before moving on to polyalphabetic systems like the Vigenère cipher.

How to use this tool

  1. Type or paste your plaintext or ciphertext into the main input area.
  2. Select Encrypt to shift letters forward, or Decrypt to shift them backward along the alphabet.
  3. Use the slider to select a specific shift amount (from 0 to 25). If you don't know the key, drag the slider slowly until readable words appear.
  4. Click the Copy button to grab the output text for your puzzle, code, or document.

Real-world examples

CTF Warmup Challenge

Organizers of a Capture The Flag (CTF) competition use a shift of 11 to encode the first flag: `WKH QHAW VWHC`. Competitors paste the string into the tool, slide the shift to 11, and instantly recover `THE NEXT STEP` to earn their first points.

Game Lore and Easter Eggs

A video game developer hides a secret message in an in-game journal using ROT13 (a Caesar shift of 13). Players type the encrypted text into the decoder and slide to shift 13 to reveal the lore, confirming the next boss location without needing to count letters manually.

Educational Cryptography

A computer science professor demonstrates a Caesar shift of 5 to a class. They encode `SECURITY` into `XJHZWNYD`. The professor then uses the tool to show how simply trying 25 combinations visually defeats the cipher, introducing the concept of brute-force attacks against small key spaces.

Comparison with similar methods

MethodComplexityTypical use
Caesar cipherVery lowTeaching rotation and frequency analysis
Vigenère cipherMediumKeyed polyalphabetic puzzles
ROT13Very lowHiding spoilers on forums

Limitations or considerations

The Caesar cipher has a key space of exactly 25. This makes it trivial to brute-force in less than a second. It is entirely vulnerable to frequency analysis because the one-to-one mapping preserves the natural frequency of letters in the language. Do not use this algorithm to protect any sensitive information.

Frequently asked questions

Conclusion

The Caesar cipher serves as a perfect introductory model to cryptography, illustrating the concepts of substitution, key spaces, and brute-force vulnerabilities. Try encoding a message above, or test your cracking skills against our Vigenère cipher tool.

Embed Caesar Cipher
Customize and generate embed code for your website or application