Bacon Cipher Online — Encode & Decode Baconian Cipher Messages
CodexFuse Team · 2026-10-13T15:28:00.114Z · 6 min read min read
Learn how the bacon cipher works, how to encode and decode Baconian messages step by step, and try the free Bacon Cipher tool online — no sign-up needed.
The Bacon cipher hides a message inside another message. Each letter becomes a pattern of five symbols, using only two kinds of mark, written here as A and B. The patterns can be spelled out plainly, or hidden in the difference between two typefaces, so a casual reader sees an ordinary sentence and misses the message inside it.
This guide explains how the Bacon cipher works, shows how to encode and decode it by hand, and explains why it is a puzzle rather than protection. You can follow along with the free Bacon cipher tool and test each example as you read.
What Is the Bacon Cipher?
The Bacon cipher is a biliteral cipher that represents each letter as a pattern of five A and B symbols, where each position in the pattern is one of two types. Francis Bacon described it in the early 1600s as a way to hide a message inside ordinary text. Use it for puzzles only.
Biliteral means two letters. Every character in the hidden message is written with five two-way choices, which gives 32 possible patterns, more than enough for the alphabet. The classic Bacon alphabet uses 24 letters: I and J share one pattern, and U and V share another. Modern versions often use all 26 letters.
The cipher has two layers. The first layer turns letters into A and B patterns. The second layer hides those patterns inside a cover text, for example by printing some letters in one style and the rest in another.
| Letter | Bacon pattern | Letter | Bacon pattern |
|---|---|---|---|
| A | AAAAA | N | ABBAA |
| B | AAAAB | O | ABBAB |
| C | AAABA | P | ABBBA |
| H | AABBB | S | BAABA |
| M | ABABB | Y | BABBB |
How Do You Encode a Message With the Bacon Cipher?
To encode a message with the Bacon cipher, replace each letter with its five-symbol A and B pattern, using the standard Bacon alphabet, and group the patterns in fives. Keep the groups in the same order as the letters. The result carries the message.
- Write your message in capitals, treating I and J as the same letter and U and V as the same letter.
- Replace each letter with its five-symbol Bacon pattern from the table.
- Group the patterns in fives, keeping the order of the letters.
- Write a cover text and mark its letters in two styles to match the A and B pattern.
A fictional worked example: the word HI
The following example is fictional and is included only to show the steps. Take the fictional word HI. H becomes AABBB, and I becomes ABAAA. The full encoding is AABBBABAAA. To check it, split the string into groups of five: AABBB and ABAAA. The first group is H, and the second is I, so the encoding is correct.
To hide the pattern in a cover text, you need a cover text with at least as many letters as the pattern has symbols. Write the cover text, then mark the first five letters in the styles matching AABBB and the next five in the styles matching ABAAA. A reader who knows the styles reads HI, and everyone else reads the cover text.
How Do You Decode a Bacon Cipher Message?
To decode a Bacon cipher message, split the A and B symbols into groups of five, match each group to its letter in the Bacon alphabet, and read the letters in order. If the message was hidden in a cover text, first read the two styles of the cover letters to recover the A and B pattern. For the full rundown, see Pigpen Cipher Online.
Counting is the main skill in decoding. A pattern that is one symbol too long or too short shifts every group after it, so the rest of the message turns into nonsense. When decoding fails, recount from the start rather than guessing at the middle.
Decoding a hidden message takes one extra step. The reader must agree with the writer on which style means A and which means B. Without that agreement, the reader recovers a pattern but cannot tell which letters it stands for.
Why Is the Bacon Cipher Not Secure for Real Secrets?
The Bacon cipher is not secure for real secrets because its alphabet is fixed and public, its patterns are easy to spot once suspected, and a hidden message still needs a shared secret. Anyone who recognises the A and B pattern can decode it with the standard table. Real data needs modern encryption such as AES-256 over TLS.
Bacon is a steganography puzzle: it hides the fact that a message exists, rather than making the message unreadable. That is a fun property for games, treasure hunts, and classroom lessons built from your own content. It is not a way to hide passwords, customer records, or business messages.
Bacon hides a message in plain sight. It does not make the message unreadable to someone who finds it.
Use the Bacon tool to learn how hidden-message puzzles work, and let CodexFuse handle real protection with fully managed hosting, security, and backups on credits.
Get Started with CodexFuseHow Can You Practise the Bacon Cipher With an Online Tool?
You can practise the Bacon cipher with an online tool by opening the tool, typing a short message of your own, and reading the A and B pattern it returns. Then paste the pattern back into the decoder and check that the original message returns. Short words work best for practice, because each letter adds five symbols to track.
Open the Bacon cipher tool and try the word HI from the worked example. If the tool returns AABBBABAAA, your hand encoding matches. Then decode the pattern and watch HI return, which confirms the round trip. Find hundreds more practical how-tos on our blog.
For more puzzle practice, compare Bacon with the Atbash cipher, which reverses the alphabet, the Affine cipher, which mixes multiplication with a shift, and the binary code translator, which also writes text as patterns of two symbols. Each one teaches a different lesson about encoding.
Frequently Asked Questions
What is the Bacon cipher?
The Bacon cipher is a biliteral cipher that represents each letter as a pattern of five A and B symbols. The patterns can be written plainly or hidden in two typefaces.
How many symbols does each Bacon letter use?
Each Bacon letter uses five symbols. Five two-way choices give 32 possible patterns, which is more than enough for the alphabet.
Why do I and J share a pattern?
The classic Bacon alphabet has 24 letters, so I and J share one pattern and U and V share another. Modern versions often use all 26 letters with separate patterns.
Can the Bacon cipher protect a password?
No. The Bacon cipher cannot protect a password or any real secret. Its alphabet is public, so anyone who spots the pattern can decode it. Use AES-256.
What is the difference between Bacon and binary?
Binary writes character codes as bit patterns for computers to store. Bacon writes letters as A and B patterns for puzzles and hidden messages. Both use two symbols, but their purposes differ.
Learn the patterns, enjoy the puzzle, and keep real secrets behind modern encryption.















