Bacon Cipher

Hide messages inside ordinary text with the Bacon cipher, or convert letters into classical five-symbol A/B groups.

Cover text (optional)
Input
0 chars · 0 bytes
Try:
Result
✓ Hide messages inside ordinary text ✓ Classical Bacon A/B encoding ✓ Supports steganography mode ✓ We never store your messages
Examples
Hide HELLO inside cover text Cover text: Ordinary letters can carry a hidden notes.
Input HELLO
Output orDINarY letTeRS cAn CArRY A hidden note.

Cover text mode. The secret message HELLO is encoded by changing letter case in the cover sentence.

Extract a hidden Bacon message Cover text: Ordinary letters can carry a hidden notes.
Input ordinARy lEttERS caN carRy A HiDdEN nOTEs.
Output hello

Decode mode reads the capitalization pattern from the text and restores the hidden Bacon message.

Standard A/B encoding
Input SECRET
Output BAABAAABAAAAABABAAABAABAABAABB

Without cover text, encode mode returns the classical five-symbol A/B groups directly.

Decode A/B groups
Input AABBBAABAAABABBABABBABBBA
Output hello

Standard decode mode reads Bacon groups in chunks of five and converts them back into letters.

How the Bacon cipher works

The Bacon cipher represents each letter as a fixed five-symbol pattern made from A and B. For example, every supported alphabet character is converted into a group such as AABBB or ABBBA, and decryption reads these groups back in chunks of five.

The most interesting use of the Bacon cipher is steganography: a secret message can be hidden inside ordinary cover text. In this tool, the A/B pattern can be represented by letter case, where one case stands for A and the other stands for B. The result still looks like normal text, but the capitalization carries the hidden message.

If no cover text is provided, the tool returns the standard A/B Bacon output. If cover text is provided, the secret message is encoded into that text using letter case.

Bacon cipher and steganography

Francis Bacon described the method in the 17th century as a way to conceal messages inside seemingly innocent text. The Bacon cipher is often described as a classical cipher, but its strongest idea is closer to steganography than ordinary encryption. Instead of only transforming a message into unreadable symbols, it can conceal the existence of the message itself.

Historically, the two Bacon symbols could be represented in many ways: different fonts, styles, shapes, or other visible differences. This tool uses letter case as a simple and practical demonstration: lowercase and uppercase letters act as the two possible symbols.

Practical limits

The cover text must contain enough alphabetic characters to store the full hidden message. Each secret letter requires five usable letters in the cover text. For example, hiding HELLO requires at least 25 letters in the cover text.

The Bacon cipher is not secure by modern cryptographic standards. It is best used for education, puzzles, historical demonstrations, and simple steganography experiments.

FAQ

Cover text is an ordinary sentence or paragraph used to hide the secret message. The tool changes letter case inside the cover text to represent Bacon A/B patterns.

A five-symbol A/B pattern can represent enough combinations for alphabet letters. The classical Bacon system uses these fixed-length groups to encode each character.

Yes. If the cover text field is empty, the tool returns the standard Bacon output as A/B groups. This is useful for learning, debugging, and direct decoding.

The cover text must contain at least five alphabetic characters for each secret letter. A longer cover text is usually better because the hidden capitalization looks more natural.

Spaces and punctuation are preserved where possible. In standard A/B mode, unsupported symbols are ignored or used only as separators depending on the operation.

No. The Bacon cipher is historically important and useful for learning steganography, but it should not be used to protect sensitive information.

Yes. The tool supports multiple alphabets and applies Bacon-style mapping to the selected alphabet. Classical Bacon was originally designed for a limited alphabet, while this tool adapts the idea for educational use.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.

Vigenere Cipher

Keyword-based polyalphabetic encryption and decryption.

Vernam Cipher

XOR-based Vernam encryption with Base64 output.