Caesar Cipher (Shift Cipher)
Example
Input:
Hello
Output:
Khoor
About this converter
The Caesar cipher substitutes each letter with the one a fixed number of places further along the alphabet (wrapping from Z back to A). Caesar reportedly used a shift of 3; ROT13 is the shift-13 special case. With only 25 possible shifts, the cipher falls to brute force instantly — trying every shift and picking the readable one takes seconds by hand — which makes it a teaching tool and puzzle staple rather than security. Its real modern value is pattern intuition: frequency analysis (E is the commonest English letter) breaks it without even trying all shifts, and that same idea, scaled up, is how classical ciphers of every kind were defeated.
Frequently Asked Questions
How do I decode without knowing the shift?
Try all 25 shifts and read the outputs — the correct one is the only readable text. That is exactly why the cipher is not secure.
Does it handle other alphabets?
This implementation shifts A–Z and a–z only; other characters pass through. Historical Caesar ciphers worked on the alphabet of their language.
What is the difference from ROT13?
ROT13 is the Caesar cipher fixed at shift 13, which uniquely makes encoding and decoding the same operation.