Baconian Cipher

Map letters to 5-bit A/B sequences — Sir Francis Bacon's 1605 steganographic cipher.

Plaintext
Encoded (A/B)
Enter text to encode with the Baconian cipher.
Reference Table (A–Z)

How to Use the Baconian Cipher Tool

  1. Choose Encode or Decode — select the direction with the option chips.
  2. Enter your text — plaintext for encoding, A/B sequences for decoding.
  3. View the output — each letter becomes a 5-character group of A's and B's.
  4. Visual mode — shows A-letters in one style and B-letters in another, demonstrating the steganographic principle.
  5. Copy the result — click Copy to save the encoded output.

About the Baconian Cipher

The Baconian cipher (also known as Bacon's cipher) was invented by Sir Francis Bacon in 1605 and published in his work De Augmentis Scientiarum. Each of the 26 letters of the alphabet is represented by a unique sequence of five A's and B's. A = AAAAA, B = AAAAB, C = AAABA, and so on up to Z = BBBBB, giving 2⁵ = 32 possible codes (with 6 unused combinations in the 26-letter version).

Steganography — The Hidden Message

Bacon's genius was using this code for steganographic purposes — hiding a message inside an innocent-looking text. The A and B symbols do not need to literally appear in the text. Instead, any two distinct visual states can represent A and B: normal font versus bold font, roman versus italic, a slightly different letter shape, or any other visual distinction. A reader sees an ordinary passage of text, while a trained eye reads the secret message by noting which letters are in which style.

The Binary Connection

The Baconian cipher is functionally identical to 5-bit binary encoding of the alphabet. A corresponds to binary 0 and B corresponds to binary 1. A = 00000 (0), B = 00001 (1), C = 00010 (2), ..., Z = 11001 (25). This makes Bacon's cipher one of the earliest known descriptions of a binary encoding system — predating modern computing by over 350 years. Gottfried Wilhelm Leibniz later developed a formal binary number system, and the connection to Bacon's work was recognized by several historians.

Original 24-Letter vs. Modern 26-Letter Version

Bacon's original cipher used a 24-letter alphabet (as was standard in early modern English), where I/J were treated as one letter and U/V were treated as one letter. In the modern 26-letter version used by this tool, every letter has a unique 5-bit code. When decoding, if you encounter an ambiguous sequence that could represent either I or J (or U or V) in the 24-letter system, context usually makes the correct letter clear.

Strength and Limitations

As a standalone cipher, the Baconian encoding provides no security at all — it is simply a lookup table substitution where A=AAAAA, B=AAAAB, etc. Its value is entirely as a steganographic tool: hiding the fact that a message exists at all. Once the encoding method is known, decoding is trivial. Modern steganography uses far more sophisticated techniques, embedding data in image file metadata, audio waveforms, or the least-significant bits of pixel values.

Frequently Asked Questions

The Baconian cipher was devised by Sir Francis Bacon in 1605. Each letter is represented by a group of five A's and B's (A=AAAAA, B=AAAAB, etc.). It was designed as a steganographic tool for hiding messages in ordinary text using two different fonts.
It's functionally identical to 5-bit binary encoding where A=0 and B=1. Bacon described this system in 1605, predating formal binary number systems by decades. It encodes 26 letters in 5 bits (giving 32 possible values, 26 used).
Bacon hid messages in cover text by using two visually distinct typefaces — one font for A, another for B. A casual reader sees ordinary text while a trained eye reads the hidden message from the typographic pattern.
Bacon's original used a 24-letter alphabet where I/J and U/V each share a code. This tool uses the modern 26-letter version where every letter has a unique code. Visual mode lets you see the A/B structure clearly.
Yes — simply substitute 0 for A and 1 for B. The cipher is functionally a 5-bit binary encoding of the alphabet. Visual mode highlights A-letters and B-letters in different styles.