Bacon's Cipher Encoder & Decoder
About Bacon's Cipher
What is Bacon's cipher?
This 26-letter Bacon variant assigns every A-Z letter a distinct five-symbol A/B group: A is AAAAA, B is AAAAB, through Z as the binary value 25. Any other character — accented letters, Greek, Cyrillic, digits, or punctuation — is stored in an escape sequence, so the whole Unicode range round-trips. It differs from the historical 24-letter form that combined I/J and U/V.
How does Bacon's cipher work?
Encoding writes the zero-based letter index with A for 0 and B for 1. The decoder ignores whitespace inside the stream, reads exact five-symbol groups, and uses / for word breaks. Characters outside A-Z start with the escape group BBABA, followed by the length and the code point in binary; this visible form is neither steganography nor secure encryption.
Bacon example
ABC -> AAAAA AAAAB AAABA
AAAAA AAAAB AAABA -> ABC
A! -> AAAAA BBABA AAABA AAAAB AAAAB