We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Free online Caesar cipher encryption and decryption tool. Supports custom alphabets and shift offsets. Ideal for cryptography learning and fun.
Caesar cipher only works on English letters, numbers, punctuation and other characters will remain unchanged
Click generate button to start
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
A Caesar cipher replaces each letter with another letter a fixed number of positions away in the alphabet. This tool encrypts or decrypts ASCII English letters using a shift from 0 through 25; the default shift is 3. Uppercase and lowercase remain in their respective cases. Spaces, digits, punctuation, Chinese characters, emoji, and other non-ASCII letters pass through unchanged.
For a letter position x, where A/a is 0 and Z/z is 25, and a shift k, encryption is (x + k) mod 26. Decryption reverses it with (x - k + 26) mod 26. Modulo 26 wraps letters around the alphabet, so with shift 3, Z becomes C. The Boston University ciphering exercise describes this wraparound and reverse-shift idea.
Select Encrypt to move letters forward by the chosen shift. Select Decrypt to move them backward by that same amount. For example, with shift 3, Hello, Zz! 123 encrypts to Khoor, Cc! 123. Decrypting that result with shift 3 restores the original text. Shift 0 leaves the input unchanged; shift 25 moves one place backward during encryption.
The page applies the one shift you select. It does not list all candidate shifts, rank likely plaintext, or automatically crack an unknown message. If you are solving a puzzle, you can try candidate values manually and inspect the outputs. If no result makes sense, the message may use a different cipher or character alphabet.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Select Encrypt to apply the forward shift or Decrypt to reverse a known shift.
Type a shift or adjust it with the plus and minus controls. Use the same number for decryption that was used to encrypt.
Type or paste the message. The result updates as the text, mode, or shift changes.
For shift 3, verify that Z becomes C and z becomes c. Spaces, punctuation, numbers, and other characters should remain in place.
Paste the output back as input, switch direction, and keep the same shift. A matching result should restore the original ASCII letters.
This conversion uses the 26-letter English alphabet and preserves every character outside A–Z and a–z. A cipher that shifts digits, uses a custom alphabet, strips punctuation, or normalizes case will not necessarily match.
Use cases
See how the tool fits into real work and everyday tasks.
Compare shifts 1, 3, and 25 to see how alphabet indexing and wraparound work, then reverse each result.
When a clue supplies the shift, decode the ciphertext directly and compare the output with the expected phrase.
Create a short sample containing uppercase, lowercase, Z, digits, and punctuation to check another implementation’s character handling.
Q&A
Find concise answers to common questions and confusing cases.
It does not automatically try or rank all shifts. You can manually repeat the operation with different values from 0 to 25 and judge which output is meaningful.
The transformation only targets ASCII A–Z and a–z. Other characters are deliberately preserved as-is.
Shift 0 makes no change. In Encrypt mode, shift 25 moves each English letter one place backward, with A wrapping to Z.
Check that you selected Decrypt and used the same shift. The original may also use a different alphabet or transformation rule.
Notes
Review scope, result limitations, and important precautions before use.
This is a classical cipher for learning and puzzles, not a way to protect sensitive information.
Related
Discover related tools, collections, and available API capabilities.