Straddling Checkerboard
Encode and decode the straddling checkerboard, the monome-dinome cipher that converts letters into digits. The most common letters take a single digit and every other letter takes two, so the output fractionates the message into a compact digit stream that hides word boundaries. Choose a keyword to mix the board, pick the two row-indicator columns, switch between encode and decode, and watch the board fill and the digits form. Everything runs in your browser.
Keyword
Blank columns
These two column digits become the row indicators for the two-digit letters. The classic board uses columns 2 and 6.
Live checkerboard
Enter text above to see the straddling checkerboard result here.
How to use Straddling Checkerboard
- 1
Choose encode or decode
Pick Encode to turn letters into the digit stream, or Decode to turn a straddling checkerboard digit stream back into letters. The same board key is used either way.
- 2
Set the board key
Optionally type a keyword to mix the order of the letters, and choose the two blank columns that become the row indicators. The classic board uses no keyword and columns 2 and 6. The live board shows exactly where every letter lands.
- 3
Type or paste your text
Enter your message or your digits. The cipher runs automatically, encoding each letter as one or two digits, or reading the digit stream back into letters, with a card-by-card view of the working.
- 4
Read, copy, and share
Read the result, then copy it, download it as a text file, or share a link that reopens the tool with your exact keyword, blank columns, direction, and text. Everything stays in your browser.
Understanding the straddling checkerboard
What is the straddling checkerboard?
The straddling checkerboard is a substitution cipher that converts letters into numbers using a small grid. What makes it special is that the codes are not all the same length: the handful of most common letters are encoded with a single digit, while every other letter and symbol is encoded with two digits. Because some letters become one digit and others become two, the cipher is called a monome-dinome cipher, and the way the short and long codes interleave in the output is what gives it the name straddling.
This uneven coding is a clever trick. Giving the frequent letters such as E, T, A, O, N, R, I and S the shortest codes keeps the ciphertext compact, much like Morse code gives the common letters the shortest signals. At the same time the digit stream has no spaces and no fixed letter width, so the boundaries between letters are hidden. The straddling checkerboard is rarely used on its own; it is the first stage of stronger pencil-and-paper systems such as the Nihilist and VIC ciphers, where the digits are then enciphered further.
How the straddling checkerboard works
The board is a grid with the columns labelled 0 to 9. The top row holds the high-frequency letters, but two of its cells are left blank. The digits over those two blank columns become row indicators: each one labels a second row underneath the grid. A letter sitting in the top row is encoded by the single digit of its column. A letter sitting in one of the lower rows is encoded by two digits, first the row-indicator digit and then the column digit.
Encoding is then a direct lookup. Walk through the plaintext one letter at a time, find each letter on the board, and write down its one-digit or two-digit code. Spaces and punctuation are dropped and the letters are folded to a single case, so the result is a pure stream of digits with nothing to mark where one letter ends and the next begins. Decoding reverses the reading: scan the digits from left to right, and whenever you meet one of the two row-indicator digits, read it together with the next digit as a two-digit code; otherwise the single digit stands on its own. Because the row indicators never appear as a stand-alone letter, this reading is always unambiguous.
Worked example
Take the classic board with the top row reading E, T, A, O, N, R, I, S across the non-blank columns and the two blank columns at 2 and 6. The first lower row is labelled by indicator 2 and holds B, C, D, F, G, H, J, K, L, M; the second lower row is labelled by indicator 6 and holds P, Q, the slash, U, V, W, X, Y, Z and the full stop. So E is 0, T is 1, A is 3, and C, sitting in the indicator-2 row at column 1, is 21.
Now encipher the message ATTACK AT DAWN. Reading letter by letter gives A is 3, T is 1, T is 1, A is 3, C is 21, K is 27, A is 3, T is 1, D is 22, A is 3, W is 65, N is 5. Joining those codes with no separators produces the ciphertext 3113212731223655. To decode, scan those digits from the left: 3 is not a row indicator so it is A, then 1 is T, 1 is T, 3 is A, then a 2 starts a pair so 21 is C, 27 is K, and so on, rebuilding ATTACKATDAWN. The spaces are gone because only letters are encoded, which is exactly how the digit stream conceals the word boundaries.
The keyword and the blank columns
Two choices define the board and act as the key. The first is a keyword that mixes the order of the letters: the distinct letters of the keyword are written into the board first, and then the remaining letters and symbols follow in their normal order. A board built from a shared keyword scrambles which letter gets which code, so two correspondents who agree on the keyword produce the same board while an outsider does not. With no keyword the board fills in its natural order, which reproduces the textbook example above.
The second choice is which two columns are left blank in the top row. Those two column digits become the row indicators for the two lower rows, and changing them changes every two-digit code. This tool lets you set both: type a keyword to mix the board and choose any two different column digits from 0 to 9 as the blanks. The live board updates instantly so you can see exactly where every letter lands, and the same keyword and columns are required to decode, so they travel inside the share link rather than in the visible text.
The VIC cipher and Cold War history
The straddling checkerboard is best known as the heart of the VIC cipher, one of the most sophisticated hand ciphers ever fielded. It is named after Reino Hayhanen, a Soviet agent with the codename VICTOR who operated in the United States in the 1950s. He used a straddling checkerboard to turn his messages into digits, then layered on further numerical steps driven by a secret key derived from a date, a phrase, and a personal number, producing ciphertext that resisted analysis for years.
The system came to light through the famous hollow nickel case. A hollowed-out five-cent coin containing a microfilmed string of digits surfaced in New York, and the FBI could not break the message until Hayhanen defected in 1957 and explained the method. The episode showed both how strong a well-designed pencil-and-paper cipher could be and how the straddling checkerboard served as the foundation that compressed the plaintext before the harder enciphering stages were applied.
How strong is the straddling checkerboard?
On its own the straddling checkerboard is a simple substitution and is not secure. Each letter always maps to the same one or two digits, so the underlying letter frequencies survive into the digit stream. An analyst who suspects a checkerboard can look for the two digits that are unusually common as leading digits, identify them as the row indicators, split the stream into single and double codes, and then solve the result like an ordinary substitution puzzle. A keyword changes the arrangement but does not hide these statistics.
Its real value is as a building block. Converting text to a compact, variable-length digit stream is the ideal first stage for systems that then add transposition or modular addition, because the fractionation spreads each letter's information through the message and removes the helpful word gaps. That is precisely how the Nihilist and VIC ciphers use it: the checkerboard compresses and disguises, and a later stage supplies the cryptographic strength.
Is the straddling checkerboard secure?
No. By modern standards the straddling checkerboard offers no protection for sensitive information. It is a reversible encoding plus a simple substitution, and anyone who recognises the digit pattern can recover the text with pencil and paper. It is wonderful for learning how fractionation and variable-length codes work, and for puzzles, escape rooms, and capture-the-flag challenges, but it should never guard anything that matters.
Use this tool to explore the mechanism, to build and solve checkerboard puzzles, and to see how a Cold War spy cipher began its work. For protecting real data, rely on modern, well-tested algorithms such as AES instead. Everything here runs locally in your browser, so you can experiment freely without anything you type leaving your device.
Frequently asked questions
What is the straddling checkerboard?
Why are some letters one digit and others two?
How do I read a straddling checkerboard message?
Can you show a straddling checkerboard example?
What is the keyword for?
What are the blank columns?
Is the straddling checkerboard the same as the VIC cipher?
What is the VIC cipher and the hollow nickel case?
Does the cipher keep spaces and punctuation?
How do I decode a straddling checkerboard?
Is the straddling checkerboard secure?
Is my text uploaded to a server?
Related tools
Keep going with these handy tools