Caesar Cipher Encoder and Decoder

The Caesar cipher replaces every letter with the one a fixed number of places further along the alphabet. Type your text and choose the shift to get the result instantly. If you do not know the shift, the solver tries all 25 possibilities and marks the most likely one.

Source: Wikipedia – Caesar cipher (Verfahren, ROT13, Brechen per Häufigkeitsanalyse). Updated: .

Up to 5,000 characters; spaces and punctuation stay as they are
places
3 was Caesar’s key, 13 gives ROT13
é becomes e, ß becomes ss, ä becomes ae – otherwise such characters are left unchanged
Digits 0–9 are rotated by the shift modulo 10
My ToolboxYour inputs are saved in this browser only.

Result

Result
Yhql, ylgl, ylfl – L fdph, L vdz, L frqtxhuhg.
Alphabet mapping
  • Plain: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  • Cipher: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C

How it is calculated

The Caesar cipher is a shift cipher: every letter moves the same number of places along the alphabet. With a shift of 3, A becomes D, B becomes E, and at the end of the alphabet it wraps around, so X becomes A. “VENI” turns into “YHQL”. The Roman historian Suetonius reports that Julius Caesar protected his letters this way.

How the tool works

ROT13 and the limits of the method

A shift of 13 makes encoding and decoding the same step, because the alphabet has 26 letters. ROT13 is used online to hide spoilers. As protection the Caesar cipher is worthless today: with only 25 keys it falls in seconds, and the letter frequencies survive the shift. For real secrecy use modern encryption, and for a strong password try the password generator. For puzzles and lessons, the Morse code translator and text to binary converter make good companions.

Frequently asked questions

How does the Caesar cipher work?

Each letter is moved a fixed number of places along the alphabet. With a shift of 3, “HELLO” becomes “KHOOR”. To decode, you shift back by the same number.

How do you break a Caesar cipher without the key?

There are only 25 possible shifts, so you can try them all. A faster way is frequency analysis: the most common letter in the ciphertext is usually the shifted E.

What is ROT13?

ROT13 is the Caesar cipher with a shift of 13. Since 13 is half of the 26-letter alphabet, the same operation both encodes and decodes.

What happens to numbers, spaces and punctuation?

Spaces and punctuation are left unchanged. Digits are only shifted if you switch that option on. Accented letters can be converted to plain A–Z first.

Is the Caesar cipher secure?

No. It is a historical method that can be broken with almost no effort. Use it for puzzles, teaching and games, never for confidential data.

Sources and legal basis

As of: · Editorial policy

Related tools