How the shift works
A Caesar cipher slides the whole alphabet. With a shift of 3, A becomes D, B becomes E, X becomes A, Y becomes B, Z becomes C, wrapping past Z to the start. Mathematically it is the letter index plus the shift modulo 26, with A at 0 and Z at 25. Decryption subtracts the shift, which equals adding 26 minus the shift, so decrypting with 3 is the same as shifting by 23. Julius Caesar reportedly used a shift of 3 for military messages, which is why the cipher carries his name.
Steps
- Paste plaintext or ciphertext into the input box.
- Enter a shift from 1 to 25. A shift of 0 or 26 leaves the text unchanged.
- Click Encrypt, Decrypt, or the combined button that follows the selected mode.
- Without knowing the shift, run the same ciphertext through 1 to 25 and pick the setting that reads as a sentence. With only 26 possibilities, that is a couple of dozen operations.
What changes
Only the 26 Latin letters move, each case within its own alphabet, and crossing Z does not change case. Digits, Chinese text, punctuation and spaces stay put, so ciphertext length equals plaintext length and position-by-position comparison is easy. That makes a useful diagnostic: if lengths differ, a character was filtered out or a full-width letter slipped in.
How weak it really is
There are 25 useful shifts. Brute force takes under a minute, and frequency analysis is faster: in English, e is the most common letter, so find the most common ciphertext letter and the index difference is the shift. It stops only a casual glance, not an automated tool. ROT13 is the shift-13 special case, exactly half the alphabet, so applying it twice cancels out; it is used to hide spoilers in forums, never to protect anything. For real secrecy use a keyed modern algorithm such as AES.