Caesar Cipher
Shift letters to encode or decode text.
Shift every letter by a number you choose to encode or decode a Caesar cipher, one of the oldest and simplest ciphers.
Loading the interactive tool… This page needs JavaScript to run the Caesar Cipher.
How to use Caesar Cipher
- Enter the value or choose the generation settings you need.
- Run the operation in the browser.
- Review the generated or transformed result.
- Copy or download only what you actually need.
How Caesar Cipher works
Choose a shift from 1 to 25 and a mode, Encode or Decode. Each letter moves forward by the shift and wraps around the 26-letter alphabet, while decoding shifts backward by the same amount. Case is preserved and non-letters such as digits and punctuation are unchanged. This classic cipher is trivial to break and offers no real security.
Worked example
Input Hello, World! with shift 3 in Encode mode → Output: Khoor, Zruog! Decode mode with shift 3 turns Khoor back into Hello.
Common uses
- Solving a Caesar-cipher puzzle by trying different shifts.
- Teaching how substitution ciphers work in a lesson.
- Creating a lightly scrambled message for a treasure hunt clue.
Best for
- security workflows
- quick caesar cipher tasks
- browser-based utility work
Tips for better results
- Never paste private credentials or secrets unnecessarily.
- Use cryptographically secure generation for passwords and identifiers when the tool provides it.
- Hashing is not encryption, and a digest should not be treated as reversible.
Frequently asked questions
What is a Caesar cipher?
A substitution cipher that replaces each letter with one a fixed number of positions further in the alphabet.
How do I decode a Caesar cipher?
Use the same shift in the opposite direction, or try all 25 shifts.
Is it safe for secrets?
No. It is easily broken and is for learning and puzzles only.
Related tools
- ROT13 Cipher — Encode or decode text with the ROT13 cipher.
- File Checksum Calculator — Calculate SHA-1, SHA-256 and SHA-512 checksums for a file locally in your browser.
- Hash Identifier — Identify likely hash types such as MD5, SHA-1, SHA-256 and bcrypt.
- HMAC Generator — Generate HMAC signatures with SHA-256, SHA-384 or SHA-512.
- HTML Decoder — Decode common HTML entities.
- HTML Encoder — Encode HTML special characters.