Skip to content
Bai
EspañolEnglishEuskara Get started →

Tools

Classical cipher decoder

Crack Caesar, Vigenère, Atbash and other classical ciphers by hand or with auto-detection.

Private by design

Enter ciphertext above to see ranked decoding candidates.

Try a sample:

Auto-detection is designed for English text: candidates are ranked by English-likeness (letter frequency and common words), so a message in another language may not show up or may score low. If so, use the Manual tab. Vigenère key recovery uses the Index of Coincidence and works best on ciphertext longer than about 50 letters.

About this tool

This tool decodes (and encodes) messages written with the classic methods: Caesar, ROT13, ROT47, Atbash, Vigenère, affine and rail fence, plus Morse code, A1Z26, Bacon’s cipher and encodings such as Base64, Base32, hex and binary. It comes in handy for puzzle hunts, geocaches and escape rooms, CTF challenges, cryptography homework or the odd mysterious string you stumble across online.

Paste your text into Input. The Auto-decode tab lists candidates ranked by likelihood, each with a confidence bar and the recovered key where there is one; Tweak in Manual sends a candidate to the other tab. In Manual you choose the cipher, the direction (decode or encode) and its parameters: the Caesar shift, the Vigenère key, the affine a and b values or the number of rails.

Everything runs in your browser; the text is never sent to a server. Auto-detection scores results against English letter frequencies and common English words, so it works best on English plaintext and may miss messages in other languages, in which case use Manual mode. Playfair, Hill, Enigma and custom-alphabet substitution ciphers are not included.

Frequently asked questions

How do you decode a Caesar cipher without knowing the shift?

There are only 25 possible shifts, so you can try them all and keep the one that reads as real text. Auto-decode does exactly that and shows you the three most likely results.

How can I tell which cipher a message uses?

Look at the characters: only dots and dashes means Morse, only 0s and 1s is usually binary, letters and digits ending in = suggest Base64, and only A and B points to Bacon. If it is all letters it could be Caesar, Atbash, Vigenère or another alphabet cipher, so paste it in and compare the candidates.

Can Vigenère be broken without the key?

Yes, if the ciphertext is long enough. The tool estimates the key length with the Index of Coincidence and then solves each position as a Caesar shift; it works best above roughly 50 letters of English text.

Is Base64 a cipher?

No, it is an encoding: anyone can reverse it without a key. That is why it sits in the Encodings group with Base32, hex and binary, separate from the classical ciphers.

Related tools