Bacon Cipher
Encodes text with the Bacon cipher, replacing each letter with a group of five As and Bs. Uses the modern 26-letter alphabet, keeping I and J apart.
—
Five A and B letters per character
The Bacon cipher shows up in treasure hunts, ARGs, cryptography history classes and any puzzle where an innocent looking text hides a second message. Every letter becomes a group of five A and B symbols. Type a word and the page returns the groups separated by spaces: BACON comes out as AAAAB AAAAA AAABA ABBBA ABBAB. That is the step before hiding the pattern in upper and lower case, italics, or two similar typefaces.
Francis Bacon's original idea was steganographic rather than cryptographic: the A and B were never meant to be visible, but to become a property of a cover text, such as roman type versus italic type. The output here uses the modern 26-letter variant, where I and J get their own codes, as do U and V. The 1605 version treated each of those pairs as one letter and worked with 24 symbols. There is no variant selector on this page; the table is always the 26-letter one.
Know what vanishes before you type: digits, punctuation, accents and spaces are all stripped. Typing ola mundo! gives eight groups with no mark of where one word ends and the next begins, so keep the word breaks noted elsewhere. Write without accents, since á and ç disappear silently. The page only encodes. To read a string of A and B you split it every five symbols and look each block up by hand. It all runs in the browser, with no text sent out.
Frequently asked questions
Which Bacon variant does this tool use?
Can I decode A and B back into text here?
Why five symbols per letter?
Related Tools
Atbash Cipher
Apply the Atbash cipher (A↔Z, B↔Y, C↔X...): each letter is mirrored in the alphabet. Ancient Hebrew cipher used in the Bible. Applying twice returns the original. Everything in your browser.
Monoalphabetic Substitution Cipher
Encrypt/decrypt with a custom A-Z substitution key and show letter frequencies for didactic analysis.
Rail Fence Cipher
Encrypts messages with the Rail Fence (zigzag) cipher, spreading letters across N rails and reading rail by rail. A classic transposition cipher for learning cryptography.
Interactive Alberti Cipher Disk
Alberti cipher disk with two rotating rings — rotate the inner ring and encrypt/decrypt letter by letter.
Nihilist Cipher Encoder
Encodes text with the Nihilist cipher: every letter becomes its Polybius square coordinate, with I and J sharing a cell, added to a repeating numeric key.
Trifid Cipher
Encodes each letter of a message as its three coordinates in the 3x3x3 Delastelle grid, the fractionation step that the Trifid cipher is built on.