Skip to main content

Bacon Cipher

How to Use

Encode

  1. Enter English text
  2. Click "Encode" — each letter becomes a 5-character A/B sequence

Decode

  1. Enter A/B sequences (non-A/B characters are ignored)
  2. Click "Decode" — every 5 characters are converted back to a letter

How It Works

The Bacon cipher was invented by Francis Bacon in 1605. Each letter is represented by a 5-bit binary sequence using A and B.

Example: HIAABBB ABAAA

常见问题

How is the Bacon cipher related to binary?
The Bacon cipher is essentially binary encoding — A represents 0 and B represents 1. Each letter uses 5 binary digits (2^5 = 32, enough for 26 letters). Bacon proposed this binary concept in 1605, nearly 100 years before Leibniz's binary paper.
How was the Bacon cipher used for steganography?
Bacon originally designed it for steganography: using two different typefaces (e.g., roman and italic) to represent A and B, hiding secret messages within normal-looking text.
Why do some letters share the same encoding?
In Bacon's original version, I/J shared one code and U/V shared another (they were considered the same letter at the time). This tool uses the modern 26-letter version with unique codes for each letter.
Share this tool