Baconian Cipher Decoder
Decode a message written in the Baconian cipher right in your browser, or switch to any other classical cipher.
Input
Output
Guide
How do you decode the Baconian cipher?
Split the A's and B's into groups of five and look each group up in Bacon's alphabet. Reading A as 0 and B as 1, each group is a binary number that counts the letters from 0 for A: BAABB is 19, the letter T in the 26-letter alphabet. In Bacon's own 24-letter alphabet, the same group stands for U or V, so you also need to know which of the two alphabets the message uses.
Tool description
Paste the code into the Cipher text box, and the Plain text box spells out the message in capital letters, without spaces, while you type. The decoder reads only the A's and B's, capital or small, so it doesn't matter how they're spaced: groups of five, one long run or several lines all decode the same. Every other character is skipped, but A's and B's inside ordinary words are read as code, so paste the A's and B's on their own. A code in 0s and 1s decodes too: in a text without any A or B, a 0 counts as A and a 1 as B. The Alphabet menu starts on 26 letters; switch to 24 letters (I = J, U = V) for a message in Bacon's original alphabet. Insert sample fills the box with See you at the park at noon in A's and B's, at 26 letters, and SEEYOUATTHEPARKATNOON comes out in the Plain text box. A reply in A's and B's? The button between the boxes swaps them and turns the tool into an encoder, or use the Baconian Cipher Encoder. Other classical ciphers are a click away in the Cipher menu. The code never leaves your browser.
Examples
| Cipher text | Alphabet | Plain text |
|---|---|---|
aabba aaaaa baaab aaabb aabaa abbab |
26 letters | GARDEN |
ABBBBAAAAABAAABBAABBBBAAA |
26 letters | PARTY |
AABAB BABAA ABBAB |
26 letters | FUN |
00010 00000 01010 00100 |
26 letters | CAKE |
ABBBA AAAAA BAAAA ABAAB |
24 letters | PARK |
ABAAB ABAAA BAABA AABAA |
24 letters | KITE |
Reading a hidden message
When the A's and B's hide in a cover text, write an A for each letter of one kind and a B for each letter of the other. In piCnIC iN the PArK, the small letters stand for A and the capitals for B, which gives AABAB BABAA ABBAB, or FUN. If the result makes no sense, or an error shows, try the A's and B's the other way round.
Which alphabet?
- With the wrong alphabet, the letters up to I still come out right, but the later ones come out shifted:
PICNICwritten with 24 letters readsOICMICwith 26 letters. When a word is almost right, switch the Alphabet. - With 24 letters, I and J share a group, and so do U and V, so the decoder gives I and U for them:
ABABA ABBAB BAABB AABAAcomes back asLOUE, for love. - The Cipher Identifier tries both alphabets and shows the one it used.
What the error messages mean
- Baconian cipher text comes in groups of five A's and B's, but 2 are left over. The number of A's and B's doesn't divide by five. One went missing or got added, or another word came along: in
Bacon: AABBB ABAAA, the B and the a of Bacon count too. For a code in 0s and 1s, the message speaks of 0s and 1s. - BBABA isn't a letter in this alphabet. The group comes after Z, which is
BBAABwith 26 letters andBABBBwith 24. With 24 letters, aBBAAAorBBAABmeans the message uses 26, where those groups are Y and Z: switch the Alphabet. If the error shows with 26 letters too, the A's and B's may be the wrong way round. - Baconian cipher text is written in A's and B's, or 0s and 1s, but this text has neither. The text holds no A, B, 0 or 1. For a code in other symbols, such as X's and O's, write an A for one and a B for the other first.