Bacon Cipher Encoder Decoder – Hide Text in A and B Patterns

What the Bacon cipher is

The Bacon cipher is one of the oldest ways to hide a message in plain sight. It was described by Francis Bacon in 1605. Every letter of the alphabet is turned into a pattern of five symbols, using only the letters A and B. The letter A becomes AAAAA, the letter B becomes AAAAB, the letter C becomes AAABA, and so on through the alphabet. A short word turns into a long string of As and Bs that looks meaningless, but anyone who knows the table can turn it back into the original text.

Bacon’s clever idea was that the As and Bs could stand for anything with two forms: two typefaces, two colours, or two sounds. A message could hide in a printed page where some letters were in one font and some in another. This free Bacon cipher encoder and decoder lets you try the idea yourself. Type text to encode it, or paste a pattern to decode it, right in your browser.

How to use it

Type your message in the box and press Encode, or just type and watch the pattern appear live. Each letter becomes a five symbol group, with groups separated by spaces. To decode, paste a pattern of A and B groups into the box and press Decode. The tool reads each five symbol group and turns it back into a letter. Press Copy result to copy the output and paste it into a message, a puzzle, or a document.

Worked example

Take the word HI. The letter H is the eighth letter of the alphabet, and its pattern is AABBB. The letter I is the ninth letter, and its pattern is ABAAA. So HI encodes to AABBB ABAAA. To decode, split the pattern into groups of five: AABBB gives H, and ABAAA gives I. Try a longer word: HELLO encodes to AABBB AABAA ABABB ABABB ABBBA. That is five letters turned into twenty-five symbols. A friend with the same table can decode it in under a minute, but a stranger who sees only As and Bs will not know where to start.

Who it helps

Teachers use it to show students how ciphers work and how a code table turns letters into symbols. Puzzle makers use it to hide clues in plain sight, because a string of As and Bs looks like noise until you know the trick. History students use it to study one of the first ciphers ever published. Families use it to send secret notes to children, who enjoy decoding them.

Honest limitations

The Bacon cipher is a toy cipher, not real security. Anyone who knows the table can decode your message, and the pattern is easy to spot because it uses only two symbols. The tool also drops spaces, numbers, and punctuation when it encodes, and it treats I and J as separate letters with their own patterns, which matches the modern 26 letter table. Do not use it for anything private. It is for learning, puzzles, and fun, and a real password or a real secret needs real encryption, not a 400 year old parlour trick.

Frequently asked questions

How does the Bacon cipher work? Each letter becomes a unique pattern of five A and B symbols. There are 32 possible five symbol patterns, which is enough to cover the 26 letters of the alphabet.

Can I decode a pattern someone sent me? Yes. Paste the pattern into the box and press Decode. Each group of five symbols becomes one letter.

Why do spaces disappear when I encode? The cipher table only covers letters. Spaces, numbers, and punctuation are dropped, so the encoded text is one long run of letter groups.

Is the Bacon cipher secure? No. It is a historical curiosity and a puzzle tool. Anyone with the table can read it, so never use it for real secrets.

También disponible en español: Codificador De Cifrado Bacon – Oculta Texto En Patrones A Y B

1 thought on “Bacon Cipher Encoder Decoder – Hide Text in A and B Patterns”

  1. Pingback: Codificador De Cifrado Bacon – Oculta Texto En Patrones A Y B

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top