Caesar Cipher Encoder
Type a message, pick a shift, choose Encode or Decode, then Transform. Letters move along the alphabet by N while spaces, digits, and punctuation pass through unchanged.
Click Transform.
About this tool
A Caesar cipher rotates A–Z and a–z by a fixed offset. This tool accepts any integer shift and normalizes it modulo 26, so 29 behaves like 3 and negative values wrap correctly. Decode applies the inverse shift. It is not limited to a fixed ROT13 offset.
How to use
- Open the encoder: Load the page with Text, Shift, Mode, and Transform.
- Enter your message: Type or paste the plaintext or ciphertext you want to process.
- Set shift and mode: Choose an integer shift and Encode or Decode from the Mode list.
- Transform: Click Transform and copy the Result line from the output panel.
Common use cases
- Walk students through classical substitution before teaching stronger ciphers.
- Hide a party invite behind a shift your friends already know.
- Reverse a ciphered quote when you know the shift used.
- Quickly try several shifts while solving a puzzle hunt clue.
Tips
- Shift must be an integer; decimals such as 3.5 are rejected.
- Non-letters never change, so punctuation and numbers stay readable.
FAQ
How is this different from ROT13?
ROT13 always shifts by 13; here you choose any integer shift (normalized mod 26).
What happens with shift 29?
It wraps with mod 26, so 29 acts like a shift of 3.
Are lowercase and uppercase preserved?
Yes. Case is kept; only the letter identity moves within its alphabet.
Why was my shift rejected?
Non-integer shifts fail validation. Use whole numbers such as 3 or -5.