Free & private
Classic

Caesar cipher encoder and decoder

Shift every letter forward by a fixed number to encode, and back by the same number to decode. ROT13 is just a Caesar cipher with a shift of 13.

Reversible100% FreeNo upload
Caesar Cipher
Classic · reversible · UTF-8
try
Input0 chars · 0 bytes
Output0 chars · 0 bytes
UTF-8 · ready⌘⏎ copy⌘⇧S swap● local

What the Caesar cipher is

The Caesar cipher replaces each letter with one a fixed number of places further along the alphabet, wrapping around at the end. With a shift of 3, A becomes D and Z becomes C. Named after Julius Caesar, who used it for his correspondence, it is the simplest substitution cipher there is — and a staple of puzzles and programming exercises.

How to use this tool

  1. Choose the shift (1–25).
  2. Encode shifts letters forward; Decode shifts them back by the same amount.
  3. Digits, spaces and punctuation are left unchanged.

Caesar, ROT13 and security

A shift of 13 is ROT13, which is its own inverse. Whatever the shift, the Caesar cipher offers no real security — there are only 25 possible keys, so it can be broken by trying them all in seconds. Use it for puzzles and learning, never to protect anything that matters.

Examples

InputHello
OutputKhoor

Frequently asked questions

How do I decode a Caesar cipher?
Set the same shift that was used to encode and switch to Decode, which shifts the letters back. If you do not know the shift, there are only 25 to try.
Is the Caesar cipher secure?
No. With only 25 possible keys it can be broken instantly by trying each one, so it is for puzzles and learning rather than real protection.
How is it related to ROT13?
ROT13 is a Caesar cipher with a shift of 13. Because 13 is half of 26, applying it twice returns the original text.
Does it change numbers and symbols?
No. Only the 26 letters are shifted; digits, spaces and punctuation pass through unchanged.

Related tools

Every tool on encoder.website converts your text and hands the result straight back — it is never stored. Pick another tool from the sidebar any time.