T

Text Machine

Powerful text tools, in your browser

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.

Board key (keyword and blank columns)

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

0
1
2
3
4
5
6
7
8
9
E
T
A
O
N
R
I
S
2
B
C
D
F
G
H
J
K
L
M
6
P
Q
/
U
V
W
X
Y
Z
.
Plaintext
Digits

Enter text above to see the straddling checkerboard result here.

How to use Straddling Checkerboard

  1. 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. 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. 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. 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?
The straddling checkerboard is a substitution cipher that turns letters into digits using a small grid. The most common letters are encoded as a single digit and all other letters as two digits, which makes it a monome-dinome cipher. It compresses the message and hides word boundaries, and it forms the first stage of the Nihilist and VIC ciphers.
Why are some letters one digit and others two?
The top row of the board holds the high-frequency letters such as E, T, A, O, N, R, I and S, and each is encoded by the single digit of its column. Two columns in that row are left blank, and their digits act as row indicators for two lower rows that hold the remaining letters, which therefore need two digits. Giving the common letters the shortest codes keeps the output compact.
How do I read a straddling checkerboard message?
Scan the digits from left to right. Whenever you meet one of the two row-indicator digits, read it together with the next digit as a two-digit code for a letter in a lower row. Any other digit is a single-digit code for a top-row letter. Because the indicators never stand alone as letters, this reading is always unambiguous.
Can you show a straddling checkerboard example?
Using the classic board with E, T, A, O, N, R, I, S on top and blank columns 2 and 6, the message ATTACK AT DAWN encodes to 3113212731223655. Decoding those digits with the same board returns ATTACKATDAWN. The spaces disappear because only letters are encoded.
What is the keyword for?
The keyword mixes the order of the letters on the board. Its distinct letters are placed first and the rest of the alphabet follows, so the same letter no longer gets the same code as the plain board. Two people who share the keyword build the same board, while someone without it does not. With no keyword the board fills in its natural order.
What are the blank columns?
The blank columns are the two top-row cells that are left empty. Their column digits become the row indicators that label the two lower rows, so every two-digit code begins with one of them. Changing the blank columns changes all the two-digit codes. The classic board leaves columns 2 and 6 blank, but you can choose any two different columns from 0 to 9.
Is the straddling checkerboard the same as the VIC cipher?
No. The straddling checkerboard is one component of the VIC cipher, not the whole thing. The VIC cipher first converts the message to digits with a checkerboard and then applies further numerical enciphering driven by a secret key. The checkerboard supplies the fractionation, and the later stages supply most of the strength.
What is the VIC cipher and the hollow nickel case?
The VIC cipher was a Soviet hand cipher used by the agent Reino Hayhanen, codename VICTOR, in 1950s America, with a straddling checkerboard at its core. It became famous through the hollow nickel case, in which a hollowed-out coin held a microfilmed message of digits that the FBI could not break until Hayhanen defected in 1957 and revealed the method.
Does the cipher keep spaces and punctuation?
No. When encoding, only the letters are converted; spaces, punctuation, digits, and other symbols are dropped, and letters are folded to a single case. That is deliberate, because removing the gaps between words is part of how the digit stream conceals the structure of the message. Decoding therefore returns the letters with no spaces.
How do I decode a straddling checkerboard?
Switch the tool to Decode, set the same keyword and blank columns the message was encoded with, and paste the digit stream. The tool reads the digits left to right, taking two digits after a row indicator and one otherwise, and rebuilds the letters. If a digit cannot be matched to the board it is shown as a question mark.
Is the straddling checkerboard secure?
No. On its own it is a simple substitution, so the letter frequencies survive into the digits and it can be solved by hand. Its purpose is to be a strong building block for bigger ciphers, not a secure cipher by itself. For protecting real information, use a modern algorithm such as AES instead.
Is my text uploaded to a server?
No. All encoding and decoding happen entirely in your browser, so your text, keyword, and blank columns are never uploaded, logged, or stored. Even a share link keeps your data in the part of the URL after the hash, which browsers never send to a server, so it stays private until you choose to share it.

Related tools

Keep going with these handy tools

Caesar Cipher

Vigenère Cipher

Atbash Cipher

Rail Fence Cipher

Playfair Cipher

Affine Cipher