Bacon cipher
Encode text as five-symbol A/B groups with Bacon’s biliteral cipher, and back.
Related tools
Bacon cipher
Francis Bacon devised his biliteral cipher in 1605 on a beautifully simple idea: with only two symbols you can encode the whole alphabet, if you use them in groups of five — 2⁵ is 32, more than enough for 26 letters. A becomes AAAAA, B becomes AAAAB, and so on. This tool encodes text into those A/B groups and decodes them back, one letter per group of five.
Its cleverness was never the A/B letters themselves but that they could hide in plain sight: a message written in two subtly different typefaces, two ink shades, or upright versus italic letters carries a Bacon-encoded secret invisibly. That makes it a steganography classic, a staple of puzzle hunts, escape rooms and CTF challenges — and the reason a page of seemingly ordinary text can hold a concealed message five characters at a time.
Two alphabets are offered. The classic 24-letter version is Bacon's original, where I and J share a code and U and V share a code — a quirk of the period's Latin alphabet. The modern 26-letter version gives every letter its own distinct code, so it round-trips losslessly. Encoding groups letters into words separated by a slash for readability; decoding ignores anything that is not an A or B (and accepts 0/1 too), reading the stream in fives, so you can paste a message however it was formatted.
Everything runs locally in your browser — your text never leaves your device.