Baconian Cipher Encoder/Decoder (BAC)

Encode or decode messages with the Baconian cipher using 24-letter or 26-letter alphabets, custom A/B symbols, grouping, and optional steganography.

Encode, decode, configure

A/B sequence will be applied to letters in this cover text (A = uppercase, B = lowercase).

How to Use This Calculator

Switch between Encode and Decode to transform text into Baconian A/B blocks or back into plain letters. Configure the alphabet variant, custom A/B symbols, grouping, and whether non-alphabet characters stay in place. Click Convert (or edit the inputs) to refresh the output, and use Reset to return to the example defaults.

You can paste an existing A/B string to decode it, or feed your plain message to create an encoded result. Optional cover text accepts the current A/B sequence so you can stamp it into uppercase/lowercase letters for steganography.

Methodology

The calculator follows Francis Bacon’s original system: each letter maps to a unique five-character pattern of As and Bs. The 24-letter variant merges I/J and U/V, while the 26-letter variant exposes every A‑Z pattern. The encode path replaces letters with your chosen A/B symbols, while the decode path reverses that mapping with optional placeholders for partial groups.

  • Encoding strips letters (A–Z) and substitutes each with its five-symbol pattern.
  • Decoding normalizes your A/B symbols, chunks the stream in five-character groups, and maps each to the corresponding letter; incomplete groups show “?” when kept.
  • Grouping in fives adds spaces for readability, but you can also request a continuous string to embed in steganography.

Full original guide (expanded)

How the Baconian cipher works

The cipher turns every letter into a block of 5 characters, each either “A” or “B”. For example, in the original 24-letter alphabet:

A = AAAAA
B = AAAAB
C = AAABA
...
I/J = ABAAA
U/V = BAABB

Once you have the A/B sequence, you can hide it using two fonts, two colors, or simply uppercase versus lowercase characters. A reader with the key can map back to As and Bs and then to letters.

24 vs 26 letters

  • 24-letter (classic): I=J and U=V are merged to fit 24 patterns.
  • 26-letter (extended): every letter A–Z is unique and does not rely on merged symbols.

Common decoding problems

  • Make sure the symbol you use for A and B stays consistent.
  • If the encoded message length is not a multiple of 5, the last letter may be incomplete.
  • Mixing alphabet variants (24 vs 26) produces odd characters during decoding.

Related Crypto & Encoding Tools

Tips for stronger stego

Use a cover text of similar length to your encoded message. Mix punctuation and numbers, and avoid repeating obvious upper/lowercase patterns so your embedded A/B stream stays subtle.

Formulas

Letter → A/B mapping (24-letter variant shown)

A = AAAAA
B = AAAAB
C = AAABA
D = AAABB
E = AABAA
F = AABAB
G = AABBA
H = AABBB
I/J = ABAAA
U/V = BAABB

26-letter extension adds:

J = ABAAB
K = ABABA
L = ABABB
M = ABBAA
N = ABBAB
O = ABBBA
P = ABBBB
Q = BAAAA
Z = BBAAB

Citations

NIST — Weights and measures — nist.gov · Accessed 2026-01-19
https://www.nist.gov/pml/weights-and-measures

FTC — Consumer advice — consumer.ftc.gov · Accessed 2026-01-19
https://consumer.ftc.gov/

Changelog
Version 0.1.0-draft — 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0