How to use the Bacon cipher tool
- Choose the Direction: Encode or Decode.
- Pick the Alphabet: 26 letters (modern) or 24 letters (Bacon’s: I=J, U=V). Use the same one in both directions.
- When encoding, choose the Symbols: A / B, a / b or 0 / 1.
- Type into Your text and read the Result. Encoded groups are separated by spaces.
What it does and when to use it
Francis Bacon described this cipher in 1623 as a way to hide a secret inside an innocent text. Every letter becomes five symbols drawn from just two, which is the same idea as 5-bit binary. Today it appears in escape rooms, geocaches and puzzle hunts, where the two symbols might be bold and normal letters or two colours.
The code itself gives no protection: anyone who recognises the pattern can read it, so it is for puzzles and teaching only. Its strength was always in hiding that a message existed. If you are building a puzzle chain, you could encode the result of a Polybius square or A1Z26 step. The binary text converter uses the same two-symbol idea with eight bits per byte.
How it works
Encoding. The text is converted to capitals and everything except A to Z is removed, including spaces and digits. Each letter gets its position, counting from zero, written as five binary digits. With 26 letters, A is 00000, B is 00001 and Z is 11001. With 24 letters, J is treated as I and V as U before the lookup, so the codes after I shift down. Finally 0 and 1 are replaced by your chosen symbols.
Decoding. The tool keeps only a, b, A, B, 0 and 1, reads a or 0 as 0 and b or 1 as 1, and cuts the result into groups of five. A total that is not a multiple of five gives a message. It all runs in your browser.
Worked examples
Results from the tool:
Hello 26 letters, A/B → AABBB AABAA ABABB ABABB ABBBA
Jump 24 letters, A/B → ABAAA BAABB ABABB ABBBA
Hi, Jo! 26 letters, 0/1 → 00111 01000 01001 01110
BAAAB 24 letters, decode → S
In the second line J is encoded as I (ABAAA) and the U uses the 24-letter code BAABB. The third shows the comma, space and exclamation mark disappearing. The last line decodes to S, but the same group in the 26-letter table is R, which is why choosing the right alphabet matters.
Limits and tips
- Word breaks are lost when encoding. Add a marker of your own, such as a slash, if the reader needs them; the decoder skips it.
- Decoding a cover text with normal words in it will not work, because the a and b letters inside those words count as symbols. Convert the cover text to A and B by hand first.
Frequently asked questions
Which alphabet should I choose, 26 or 24 letters?
How was Bacon's cipher used to hide messages?
What does the decoder ignore?
Why do I get a question mark?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.