Caesar Cipher

code

The Caesar cipher is one of the oldest and simplest encryption techniques. It works by shifting each letter in the text by a fixed number of positions in the alphabet. This tool allows you to encode text with any shift value from 1 to 25, or decode previously encoded text.

Caesar Cipher
Encode or decode text using the Caesar cipher with a configurable shift
Characters: 0Words: 0Sentences: 0Lines: 0

Options

3
Characters: 0Words: 0Sentences: 0Lines: 0

Caesar Cipher Encoder & Decoder - Free Tool

What is a Caesar cipher?

A Caesar cipher shifts each letter in your text by a fixed number of positions in the alphabet. It's one of the oldest encryption methods, named after Julius Caesar. Use it for puzzles, educational demos, or simple obfuscation. This tool runs in your browser with no data sent to servers.

How to use the Caesar cipher

  1. Enter text: Paste the message you want to encode or decode.
  2. Set the shift: Choose a number from 1 to 25 (ROT13 uses 13).
  3. Encode or decode: Select the direction and click to transform.

Why use this cipher tool?

  • Educational: Teach cryptography basics without complex setup.
  • Puzzle creation: Build scavenger hunts, escape rooms, or ARG clues.
  • Quick obfuscation: Hide spoilers or surprise messages from casual glances.

Use case 1: Classroom demos

Show students how substitution ciphers work before introducing modern encryption.

Use case 2: Escape room clues

Encode hints with a Caesar shift and give players the key to decode.

Use case 3: Casual obfuscation

Hide punchlines or spoilers in group chats where someone might peek.

Examples

Basic example

Input: hello with shift 3
Output: khoor

Advanced example

Input: The quick brown fox jumps over the lazy dog with shift 13 (ROT13)
Output: Gur dhvpx oebja sbk whzcf bire gur ynml qbt

Common errors

Wrong shift direction

If decoding returns gibberish, try the opposite shift (26 minus your shift).

Non-letter characters

Numbers and symbols stay unchanged. Only A–Z and a–z shift.

Tips and proven approaches

  • ROT13 (shift 13) decodes itself when applied twice.
  • For stronger obfuscation, combine with the Base64 encoder.
  • Use the Morse code converter alongside for layered puzzles.

Related tools

Privacy and security

Encoding happens locally in your browser. Caesar ciphers are not secure for sensitive data; use modern encryption for anything private.

Frequently Asked Questions
The Caesar cipher is a substitution cipher where each letter is replaced by a letter a fixed number of positions down the alphabet. It is named after Julius Caesar, who reportedly used it to communicate with his generals.
Any shift from 1 to 25 works. The classic Caesar cipher uses a shift of 3. ROT13 uses a shift of 13, which has the special property that encoding and decoding use the same operation.
No, the Caesar cipher is not secure for modern use. With only 25 possible shifts, it can be easily broken by trying all possibilities (brute force) or by frequency analysis. It is mainly used for educational purposes and simple obfuscation.