Skip to content

Caesar Cipher

Embed

Paste this where you want Caesar Cipher on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/caesar-cipher/" width="100%" height="500" frameborder="0" loading="lazy" title="Caesar Cipher"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/caesar-cipher/">Caesar Cipher</a> by BrowserUtils</p>

Encrypt and decrypt text with a configurable shift.Runs in this tab.

How to use Caesar Cipher

  1. Choose Encrypt or Decrypt. Encrypt shifts forward. Decrypt applies the negative of the shift you enter.
  2. Set Shift. The number field and the slider both run from 1 to 25. The page opens at 13, which is ROT13.
  3. Type in Plain Text or Cipher Text. Only A-Z and a-z move, and case is kept. Change Shift to try another key. There is no button that tries all 25 shifts for you.

Caesar shifts, including ROT13

Encrypt moves letters forward by Shift. Decrypt moves them backward by the same number. Only A-Z and a-z change. Case stays. Digits and punctuation stay. The shift wraps with modulo 26.

Shift 3

Mode Shift Input Output
Encrypt 3 HELLO KHOOR
Decrypt 3 KHOOR HELLO

The default shift is 13

The page opens with Shift at 13. That is ROT13. Hello, World! becomes Uryyb, Jbeyq!. The comma, space, and exclamation mark stay. The ROT13 encoder is this same shift with the number locked at 13.

Trying shifts until the words appear

There is no button that runs all 25 shifts. Choose Decrypt, paste KHOOR, and change Shift:

Shift Decrypt of KHOOR
1 JGNNQ
2 IFMMP
3 HELLO
4 GDKKN
5 FCJJM

Shift 3 is the one that reads as a word. The alphabet here is the 26 English letters.

Next step

Questions

How do I use a Caesar cipher decoder?
Choose Decrypt, set Shift to the key, and paste the cipher text. KHOOR at shift 3 decrypts to HELLO. Encrypting HELLO at shift 3 produces KHOOR.
How do I use this as a Caesar cipher solver?
The page has no try-all-shifts button. Choose Decrypt, paste KHOOR, and move Shift. Shift 1 reads JGNNQ, shift 2 reads IFMMP, shift 3 reads HELLO, shift 4 reads GDKKN, and shift 5 reads FCJJM. You pick the shift that reads as words.
Is the Caesar cipher secure?
There are 25 shifts, and each one is public. Use it for puzzles and teaching. Do not use it to protect a secret.
Does it shift anything besides English letters?
Only A-Z and a-z move, and the case stays. Digits and punctuation stay. Hello, World! at the default shift 13 becomes Uryyb, Jbeyq!. The ROT13 encoder is the same shift with the shift field locked at 13.

More in Encoding & Decoding

All 20 encoding & decoding