Morse Code Translator
  1. Translator
  2. Bacon cipher

Bacon cipher translator

Decode Bacon’s cipher by reading each five-symbol A/B group as one letter. Choose the historical 24-letter alphabet with I=J and U=V, or the modern 26-letter alphabet. You can also encode your own text.

Decode or encode Bacon’s cipher

Everything you enter stays in your browser. This tool makes no network requests.

Enable JavaScript to convert a message. The two alphabet tables and worked examples below remain available without it.

How do I decode a Bacon cipher?

Choose the alphabet, enter your A/B sequence, and press Decode. Read each five-symbol group as one letter. For example, the 24-letter table turns AABBB AABAA ABABA ABABA ABBAB into HELLO (Bacon, biliteral alphabet).

You can paste a continuous string or add spaces between groups. This decoder ignores spaces and line breaks, and uses / for word boundaries. That slash is a convention of this tool. If your source has no word separators, the result stays joined; the decoder does not guess where words begin.

Open “Check the five-symbol groups” to compare the output against the reference. Keep your original sequence alongside the result. If you do not know the alphabet, try both versions and compare complete words. A result containing valid letters does not establish that you selected the correct table.

How does Bacon’s cipher work?

Bacon’s biliteral cipher represents a letter with five positions, each chosen from two alternatives. The labels A and B name those alternatives. The Folger Library describes how two typefaces, or two other distinguishable kinds of objects, can carry the same pattern (Folger, case 9).

To follow the table, treat A as zero and B as one. Start counting from zero, with five positions: AAAAA is the first entry, AAAAB the second, and AAABA the third. CyberChef uses this binary numbering to construct its Bacon groups (GCHQ, encoding operation).

The A/B sequence is one layer. Hiding that sequence in the appearance of an ordinary message adds a carrier layer. The words of the carrier need not spell the hidden message; the two visual forms carry the distinction (Folger, case 9). In this translator, you work with the extracted symbols directly.

What is the difference between the 24- and 26-letter tables?

The historical table has one entry for I/J and one for U/V. In 24-letter mode, this tool encodes J as I and V as U, and displays I and U when decoding. The original distinctions are lost. For instance, JIVE returns as IIUE using that convention (Bacon, biliteral alphabet).

The 26-letter version gives every English letter its own entry. It uses the same five-position counting method but inserts separate J and V positions. Both alphabet orders below match CyberChef’s named “Standard” and “Complete” variants; the complete version is a modern option, rather than the alphabet printed by Bacon (GCHQ, alphabet definitions).

Use the table named in your puzzle’s instructions. If you are making a message for someone else, give them that choice explicitly. The same group can mean different letters: ABABA is L in the historical version and K in the complete version (Bacon, alphabet), (GCHQ, alphabets).

Historical 24-letter table (I=J, U=V)
LetterFive-symbol group
AAAAAA
BAAAAB
CAAABA
DAAABB
EAABAA
FAABAB
GAABBA
HAABBB
I / JABAAA
KABAAB
LABABA
MABABB
NABBAA
OABBAB
PABBBA
QABBBB
RBAAAA
SBAAAB
TBAABA
U / VBAABB
WBABAA
XBABAB
YBABBA
ZBABBB
Modern 26-letter table (A–Z)
LetterFive-symbol group
AAAAAA
BAAAAB
CAAABA
DAAABB
EAABAA
FAABAB
GAABBA
HAABBB
IABAAA
JABAAB
KABABA
LABABB
MABBAA
NABBAB
OABBBA
PABBBB
QBAAAA
RBAAAB
SBAABA
TBAABB
UBABAA
VBABAB
WBABBA
XBABBB
YBBAAA
ZBBAAB

Can this Bacon cipher solver read two typefaces?

It can decode a transcription of two typefaces. Choose “Two custom symbols,” assign one visible character to A and another to B, then enter those characters in reading order. For example, use ○ for the first typeface and ● for the second. Replace every carrier letter with the symbol for its typeface, including letters in words that look unimportant.

This tool cannot inspect bold versus plain formatting, read a photograph, or extract font information from pasted rich text. Make the transcription yourself before pasting. Do not paste the ordinary carrier sentence and expect the decoder to recover its fonts. Custom symbols are literal and case-sensitive; A/B mode alone accepts either case.

Confirm which form represents A before decoding. If that assignment is unknown, keep your transcription unchanged and use “Swap A and B” to test the opposite assignment. The tool will report unassigned groups, but it cannot determine which visual category the author intended.

Why is my decoded message wrong?

Check the alphabet, the A/B assignment, and the starting position. One missing symbol changes the grouping of the rest of that encoded word. An extra space does not repair it. The decoder refuses incomplete groups and unexpected characters instead of silently discarding them. It also refuses patterns outside the selected alphabet.

Five binary positions allow 32 patterns. This leaves eight unassigned in the historical alphabet and six in the complete alphabet; those are not extra punctuation characters (GCHQ, alphabet lengths), (GCHQ, five-bit encoding). If an error identifies a word and group, compare that position with your source first. Correct the transcription, then decode again.

How do I encode text with Bacon’s cipher?

Switch to “Text to Bacon code,” select an alphabet, and enter English letters and spaces. Try HELLO before a longer message. The tool outputs one group per letter and a slash between words. It converts letters to uppercase and collapses repeated spaces; numbers and punctuation produce an error so you can decide how to rewrite them.

You can encode with your custom symbols too. Copy the result, switch direction, and decode it with the same settings as a check. In 24-letter mode, compare against the normalized text with I/J and U/V merged. Keep the alphabet and symbol assignments with the message so its reader can reproduce your result.

Can you send Bacon code in Morse?

For a two-layer puzzle, encode HI as AABBB ABAAA, then send those A and B letters using International Morse. The receiver first reads the Morse letters, then decodes the resulting Bacon groups. Morse assigns signals to A and B separately; it does not make an A/B group into a single Morse letter (ITU, Annex 1).

This player sends the letters AABBB ABAAA in Morse. Decode the Morse letters first, then read the two Bacon groups to recover HI.
Open this A/B message in the Morse translator

Check individual letters in the Morse code alphabet, or practice the listening step with How to learn Morse code.

To compare the underlying systems, see Morse code vs binary.

Sources

  1. The Works of Francis Bacon, volume I: De augmentis scientiarum, book VI, chapter I. Edited by James Spedding, Robert Leslie Ellis, and Douglas Denon Heath; Longman; copy hosted by Universidad Católica de Valencia, 1857, printed pages 659–660; checked 11 November 2026.
  2. Decoding the Renaissance: Bacon’s Biliteral Cipher, exhibition case 9. Folger Shakespeare Library, checked 11 November 2026.
  3. CyberChef: Bacon cipher alphabet definitions. GCHQ, CyberChef open-source project, checked 11 November 2026.
  4. CyberChef: Bacon Cipher Encode operation. GCHQ, CyberChef open-source project, checked 11 November 2026.
  5. Recommendation ITU-R M.1677-1, International Morse code. ITU Radiocommunication Sector, October 2009.