Account

What new tool do you want?

Text & Writing

Caesar Cipher, ROT13 & Vigenère

Encrypt and decrypt with the Caesar shift, ROT13 or the Vigenère cipher — including a brute-force view of all 25 Caesar shifts.

How to use

  1. 1Enter your message and choose a cipher.
  2. 2Set the shift or keyword, then switch between encrypt and decrypt.

Frequently asked questions

How does the Caesar cipher work?

Each letter is shifted a fixed number of places along the alphabet. With a shift of 3, A becomes D and Z wraps round to C.

What is ROT13?

A Caesar shift of 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text.

Are these ciphers secure?

No — they are puzzles and teaching tools and can be broken in seconds. Use proper encryption such as AES for real secrets.

Why ROT13 is its own undo button

A Caesar shift of 13 is special because the Latin alphabet has exactly 26 letters — shift forward by 13 twice and you land back where you started (13 + 13 = 26 = a full loop). That's why ROT13 doesn't need separate encrypt and decrypt modes the way the general Caesar cipher does: applying it to its own output restores the original text. It's used in practice to obscure spoilers or puzzle answers online — not to hide anything from someone who actually wants to read it.

Vigenère beats Caesar by refusing to repeat the same shift

A plain Caesar shift uses one fixed offset for every letter, which is why the brute-force mode here can just try all 25 possible shifts and show you every result at once — there are only 25 keys to check, full stop. Vigenère instead cycles through a keyword, letter by letter, so 'LEMON' applied to 'ATTACKATDAWN' shifts the first letter by L's offset, the second by E's, and so on before repeating — turning one fixed substitution into 5 interleaved ones. That defeats simple brute-forcing, though Vigenère has its own well-known weaknesses once the key length is guessed (it was broken in the 1800s).

Worked example: Caesar Cipher, ROT13 & Vigenère

Encrypting 'Hello, World!' with a Caesar shift of 3 gives 'Khoor, Zruog!' — each letter moves 3 places forward (H→K, e→h, and so on), while the comma and exclamation mark are left untouched since they aren't letters. The classic textbook Vigenère example, 'ATTACKATDAWN' encrypted with the keyword 'LEMON', produces 'LXFOPVEFRNHR' — decrypting that ciphertext with the same keyword returns the original 'ATTACKATDAWN' exactly, which is the standard worked example used in most cryptography textbooks to teach the cipher.

Why 'brute-force all shifts' is actually useful

If you find Caesar-shifted ciphertext without knowing the shift amount, trying all 25 possibilities and eyeballing which one produces readable English is a legitimate (if old-fashioned) way to crack it — exactly what the 'Try all Caesar shifts' mode automates, listing every shift from 1 to 25 against your input at once so you can scan for the one that reads as real words.

The all-shifts list stops after two hundred characters

When I pick Try all Caesar shifts, the list always runs shifts 1 through 25 as if it were decrypting, and it only uses the first 200 characters of what I pasted. The encrypt and decrypt menu is hidden for that choice and for ROT13, so I cannot flip them. A Vigenere keyword made only of digits, like 123, stops with a message asking for a keyword containing letters, because digits and spaces are stripped before the keyword is used. The keyword box opens on KEY and the shift opens on 3, limited to whole numbers from 1 to 25. Spaces, digits, and punctuation stay exactly where they are in every cipher.

Related tools

More: Text & Writing