ToolSphere

Classical Substitution Ciphers

More tools

Encode or decode text with ROT13, a Caesar shift of any size, or a Vigenère key. Handy for puzzles, CTFs and learning classic ciphers.

Classical substitution ciphers

Experiment with vintage ciphers including ROT13, Caesar, and Vigenère polyalphabetic keys.

Ciphertext output

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

About Classical Substitution Ciphers

Why ROT13 and Caesar Ciphers Are Educational, Not Secure

ROT13 shifts every letter 13 positions through the alphabet — and because the English alphabet has 26 letters, applying ROT13 twice returns the original text exactly, which is exactly why it's historically used to casually obscure spoilers or punchlines online rather than for any real security purpose. It's a special case of the Caesar cipher, which shifts by an arbitrary fixed amount instead of always 13.

Both are trivially breakable: a Caesar cipher has only 25 possible shift values, so brute-forcing every shift and reading which one produces sensible text takes seconds by hand, let alone by computer. The Vigenère cipher improves on this by using a repeating keyword to vary the shift amount per letter, resisting simple brute-force — but it's still breakable through frequency analysis once the keyword length is deduced (via techniques like the Kasiski examination), which is exactly why it was eventually superseded by real cryptographic algorithms once computers made manual cryptanalysis at scale practical.

These ciphers matter today purely as an accessible, hand-traceable introduction to substitution cipher concepts — not as anything resembling real security for actual sensitive data.

Frequently asked questions

Why does applying ROT13 twice return the original text?

The English alphabet has 26 letters, and ROT13 shifts by exactly half that (13) — shifting twice totals a full 26-letter rotation, which is equivalent to no shift at all.

Is a Vigenère cipher meaningfully more secure than a Caesar cipher?

More resistant to brute-force since the shift varies by keyword position, but still fundamentally breakable through frequency analysis once the keyword length is deduced — neither is suitable for protecting genuinely sensitive information.

Why do these ciphers still get taught if they're not secure?

They're simple enough to trace by hand while still introducing real cryptographic concepts (substitution, key-based variation, frequency analysis vulnerability) that generalize to understanding why modern ciphers are designed the way they are.

Have a suggestion for Classical Substitution Ciphers?Share your feedback ↗