Free Caesar Cipher Tool
The Caesar Cipher tool encrypts or decrypts text by shifting each letter a set number of places in the alphabet. Choose a shift value and the direction, then process your text.
Try the ROT13 tool for the shift of 13, or move up to the keyed Vigenère Cipher once a fixed shift stops being interesting.
How to use the Caesar Cipher
- 1 Enter the text you want to encode or decode.
- 2 Choose the shift amount, or leave it at the classic three.
- 3 Choose encrypt or decrypt.
- 4 Copy the output, and try other shifts to see how the text changes.
Monoalphabetic shift cipher mechanics and modular arithmetic
The Caesar Cipher performs monoalphabetic substitution by shifting every letter of the alphabet forward or backward by a fixed integer key (from 1 to 25). Mathematically, encryption corresponds to the modular arithmetic formula C = (P + K) mod 26, where P is the plaintext character index and K is the shift key.
Named after Julius Caesar, who utilized a shift of 3 for private military correspondence, this cipher is the foundational model for teaching cryptographic concepts. Because there are only 25 possible non-trivial keys, a Caesar cipher can be solved easily by testing all 25 shifts or performing frequency analysis on the most common letters.
- Shifts alphabetical characters by any custom key offset between 1 and 25.
- Demonstrates modular arithmetic principles underlying substitution cryptography.
- Preserves original uppercase and lowercase capitalization across shifted characters.
- Provides instant two-way encryption and decryption for puzzle and educational analysis.
Frequently asked questions
Why is the default shift three?
According to Suetonius, Julius Caesar used a shift of three for his private correspondence. There is nothing special about the number — it is simply the historical default that gave the cipher its name.
How hard is it to break?
Trivially. There are only 25 useful shifts, so an attacker can try every one by hand in a minute. Even without trying them all, letter frequency gives it away: in English, E is the most common letter, so the most common ciphertext letter is almost certainly an E.
Is ROT13 a Caesar cipher?
Yes — it is a Caesar cipher with a shift of 13. The shift was chosen because 13 is exactly half of 26, which makes the cipher its own inverse: applying it twice returns the original text.
Related Security & Cryptography Tools
You might also need
Tools from other categories that people pair with the Caesar Cipher: