Cipher

Runs in your browser. Your text never leaves your device.

Caesar Cipher Decoder, Encoder and Translator

The Caesar cipher (shift cipher, Caesar code) moves every letter a fixed number of places.

caesar.encode
Plain text
Cipher text

Dwwdfn dw gdzq iurp wkh qruwk vlgh ri wkh ulyhu

3
Alphabet

Crack without the key

Solved

Solved. Two independent checks agree on the top key.

38 lettersneeds about 2025 keys tried

  1. Shift 3 chi-squared 0.39, lower is better

    Attack at dawn from the north side of the river

  2. Shift 5 chi-squared 2.78, lower is better

    Yrryai yr byul dpmk rfc lmprf qgbc md rfc pgtcp

  3. Shift 15 chi-squared 2.79, lower is better

    Ohhoqy oh rokb tfca hvs bcfhv gwrs ct hvs fwjsf

All 25 shifts, ranked by chi-squared against English letter frequencies. Lower is better. Scores are a ranking aid, not a guarantee: read the text.

Solved. Best key: Shift 3, chi-squared 0.39, lower is better.

Recent

Nothing yet. Your last 10 conversions, across every cipher, appear here. They are kept on this device only.

Caesar Cipher at a glance

Type
Broken cipher (keyed)
Key space
25 keys
Directions
Encode and decode: Plain text to Cipher text and back
Example
HELLO → KHOOR (shift 3, the tool's default)
Privacy
Runs in your browser, nothing is uploaded

Paste a Caesar cipher and this tool cracks it without the key, ranking all 25 shifts against English letter frequencies.

If you already know the shift, or want to encode a message of your own, set the shift yourself and read the result live. It is the friendliest cipher to learn and the classic first puzzle in cryptography, and all the work happens in your browser.

How the Caesar Cipher works

Pick a shift number from 1 to 25. Each letter moves that many places forward through the alphabet, wrapping around from Z back to A. A shift of 3 turns A into D and Z into C.

To decode, apply the same shift in reverse (or set the tool to decode). Non-letters like spaces and punctuation are left untouched.

Examples

HELLO (shift 3)
KHOOR
KHOOR (shift 3, decode)
HELLO
ATTACK AT DAWN (shift 5)
FYYFHP FY IFBS

Caesar cipher chart

At a shift of 3, the shift Julius Caesar is said to have used, A becomes D, B becomes E and so on to the end of the alphabet, where it wraps back around.

The Caesar cipher alphabet at a shift of 3: each plain letter and the cipher letter it becomes.
PlainABCDEFGHIJKLMNOPQRSTUVWXYZ
CipherDEFGHIJKLMNOPQRSTUVWXYZABC

Prefer paper? Print the cipher wheel below on A4, cut out both discs and pin them together at the centre to set any shift by hand.

Printable A4 Caesar cipher wheel: a large outer disc with the plain alphabet and a smaller inner disc with the cipher alphabet and the shift number under each letter, both with dashed cut lines and a centre pin mark. Setting D under A gives shift 3, which turns ACME into DFPH.
Caesar cipher wheel

CC BY 4.0. Credit: CipherPad. SVGPNG

History and origins

Named after Julius Caesar, who according to the historian Suetonius shifted letters by three to protect his military correspondence. It is one of the oldest recorded ciphers.

By modern standards it offers no real security, since there are only 25 possible shifts to try. That very weakness makes it perfect for teaching how substitution ciphers work and how they are broken.

Frequently asked questions

What is a Caesar cipher? #

A Caesar cipher replaces each letter with the letter a fixed number of places further along the alphabet. Counting A as 0, a letter at position p becomes (p + shift) mod 26, so with a shift of 3 HELLO becomes KHOOR.

How do you decode a Caesar cipher without the shift? #

Try all 25 shifts and keep the one that reads as English. Paste the message and the decoder does exactly that, ranking every shift by how closely its letter frequencies match English. If you do know the shift, set it and switch to decode.

How do you recognize Caesar ciphertext? #

Look for ordinary-looking words of normal length made of the wrong letters, with spaces and punctuation left in place. The letter frequencies keep the shape of English, only moved along the alphabet, so the most common letter often stands for E. The cipher identifier on this site tests for exactly that pattern.

Can the Caesar cipher encrypt numbers? #

Not in its classic form: the shift moves the 26 letters only, so this tool leaves digits, spaces and punctuation exactly as they are. Some puzzle variants shift digits separately around 0 to 9, which is a different cipher and not what this translator does.

What does a Caesar shift of 25 do? #

A shift of 25 moves every letter one place back, the same as a shift of -1: ACME becomes ZBLD. Because the alphabet has 26 letters, a shift of 25 to encode is the same as a shift of 1 to decode.

How do you write I love you in Caesar cipher? #

With the classic shift of 3, I LOVE YOU becomes L ORYH BRX. Any other shift from 1 to 25 gives a different result, so the reader needs to know which one you used.

When was the Caesar cipher used? #

In the first century BC: Julius Caesar shifted letters by 3 in his private letters, according to the biography Suetonius wrote around AD 121. Suetonius adds that Caesar's successor Augustus used a shift of 1.

How do you spell Caesar cipher? #

It is spelled Caesar, after Julius Caesar. People often search for a ceaser cipher or a ceasar cipher, and both mean this same shift cipher.

Is ROT13 a Caesar cipher? #

Yes. ROT13 is simply a Caesar cipher with a shift of 13. Because 13 is half of 26, applying it twice returns the original text.

Why is the Caesar cipher considered insecure? #

There are only 25 possible keys, so anyone can try them all in moments. It is a teaching cipher, not a way to protect real secrets.

Learn more

Go deeper on the ideas behind this tool.

Not sure this is the right tool?

If you have a message and you are not certain what it is, the cipher identifier reads the character set and the letter statistics and tells you which scheme it most likely uses, and why. It covers every code and cipher on this site.

Related translators

Reference this tool

Mention this page in homework, a write-up or an article with this line:

Caesar Cipher Decoder, Encoder and Translator on CipherPad, retrieved on the date of your visit, https://cipherpad.dev/translate/caesar

The text on this page is licensed CC BY 4.0: you may share and adapt it, also commercially, as long as you credit CipherPad and link to the page.