Instantly encrypt or decrypt text with the classic shift cipher. Real‑time, client‑side, with brute‑force analysis.
Click below to see all possible rotations of your current message.
The Caesar cipher, named after Julius Caesar who used it in his private correspondence, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is shifted a fixed number of places down the alphabet.
Mathematical representation:
Eₙ(x) = (x + n) mod 26 (encryption)
Dₙ(x) = (x - n) mod 26 (decryption)
where x is the numeric position of the letter (A=0, B=1, ..., Z=25) and n is the shift.
Julius Caesar used this cipher with a shift of 3 to communicate with his generals. At that time, it was considered secure because most enemies could not read Latin, let alone suspect an additional scrambling. Today it offers no security but remains an excellent educational tool.
ROT13 is a Caesar cipher with shift 13. It has the property that applying it twice returns the original text (because 13+13=26). It is often used in online forums to hide spoilers or offensive text.