Caesar Cipher Encoder / Decoder
Encode and decode the Caesar shift cipher with any shift, keeping case and punctuation, and break an unknown shift by ranking all 26 with English letter frequencies.
The Caesar cipher shifts every letter a fixed number of places along the alphabet — the oldest trick in the book, named after Julius Caesar. This tool encodes, decodes and, when you do not know the shift, breaks it automatically by testing all 26 possibilities against how often each letter appears in English.
How to use this tool
- Type or paste your text.
- Choose Encode, Decode, or Break to crack an unknown shift.
- Set the shift (A→D is a shift of 3).
- Optionally rotate digits too. Case and punctuation are always kept.
Formula
Each letter at position x (0–25) becomes (x + shift) mod 26 to encode, and (x − shift) mod 26 to decode. Breaking ranks every shift by the chi-squared distance between the result’s letter frequencies and typical English.
The chi-squared score is lowest when the decrypted text’s letter mix looks most like ordinary English, so the correct shift usually sits at the top of the list.
Example
"HELLO" with a shift of 3 becomes KHOOR. Breaking the sentence "WKH TXLFN EURZQ IRA MXPSV RYHU WKH ODCB GRJ DQG WKHQ UXQV KRPH" ranks shift 3 first, revealing "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG AND THEN RUNS HOME". On a fragment of only a few words the frequency ranking can pick the wrong shift, so scan the whole table.
Frequently asked questions
Is the Caesar cipher secure?
No. With only 25 possible shifts it is trivial to break, as the Break mode shows. It is a puzzle and a teaching tool, not real encryption — never use it to protect anything.
What is ROT13?
ROT13 is simply a Caesar cipher with a shift of 13. Because 13 + 13 = 26, applying it twice returns the original text.
Why keep punctuation?
Shifting only letters preserves word shapes and spacing, which is how the cipher was traditionally used and makes decoding easier to read.
Last updated:
Page address with these inputs: https://kakao.mobile/tools/caesar-cipher-tool/
Cite or embed this tool
kakaoCalc. (2026, November 8). Caesar Cipher Encoder / Decoder. https://kakao.mobile/tools/caesar-cipher-tool/
“Caesar Cipher Encoder / Decoder.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/caesar-cipher-tool/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms