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
- 1Enter your message and choose a cipher.
- 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
- Morse Code Translator
Translate text to Morse code and Morse back to text using the international standard, with letters, numbers and punctuation.
- BibTeX / RIS / CSL-JSON Converter
Convert references between BibTeX, RIS and CSL-JSON, or turn a .bib or .ris file into an APA, MLA, Chicago, Harvard or Vancouver reference list. Handles LaTeX accents, @string macros and corporate authors.
- LaTeX Table Generator (from Excel or CSV)
Paste cells from Excel, Google Sheets, CSV or a Markdown table and get clean LaTeX tabular code: booktabs or grid lines, automatic number alignment, bold header, caption and label, with special characters escaped.
- Lab Report Template Generator
Build a lab report outline with your details filled in: school format (aim, hypothesis, method, results, evaluation) or university IMRaD format (abstract, introduction, methods, results, discussion), with guidance under each heading. Download as Word or PDF.
- Letter of Recommendation Template (Student)
Write a recommendation letter for a student applying to university, graduate school or a scholarship: fill in how you know them, their strengths and a specific example, and get a complete, well-structured letter to download as Word or PDF.
- HTML Entity Encoder / Decoder
Escape <, >, & and quotes as HTML entities, or decode named and numeric entities (&, ©, 😀) back to text.