IT Market
Tools/Code/Data/Caesar Cipher Online — Encrypt and Decrypt Shift
Шифр Цезаря

Шифрование и дешифрование текста методом Цезаря

Tool guide

Caesar Cipher

The oldest classroom cipher: every letter moves a fixed number of positions along the alphabet, wrapping around at the end. Set the step between 1 and 25 and one button gives you the enciphered or deciphered string. People reach for it for escape-room props and treasure hunts, for cryptography homework, and for cracking old puzzle books. The text is processed in the browser and never sent anywhere. See also: the fixed 13-letter shift, ROT13, encrypt with a keyword instead of a number, a random string to use as a key.

How to use it

  1. Type your message into the Text field; the placeholder shows Hello World.
  2. Set a number in the Shift (1-25) box — it starts at 3, the step from the classic description of the cipher.
  3. Press Encrypt to move the letters forward; the ciphertext appears in the Result field.
  4. To reverse it, paste the ciphertext, keep the same shift and press Decrypt.
  5. If the shift of someone else's message is unknown, walk through 1 to 25 and watch for the value that turns it into words.
  6. Press Copy to take the finished string with you.

FAQ

Does the shift apply to Cyrillic letters?

No — only the Latin alphabet is rotated. Cyrillic characters pass through untouched, so a Russian phrase stays perfectly readable and is not really enciphered at all. If your assignment requires the thirty-three-letter Russian alphabet, transliterate first or work the shift table by hand, because the ring has a different length.

What happens to digits, spaces and punctuation?

They stay exactly where they are; only letters move. That keeps the shape of the sentence and any dates intact, which is convenient — but it is also a gift to anyone attacking the message, since word lengths and punctuation give the plaintext away almost immediately.

Is letter case preserved?

Yes. An uppercase letter stays uppercase and a lowercase one stays lowercase; only the alphabet position changes, which is why ATTACK becomes DWWDFN in full caps. Bear in mind that preserved case also helps a codebreaker, as proper nouns and sentence starts remain visible.

Is a Caesar cipher safe for anything real?

Not remotely. There are only twenty-five possible shifts, a person can try them all in about a minute, and frequency analysis breaks it faster still. Treat it as a teaching and game device — puzzle hunts, notes, homework. Anything you actually need protected deserves real cryptography.

How is this different from ROT13?

ROT13 is the same cipher with the shift nailed to thirteen. Because the Latin alphabet has twenty-six letters, encryption and decryption are then the same operation. Here you choose the step, which is why there are two separate buttons for Encrypt and Decrypt.

Can I use a shift of 0 or 26?

The field accepts 1 to 25, and for good reason: a shift of 0 or 26 returns the text unchanged, since the alphabet turns a full circle. A shift of 27 is identical to 1, and 30 is identical to 4, so anything outside the range simply repeats a value already available.

Examples

The classic shift of three
Before: Shift 3, plaintext: ATTACK AT DAWN
After: DWWDFN DW GDZQ
Brute-forcing a note found in a puzzle
Before: Ciphertext: KHOOR ZRUOG
After: Shift 3 decrypts it to HELLO WORLD