BrowserTools

Caesar Cipher Encoder

Shift letters by any amount, both directions

By Guga — BrowserTools maintainer, Tbilisi, Georgia Updated 2026-08-11
Free Private No uploads
What is Caesar Cipher Encoder?

The oldest widely known substitution scheme: every letter slides the same number of places through the alphabet, wrapping at the end, and the count is your key. The slider runs from 1 to 25, defaulting to the classic 3 that Caesar himself used for military dispatches. The output panel names the shift that reverses whatever you have just produced, so encoding at 3 and decoding at 23 return the same text — you never have to work it out in your head. Only English letters move; digits, spaces, punctuation and every other script stay where they are, which leaves a great deal of readable structure in the message. A shift of 13 happens to be ROT13. The tool is genuinely useful for breaking a message, since trying each of the twenty-five values takes seconds.

Encode or decode text with the ancient Caesar cipher using any letter shift from 1 to 25. A great tool for puzzle solving, CTF challenges and learning classic cryptography.

Private Caesar Cipher Encoder In Your Browser

Caesar Cipher Encoder is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.

Step-by-Step

How to use Caesar Cipher Encoder

1

Type the message into the input box.

2

Drag the Shift amount slider between 1 and 25, watching the label above it.

3

Read the encoded result, whose caption tells you the shift needed to reverse it.

4

Set the slider to that reverse value to decode, or work through shifts until the text resolves.

Key Capabilities
  • Shift adjustable from 1 to 25 with the current value shown beside the slider
  • Result caption names the exact shift required to reverse what you produced
  • Only English letters are substituted, leaving digits and punctuation readable
  • Tabs for ROT13 and the general Caesar cipher in the same panel
Common Use Cases
  • A student tackling a Caesar cipher puzzle and needing each shift tried quickly.
  • A teacher demonstrating substitution ciphers and the weakness of a shared key.
  • A participant in a capture-the-flag exercise where the flag is a shifted string.
Clear Answers

Frequently Asked Questions

How do I decode a message without knowing the shift?
Run the slider from 1 to 25 and look for text that resolves. With twenty-five possibilities and a few seconds each, brute force is entirely practical, and the shift it settles on is usually obvious because real words appear. That ease is the cipher's fundamental weakness — a key chosen from twenty-five options gives an attacker nothing to defend.
What shift decodes something I encoded at 3?
Twenty-three, and the panel says so beneath the result. The two shifts must add up to twenty-six, which is the same reason applying a shift thirteen times gives back the original text. That is also why this cipher and ROT13 share a family resemblance.
Does a shift of 13 differ from ROT13?
For English letters, no — they produce identical output. ROT13 is just the Caesar cipher with the shift fixed at thirteen, and the two tabs in this panel are separate mainly because the two are taught and used separately.
Is this safe for anything private?
No. The shift is the only secret, there are twenty-five possible values, and every one is trivial to try. Historic military use depended on the message travelling over a channel that was itself hard to intercept, which is a protection this tool cannot provide. Use real encryption for anything that matters.