Skip to content
XUtilHub

Caesar Cipher & ROT13 Encoder / Decoder

Encode and decode text with the Caesar cipher, ROT13 or ROT47. Choose any shift, or show all 25 shifts to crack an unknown message.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded
Input
Output

About the Caesar Cipher & ROT13

Shift letters with the classic Caesar cipher, apply ROT13 or ROT47, or brute-force an unknown shift by listing all 25 possibilities. Great for puzzles, geocaching and learning cryptography basics.

Key features

  • ROT13: encode and decode with the same click
  • Caesar cipher with any shift from −25 to 25
  • ROT47 for letters, digits and symbols
  • Brute force: list all 25 shifts to crack a message
  • Keeps upper/lowercase, spaces and punctuation
  • Instant results as you type

Shift letters to encode and decode

The Caesar cipher is one of the oldest known ciphers: Julius Caesar reportedly used a shift of 3 for military messages. Today it's used for puzzles, geocaches, escape rooms, spoiler hiding (ROT13) and teaching the basics of cryptography.

Shift table (shift 3)

PlainABCDE…XYZ
CipherDEFGH…ABC

Examples

CipherInputOutput
ROT13Hello, World!Uryyb, Jbeyq!
Caesar +3attack at dawndwwdfn dw gdzq
Caesar −3dwwdfn dw gdzqattack at dawn
ROT47Hello 123w6==@ `ab

ROT13 vs ROT47

ROT13ROT47
ChangesLetters A–ZAll printable ASCII (! to ~)
Digits & symbolsUnchangedShifted
Self-inverseYesYes
Typical useHiding spoilers and puzzle answersObscuring codes, emails, numbers

Breaking a Caesar cipher

  1. Brute force: try all 25 shifts (use the "Show all 25 shifts" option).
  2. Frequency analysis: in English, the most common letter is usually E. If the most frequent ciphertext letter is H, the shift is probably 3.

Try other codes with the Morse Code Translator or Upside Down Text, or encode data with Base64.

How to use the Caesar Cipher & ROT13

  1. Type or paste your text into the input box.
  2. Choose the options you want.
  3. The result updates instantly as you type.
  4. Copy the output or download it as a .txt file.

Frequently asked questions

How does the Caesar cipher work?

Each letter is replaced by the letter a fixed number of places further along the alphabet, wrapping from Z back to A. With a shift of 3, A becomes D, B becomes E and Z becomes C.

Why does ROT13 decode itself?

The alphabet has 26 letters, and shifting by 13 twice brings you back to the start. So the same operation both encodes and decodes.

How do I crack a Caesar cipher without the key?

Choose 'Show all 25 shifts' and look for the line that reads as normal text. With only 25 possible keys, the cipher can be broken in seconds.

Is the Caesar cipher secure?

Not at all. It's a classic teaching example and puzzle tool. Use modern encryption such as AES for anything private.

Is my text sent anywhere?

No. All text tools run locally in your browser.

Do these tools support Unicode?

Yes. They handle Unicode text, including emoji and accented characters.

Last updated:

Related Text tools