1. Home
  2. Writing & text tools
  3. Baconian Cipher

Baconian Cipher

Try one of the first steganography methods: every letter becomes five A/B symbols, which can be hidden in the letter case of an innocent-looking sentence.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Baconian Cipher

  1. Choose encode, decode, hide or reveal.
  2. Pick the 24- or 26-letter alphabet.
  3. Copy the code or the cover text.

Features

  • 24-letter (I=J, U=V) and 26-letter alphabets
  • A/B code both ways
  • Hide a message in a cover sentence with letter case
  • Reveal hidden messages from case
  • Key table
  • This is a classical cipher for puzzles, games and teaching. It does not protect real secrets.

Supported formats

You can open

  • Typed or pasted text
  • TXT

You get

  • Copied text
  • TXT

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Baconian Cipher is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • A classical cipher for puzzles and teaching: it can be broken quickly and must not be used to protect real secrets.

Guide

Bacon’s cipher: five-letter A/B codes and hidden messages

Francis Bacon, the English philosopher and statesman, devised a cipher in which every letter becomes a group of five symbols, each either A or B. A is AAAAA, B is AAAAB, C is AAABA and so on, like counting in binary. The clever part is what Bacon did next: the A/B pattern can be hidden in an innocent-looking text, by printing it in two slightly different typefaces. The reader sees an ordinary sentence; the recipient reads the typefaces. This tool encodes and decodes the A/B code and hides messages using capital and small letters.

24 or 26 letters

Bacon’s original alphabet had 24 letters, because I and J, and U and V, were treated as the same letters in his time. In that version, I and J share the code ABAAA and U and V share BAABB. The modern 26-letter version gives every letter its own code, from A (AAAAA) to Z (BBAAB). The key table under the tool shows the codes for the alphabet you choose; use the same one as whoever made the message.

Encoding and decoding

“Text → AABBA” turns each letter into its five-symbol group, separated by spaces. “AABBA → text” does the reverse; it reads any A and B characters, ignoring spaces and anything else, so codes copied with line breaks or in lowercase still work.

Hiding a message in a sentence

Choose “Hide in a sentence”, type the secret message and a cover text. The tool writes the message’s A/B code into the letter case of the cover: a small letter means A, a capital means B. “Hi” needs ten letters of cover text, so “Francis Bacon wrote about this” becomes a sentence with an unusual pattern of capitals. Each secret letter needs five cover letters, and the tool warns you if the cover is too short. Spaces and punctuation do not count.

Revealing a hidden message

Paste a text whose capitals look oddly placed and choose “Reveal from a sentence”. Every letter is read as A (small) or B (capital) and the groups are decoded. If the result starts with readable words, you have found the message; trailing A characters come from the unused end of the cover text.

Steganography, not encryption

Bacon’s cipher hides the existence of a message rather than making it unreadable. Once someone suspects it, the code is trivial to read, so it is for puzzles, treasure hunts and history lessons. Modern steganography hides data in images and audio, but the idea is the same.

Private

Everything runs in your browser.

A worked example

In the 26-letter alphabet, B is AAAAB, A is AAAAA and C is AAABA, so “BAC” encodes as AAAAB AAAAA AAABA. Hidden in the cover text “meet me by the old oak tree”, the first fifteen letters take their case from that code: only the 5th and the 14th letters become capitals, giving “meet Me by the olD oak tree”. Paste that sentence into Reveal and the three five-letter groups decode back to BAC; the remaining small letters add only A characters at the end, which you ignore.

Turn letters into numbers with the A1Z26 Cipher, into dots and dashes with the Morse Code Translator, reverse the alphabet with the Atbash Cipher, or find hidden characters with Invisible Character.

Checked against the current version of the Baconian Cipher on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

What do the A and B stand for?

Just two symbols, like 0 and 1 in binary. Bacon used two slightly different typefaces; anything with two forms works, such as capital and small letters, bold and normal, or two colours.

Why does the hidden message end with letters in lowercase?

After the message is encoded, the remaining letters of the cover text are written in lowercase, which reads as A. When revealing, extra A groups decode as A at the end, so ignore trailing A letters.

Is Bacon’s cipher binary code?

In effect, yes: five binary digits give 32 combinations, enough for the alphabet. Bacon described this two-symbol coding in the early seventeenth century, long before computers.

How much cover text do I need to hide a message?

Five letters of cover text per letter of the secret. A four-letter word needs a cover sentence of at least twenty letters; spaces and punctuation do not count.

Why does my decoded message contain I instead of J?

In Bacon’s original 24-letter alphabet, I and J share one code, as do U and V. Choose the 26-letter alphabet when every letter must be distinct.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.