What this tool does
The Caesar Cipher tool encodes and decodes text using the classic shift cipher. Pick a shift from 0 to 25 (or tap ROT13 for the famous shift of 13), type your message, and watch it transform in real time. A live alphabet map shows exactly how each letter is moved.
Capitalisation is preserved, and anything that isn’t a letter — spaces, numbers, punctuation — passes straight through.
How the Caesar cipher works
Each letter is shifted a fixed number of positions along the alphabet, wrapping around the end. With a shift of 3, A → D and Z → C. Decrypting is just shifting the other way. Because there are only 25 possible shifts, the cipher is trivial to break — which is exactly why it’s such a good teaching tool.
Privacy
Everything runs in your browser via the pure caesarCipher function. Nothing you type is uploaded or stored — you can verify this in your browser’s Network tab.