Join the Official Discord

Bacon's cipher

Paste A's and B's (or any two symbols) to decode, or read a message hidden in capitals.

Mode
Alphabet
Read
Result

Hidden in plain sight

How Bacon's cipher works

Francis Bacon described it in 1605. Every letter becomes five symbols from a two-letter alphabet. With A and B: A is AAAAA, B is AAAAB, C is AAABA, up to Z. It's a five-bit binary code three centuries before computers, with A for 0 and B for 1.

The trick was never the code itself. It was where Bacon hid it. Any two kinds of anything can carry the A's and B's: two typefaces, roman and italic, capital and small letters, even two kinds of flower in a picture. The message rides inside a perfectly innocent text, which makes this steganography, hiding that a message exists at all.

24 or 26 letters?

Bacon's alphabet had 24 letters: I and J shared a code, and so did U and V, as they did in the Latin of his day. The modern version gives every letter its own code, which shifts every letter after I by one. If a decode is close but slightly off from J onward, switch the alphabet setting.

Reading one in a puzzle

  • A's and B's, or 0's and 1's: paste them in as they are.
  • Any other two symbols (dots and dashes, two emoji, two colours you've written down as letters): paste them in. The first symbol is read as A. If the result is gibberish, tick “Swap A and B”.
  • Hidden in capital letters: choose “Letter case”. Lowercase letters read as A and capitals as B. To hide your own message this way, switch to Encode and type a cover sentence.
Step-by-step guide How to solve a Bacon's Cipher by hand, with a worked example

Questions

How does Bacon's cipher work?

Each letter becomes a group of five A's and B's: A is AAAAA, B is AAAAB, C is AAABA, and so on. That's binary with A for 0 and B for 1.

What's the difference between the 24 and 26-letter versions?

Francis Bacon's original merged I with J and U with V, so it has 24 codes. The modern version gives every letter its own. If a decode is nearly right but a few letters are off by one, switch versions.

How is it hidden in normal text?

Bacon meant it to be. Write any innocent sentence and use two styles of letter: say, lowercase for A and capitals for B, or two typefaces. Choose “Letter case” to read capitals as B.

What if my message uses other symbols?

Paste it as it is. Any text with exactly two different symbols is read as A and B. If it comes out as nonsense, tick “Swap A and B”.

More cipher tools

See all cipher tools →