Bacon's Cipher Generator
Fast, accurate and free online bacon cipher generator tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Bacon's Cipher Generator
Encrypt message using Francis Bacon's steganographic algorithm
Cipher settings
Processing Result
Rate this tool:
Related tools
Other tools you may find usefulOnline Bacon Cipher Generator - encrypt and decode messages in 5-character groups
This is one of those tools that look inconspicuous but can be addictive for a long time. The Bacon cipher converts letters into sequences of "A" and "B" (or 0 and 1), so you can encode text in the form of ordered "fives." You can use it for learning, puzzles, CTFs, playing hidden messages and anywhere you want to quickly convert text to code or code to text.
In practice, it works quite simply: each letter becomes a five-character pattern composed of two symbols. You can then decide whether you want to see it as "AAAAA ABABA...", as a lowercase "a/b", or as a binary "00110 10101...". The tool also covers two popular variants of the alphabet: classic (with I=J and U=V) and modern (full 26 characters).
How the Bacon cipher works and why it is so "clever"
The Bacon cipher is associated with a simple A/B code, but its "flavor" is steganographic: historically, it was possible to hide a message in the text by changing the font (e.g. regular vs. italic) and assigning the value A or B to it. In the utility version, we go straight: you get pure A/B or 0/1 groups, which are easily copy, divide into fives and paste further.
The most important rule: one letter = 5 characters of the code. That's why you also see the number of "5s" in the results panel - it's nothing more than the number of encoded letters (after taking into account the alphabet variant rules and how the tool deals with non-alphabet characters).
Mode: Encryption (Text → Code)
You enter plain text, select an alphabet variant, output format (A/B, a/b or 0/1) and group separator. You click "Run process" and you get a ready-made sequence of five-character sequences.
This mode is ideal when you want to quickly generate code for a puzzle, field game, CTF task, or simply test how the result changes when switching from the classic variant to the modern variant.
Mode: Decoding (Code → Text)
You paste the code (A/B or 0/1) and the tool tries to convert it to text. The most common decoding error is "disjointed" groups of 5 characters - one missing letter and the entire reading may be lost.
In decoding, it is crucial that the code is consistent: only A/B (or only 0/1), without random characters and with a sensible division into fives. A separator (space or dash) usually helps keep things tidy.
Classic vs. modern variant – what to choose
The choice of alphabet variant affects how the letters are mapped. The classic approach historically crammed the alphabet into 24 characters, most often combining I with J and U with V. In the modern variant, you have the full 26 letters, so the mapping is more intuitive for the modern user.
Classic (24 characters)
Choose if you are working with historical materials, books, old descriptions of Bacon's cipher, or if you want to "stick to the source". Just remember to be consistent: in this variant, I/J and U/V are treated as the same character, so the decoding may produce an "I" where you expect a "J" (or vice versa).
Modern (26 characters)
The most c