Ciphers · BaconBacon cipher online A/B

The Bacon cipher writes each letter as five signs of two kinds, A and B, like a binary code: HELLO is AABBB AABAA ABABA ABABA ABBAB. The signs can be swapped for 0 and 1 or dots and dashes, or the message can be hidden in ordinary text: a lowercase letter means A, a capital means B.

Everything runs in your browser — the text goes nowhere

01Encode02Diagram03How it works04Questions05Related
01

Encode

five signs per letter
Alphabet
Signs
Plain text
Result
Latin 24
AABBB AABAA ABABA ABABA ABBAB
The link will contain the text (up to 500 characters) and settings — share it with care.
02

Diagram

codes of 24 letters
AAAAAABAAAABCAAABADAAABBEAABAAFAABABGAABBAHAABBBI/JABAAAKABAABLABABAMABABBNABBAAOABBABPABBBAQABBBBRBAAAASBAAABTBAABAU/VBAABBWBABAAXBABABYBABBAZBABBB

Letters of your text are highlighted.

03

How it works

Five signs

h = AABBB

The letter's number is written as five binary signs: A for zero, B for one. 32 combinations, enough for 32 letters.

24 Latin letters

I = J · U = V

Bacon made the cipher for the 17th-century Latin alphabet, where these pairs were one letter.

Hide it in text

thE QUiCk brown fox

Sign A is a lowercase cover letter, B a capital. The text looks ordinary, and the message is read from the case.

04

Frequently asked questions

Each letter has a number, written as five binary signs: A for zero and B for one. The classic Latin version has 24 letters, with I and J, U and V the same; the Russian version has 32 letters without Ё. Five signs give exactly 32 combinations, so the ciphertext always comes in groups of five, and the table on this page shows each code.

Updated