How the Caesar Cipher Tool Works
AnyTool Caesar Cipher shifts each letter of the alphabet by a fixed key from 1 to 25, entirely in the browser. Encryption advances every A-Z and a-z character by the chosen shift while leaving spaces, digits and punctuation unchanged and preserving case; decryption applies the inverse shift. An optional custom alphabet replaces the default 26 letters, with the shift wrapping modulo that alphabet length.
- Shift any whole number 1-25; a shift of 3 is the classical Caesar key
- A shift of 13 is equivalent to ROT13 and is self-inverse
- Case is preserved and non-letters pass through unchanged
- Optional custom alphabet wraps the shift over a user-defined symbol set
- All computation is client-side JavaScript — no server round-trip
