Caesar Cipher Shifter
Encode or decode text with the classic Caesar shift cipher. Free online tool to encrypt and decrypt messages with adjustable shift (0-25). Instant results with charts.
About This Calculator
The Caesar Cipher Shifter is a free online tool that lets you encrypt and decrypt text using the classic Caesar cipher — the same substitution cipher used by Julius Caesar over 2,000 years ago. Each letter in your text is shifted forward or backward by a fixed number of positions in the alphabet, making it easy to create simple encoded messages or decode them back.
Named after the Roman general and dictator Julius Caesar (100–44 BCE), who used a shift of 3 for his private military correspondence, the Caesar cipher is one of the oldest and most widely known encryption techniques. Despite its simplicity, it laid the foundation for modern cryptography and remains a popular educational tool for understanding basic substitution ciphers.
How the Caesar Cipher Works
The Caesar cipher is a monoalphabetic substitution cipher where each letter in the plaintext is replaced by a letter a fixed number of positions further down the alphabet. The mathematical formula for encryption is: E(x) = (x + n) mod 26, where x is the letter's position (A=0, B=1, ..., Z=25) and n is the shift amount. Decryption uses the inverse: D(x) = (x - n) mod 26.
For example, with a shift of 3 (the shift Caesar himself used):
- Plaintext: HELLO WORLD
- Ciphertext: KHOOR ZRUOG
The shift wraps around the alphabet — Z shifted by 3 becomes C (Z → A → B → C). Decryption works in reverse: K shifted back by 3 becomes H.
Common Uses
- Educational: Learn the fundamentals of cryptography and substitution ciphers.
- Puzzles and games: Create simple coded messages for escape rooms, treasure hunts, and riddles.
- Spoiler protection: The ROT13 variant (shift of 13) is commonly used online to hide spoilers.
- Historical study: Understand how ancient military communications were protected.
- Kids' activities: Introduce children to basic cryptography in a fun, accessible way.
Related Ciphers
The Caesar cipher is a special case of the shift cipher and affine cipher (Ax + B with A=1). ROT13 (shift of 13) is a self-inverse variant often used for simple text obfuscation. More secure descendants include the Vigenère cipher, which uses a keyword for varying shifts.
Frequently Asked Questions
What is a Caesar Cipher Shifter?
A Caesar Cipher Shifter is a free online tool that encrypts or decrypts text by shifting each letter by a fixed number of positions in the alphabet. Named after Julius Caesar who used a shift of 3 for military communications, it is one of the simplest and most well-known substitution ciphers.
How does the Caesar cipher work?
The Caesar cipher replaces each letter in the plaintext with a letter a fixed number of positions further down the alphabet. For example, with a shift of 3, A becomes D, B becomes E, and Z wraps around to C. Decryption reverses the shift by moving backward the same number of positions.
How do I encrypt text with the Caesar cipher?
Enter the text you want to encrypt in the input field, choose a shift number between 0 and 25, select the Encrypt option, and click the Encrypt button. The tool will shift each letter forward by the specified number of positions and display the encrypted result.
How do I decrypt text with the Caesar cipher?
Enter the encrypted text in the input field, enter the same shift number that was used for encryption, select the Decrypt option, and click the Decrypt button. The tool will shift each letter backward by the specified number to reveal the original message.
What is the ROT13 cipher?
ROT13 is a special case of the Caesar cipher with a shift of 13. Since the alphabet has 26 letters, applying ROT13 twice returns the original text, making encryption and decryption the same operation. ROT13 is commonly used for spoilers and simple text obfuscation online.
Is the Caesar cipher secure?
No, the Caesar cipher is not secure by modern standards. With only 25 possible shifts, it is trivially broken by brute force — trying all shifts until readable text appears. It is also vulnerable to frequency analysis since each letter maps consistently. Use modern encryption (AES, RSA) for any real security needs.
Can I share my Caesar cipher results?
Yes, the URL saves your input text, shift value, and direction. You can share the link so others see the same encryption or decryption result. All processing happens in your browser — nothing is sent to any server.
Does the Caesar cipher support numbers and symbols?
The classic Caesar cipher only shifts letters A-Z and a-z. Numbers, spaces, punctuation, and other symbols remain unchanged in this tool. Only English alphabet letters are shifted by the specified amount.