Skip to main content
TextReverse

Caesar Cipher Translator & Decoder

Encode a message with a Caesar shift cipher, decode ciphertext with a known key, apply ROT13 in one tap, or reveal all 25 possible shifts at once when you do not know the key.

Every shift from 1 to 25 works live in your browser while preserving uppercase, lowercase, punctuation, numbers and emoji. Unlike single-direction pages, you can crack mystery ciphertext immediately with the built-in 25-shift brute-force panel.

Try an example
Output
A → D
Example: “Hello, World!” becomesKhoor, Zruog!

0 characters · 0 words · 0 lines

Example

Hello, World!Khoor, Zruog!

Want a reversed-alphabet cipher with no shift key? Atbash cipher

Classic Caesar Cipher Key (Shift +3)

Every letter shifted forward by three positions, the classic key attributed to Julius Caesar. To decode a +3 message, read each pair in reverse.

  • A becomes D
  • B becomes E
  • C becomes F
  • D becomes G
  • E becomes H
  • F becomes I
  • G becomes J
  • H becomes K
  • I becomes L
  • J becomes M
  • K becomes N
  • L becomes O
  • M becomes P
  • N becomes Q
  • O becomes R
  • P becomes S
  • Q becomes T
  • R becomes U
  • S becomes V
  • T becomes W
  • U becomes X
  • V becomes Y
  • W becomes Z
  • X becomes A
  • Y becomes B
  • Z becomes C

Caesar Cipher & ROT13 Examples

Rows below show classic shift +3 encoding, shift −3 decoding, and ROT13 (shift 13).

InputOutputWhat it shows
Hello, World!Khoor, Zruog!Classic Caesar shift +3 moves every letter three places forward: H→K, e→h, l→o.
Khoor, Zruog!Hello, World!Decoding with shift −3 brings the original sentence straight back.
Veni, vidi, viciYhql, ylgl, ylflPunctuation, spaces and capital letters stay exactly where they were.
Hello, World!Uryyb, Jbeyq!ROT13 shifts by 13 places — half the 26-letter alphabet, so running it twice decodes itself.
Uryyb, Jbeyq!Hello, World!Applying ROT13 to ROT13 ciphertext returns the exact plaintext.
Attack at 09:00!Dwwdfn dw 09:00!Digits and punctuation are outside A–Z and pass through untouched.

How the Caesar Shift Cipher Works

Named after Julius Caesar, the shift cipher rotates the 26-letter Latin alphabet by a fixed number of positions.

Alphabet rotation modulo 26

With shift +3, A becomes D, B becomes E, and the end of the alphabet wraps around: X→A, Y→B, Z→C. Decoding simply shifts backwards by the same number.

Why ROT13 needs no decode button

Because the English alphabet has 26 letters, shifting forward by 13 and shifting backward by 13 land on the exact same letter. ROT13 is its own inverse.

Cracking an unknown key in seconds

A Caesar cipher only has 25 non-trivial shifts. Opening "Try all 25 shifts" shows every possible decoding at once so the readable English sentence jumps right out.

Case and symbols stay put

Uppercase letters shift within A–Z, lowercase letters shift within a–z, and spaces, numbers, punctuation and emoji stay untouched.

Caesar Cipher vs ROT13, Atbash and A1Z26

Compare four classic letter codes on the same phrase.

Shared input: Secret note

TransformationResultReach for it when
Caesar (+3)Vhfuhw qrwhYou want a classic shifted alphabet with a chosen numeric key.
ROT13 (+13)Frperg abgrYou want a self-reversing shift used for forum spoilers and puzzle hints.
AtbashHvxivg mlgvYou want A↔Z mirror substitution with no shift number.
Letters to numbers19-5-3-18-5-20 14-15-20-5You want numbers 1–26 instead of letters.

What the Caesar Cipher Leaves Alone

Shift ciphers operate strictly on the 26 plain Latin letters.

Accented letters

Precomposed accented characters like é stay as typed. An accent stored as a separate combining mark stays attached to its shifted base letter.

Digits and punctuation

Numbers (0–9), spaces, line breaks and symbols are not shifted so timestamps, prices and sentence structure remain intact.

Other alphabets and emoji

Greek, Cyrillic, Arabic, CJK characters and emoji pass through unmodified.

Not for real security

Because anyone can test all 25 keys in a fraction of a second, Caesar ciphers and ROT13 are for puzzles, spoiler hiding and learning — never for passwords or private data.

Where Caesar Ciphers and ROT13 Are Used

Shift ciphers remain the most popular gateway into cryptography and word puzzles.

Geocaching and puzzle hunts

Geocaching hints have used ROT13 for decades so players can hide hints in plain text without spoiling the find.

Cryptography classrooms

Demonstrate modular arithmetic, key space size (only 25 keys), and why brute-force attacks break simple substitution.

Capture-the-flag (CTF) challenges

Paste an unknown string and open all 25 shifts to spot flags or readable clues immediately.

Forums and spoiler hiding

Share movie endings or riddle answers in ROT13 so readers only decode them when ready.

When to Use This Caesar Cipher Tool

Encoding with a custom key

Drag the shift slider anywhere from 1 to 25 and copy the result instantly.

Decoding without knowing the shift

Click "Crack ciphertext: try all 25 shifts" to view every candidate decoding side by side.

Quick ROT13 spoiler decoding

Tap the ROT13 (13) preset and paste any ROT13 hint to read it immediately.

Sharing a puzzle link

Create Link puts your text, shift and direction in the URL fragment so friends open the exact puzzle.

Frequently Asked Questions

Related Text Tools

Browse all text tools →