A Baconian Cipher, in plain words
The Baconian cipher, invented by Francis Bacon around 1605, turns every letter into a group of five As and Bs. It is really a binary code in disguise — the first binary encoding of the alphabet, three centuries before computers. It works entirely in your browser: you type or paste text, and the result appears at once, with nothing uploaded and nothing stored. People searching for a baconian cipher usually want exactly that — a quick answer without an account, a download, or a wait.
Puzzle fans who like ciphers with a history, students learning binary, and steganography hobbyists — Bacon designed it so the As and Bs could hide inside two different typefaces in a printed page. Students use it for homework and puzzles, developers use it at work, and writers use it when a deadline is close. The common thread is simple: the job is small, the answer should be instant, and the text should stay private.
This page keeps that promise. The baconian Cipher runs on your own device, so your words never leave the tab. You can use it as often as you like, on any text, and close the page knowing nothing was saved anywhere — there is no history, no log, and no sign-up standing between you and the answer.
If you have never used a tool like this before, start with the example on this page and change one thing at a time — one word, one setting — and watch the result change. That is the fastest way to learn what each input does, and it works for every tool in this family, because they all follow the same pattern: text in, result out, nothing saved.
How the Baconian Cipher does its job
Each letter is numbered from 0 to 25, and that number is written in 5-bit binary with A for 0 and B for 1. A is 00000, so AAAAA; B is 00001, so AAAAB; and Z is 11001, so BBAAB. Encoding writes the groups separated by spaces, and decoding reads the input in groups of five, ignoring anything that is not an A or a B. The rule this page uses is: Each letter becomes a 5-bit binary number written with A for 0 and B for 1: A is AAAAA, B is AAAAB, and Z is BBAAB. Decoding reads the groups back in fives.
The output is five times longer than the input, so a long message becomes a very long string of As and Bs. Bacon's original version merged I with J and U with V, using only 24 letters, but this tool uses the modern 26-letter version so every letter has its own group.
Because the rule never changes, the same input always gives the same output. Run the example below twice and the result will match exactly, character for character. That predictability is what makes the tool useful for checking your own work. For a different kind of text job, the text reverser covers the next step once you have your result. The comparison section further down this page explains which of the two fits which job, so you can pick before you paste.
The rule above is the whole method — there is no hidden step and no second pass. What you see in the rule is what the tool computes, which is why the worked example below can be followed by hand, one step at a time, with a pencil if you like.
The A and B groups explained
Each group is exactly five letters long, and only A and B count. Spaces between groups are for readability — decoding ignores them, along with any other characters. A group with fewer than five letters at the end is dropped, so a truncated message loses its last letter silently.
H is the 8th letter, which is 7 in zero-based counting, and 7 in binary is 00111, so H becomes AABBB. E is 4, which is 00100, so it becomes AABAA. The word HELLO becomes 'AABBB AABAA ABABB ABABB ABBBA'.
When decoding, paste the groups with their spaces — the tool ignores the spaces, but they help you see where one group ends and the next begins. If a group looks wrong, count its letters: it must be exactly five.
When in doubt, try the worked example below first — it uses the page defaults, so it shows the tool working exactly as it ships.
Paste from anywhere — a document, a chat, a web page. The tool reads only the text you give it, so stray formatting, links, and images are left behind. If the pasted text looks odd, paste it as plain text first and then copy it in, so nothing invisible rides along.
A worked example
Take this input: 'HELLO'. Each letter is numbered from zero: H is 7, E is 4, L is 11, L is 11, O is 14. Each number is written in 5-bit binary with A for 0 and B for 1, and the groups are joined with spaces. The result is 'AABBB AABAA ABABB ABABB ABBBA' — 29 characters including the 4 spaces, for 5 letters.
Decode the groups back: AABBB is 00111, which is 7, which is H; AABAA is 00100, which is 4, which is E. Every group adds to a letter between A and Z, and the five groups spell HELLO.
Try 'HI': H becomes AABBB and I, which is 8, or 01000, becomes ABAAA — so 'HI' becomes 'AABBB ABAAA'. Short words make the pattern easy to see.
You can check the result yourself without trusting the page. Reverse the operation — decrypt what you encrypted, or run the output back through the tool with the opposite setting — and the original input should come back. If it does not, the first thing to check is the input: a missing letter, an extra space, or a setting that changed between the two runs.
Who uses a Baconian Cipher — and why
A teacher introduces binary with the Baconian cipher, because it is binary counting that students can do with two letters instead of two digits. It is the kind of job that comes up often enough to remember, and rarely enough to justify installing anything for.
A puzzle maker hides a message in a block of As and Bs that looks like nonsense until someone recognises the five-letter groups. The word counter is the natural next stop when the result needs a different treatment. It answers the question this page leaves open, so the two together cover the whole job.
A steganography fan hides the As and Bs inside two fonts or two colours, exactly as Bacon described in 1605.
Baconian Cipher vs ROT13 Encoder
The ROT13 encoder shifts letters by 13, while the Baconian cipher turns letters into five-letter A/B groups. One is a shift; the other is a binary code in disguise. The ROT13 encoder is the closest comparison on this site, and the two answer different questions. Both are free, both run in your browser, and neither asks for an account.
Pick the baconian Cipher when you want the historical biliteral cipher, or you want to show binary encoding with letters instead of digits. Pick the rot13 encoder when you want the classic fixed shift that every puzzle fan recognises.
In practice most people keep both bookmarked. They are small, free, and private, and switching between them costs nothing — paste the same text into each and compare the outputs side by side before deciding which one fits the job in front of you. The habit that saves the most time is deciding the job first and the tool second: once you know whether you need a cipher, a conversion, or a count, the choice between two similar tools is usually obvious.
Where people go wrong with a Baconian Cipher
Using the old 24-letter version by mistake. Bacon's original merged I with J and U with V, but this tool uses 26 letters, so a group decoded with the old table gives the wrong letter.
Dropping a letter from a group. Each group must be exactly five characters — four or six breaks the alignment, and every letter after the break decodes wrong.
Forgetting how long the output is. A 100-letter message becomes 500 characters of As and Bs, so Baconian is a poor choice for long texts and a good choice for short secrets. Mixing up A and B with 0 and 1. A is 0 and B is 1, so AABBB is 7, not 28 — read the group left to right with the first letter as the biggest bit. The fix in every case is the same: check the input, check the setting, and test with the worked example before trusting a long result.
If the result still looks wrong after checking the input, run the worked example exactly as written. If the example works and your input does not, the difference is in your input — compare them character by character, including spaces, until the odd one out shows itself.
How to use this Baconian Cipher
Type your text, choose Encode or Decode, and copy the result. Encoding gives five-letter A/B groups separated by spaces; decoding reads groups of five and returns plain letters. The case converter can help with the next step once you have your output.
Keep the spaces between groups when you share an encoded message — they cost nothing and they stop the reader from miscounting. For a puzzle, remove the spaces only if you want it harder.
The result can be copied with the buttons above it, or shared and printed from the actions on the page. If you use the tool often, bookmark the page — the address never changes, and your last input is not saved, so a fresh visit always starts clean. That also means there is nothing to clear and nothing to log out of when you are done.
Everything on this page is free, with no account and no limit on how often you use it. Your text is processed in your browser and never sent to a server, so drafts, names, and private notes stay on your device. If the result looks wrong, check the input first — a stray space or a missing character is the cause far more often than the tool itself.