Kryptos K4: The ‘W’ as a Separator

Split at Its Five W’s, K4 Falls Into Two Groups With One Frequency Shape

Jim Sanborn carved four coded messages onto his Kryptos sculpture in 1990. Three of them were deciphered in the 1990s, while the fourth, K4, remains unsolved. Sanborn has since revealed where to find a compass direction and a clock in it—did you notice which letter sits immediately before the direction and immediately after the clock?

  • EASTNORTHEAST occupies positions 22 to 34.
  • BERLINCLOCK occupies positions 64 to 74.

Sanborn released these clues separately, starting in 2010. Elonka Dunin keeps a chronology, including the 2020 announcement of NORTHEAST.

The K4 ciphertext, 97 capital letters on four lines aligned on the right as on the sculpture, with the position of the first and last letter of each line: OBKR (1 to 4), UOXOGHULBSOLIFBBWFLRVQQPRNGKSSO (5 to 35), TWTQSJQSSEKZZWATJKLUDIAWINFBNYP (36 to 66), VTTMZFPKWGDKZXTJCDIGKUHUAUEKCAR (67 to 97). A vertical label on the right reads positions in the text.The K4 ciphertext, 97 capital letters on four lines aligned on the right as on the sculpture, with the position of the first and last letter of each line: OBKR (1 to 4), UOXOGHULBSOLIFBBWFLRVQQPRNGKSSO (5 to 35), TWTQSJQSSEKZZWATJKLUDIAWINFBNYP (36 to 66), VTTMZFPKWGDKZXTJCDIGKUHUAUEKCAR (67 to 97). A vertical label on the right reads positions in the text.

K4 as it appears on the sculpture. There are 97 letters.

The Signs of a Segmentation and Recombination Technique

Try cutting the message at every W.

  • The five W’s divide K4 into six segments. A segment is simply the run of letters between two cuts, or between a cut and the end of the text. My guess is that each one contains whole words.

The K4 ciphertext with its five letters W in red. Numbered brackets under the letters between them mark the six segments in reading order, from 1, OBKRUOXOGHULBSOLIFBB, to 6, GDKZXTJCDIGKUHUAUEKCAR.The K4 ciphertext with its five letters W in red. Numbered brackets under the letters between them mark the six segments in reading order, from 1, OBKRUOXOGHULBSOLIFBB, to 6, GDKZXTJCDIGKUHUAUEKCAR.

  • In 2024, I assumed the W’s were added when the pieces were joined, leaving at most 92 letters for the message. [(Update November 28, 2026) If each W stands for a stop, the 92 letters and the five stops would account for all 97 positions. In an October 2024 discussion of this article, a reader suggested that the W’s might stand for X’s used as stops.]
  • Each segment belongs to either of two groups (Group A and Group B).

Two bands of three segments each, 46 letters per group. Group A, in violet: OBKRUOXOGHULBSOLIFBB, TQSJQSSEKZZ, INFBNYPVTTMZFPK (segments 1, 3, 5); Group B, in teal: FLRVQQPRNGKSSOT, ATJKLUDIA, GDKZXTJCDIGKUHUAUEKCAR (segments 2, 4, 6).Two bands of three segments each, 46 letters per group. Group A, in violet: OBKRUOXOGHULBSOLIFBB, TQSJQSSEKZZ, INFBNYPVTTMZFPK (segments 1, 3, 5); Group B, in teal: FLRVQQPRNGKSSOT, ATJKLUDIA, GDKZXTJCDIGKUHUAUEKCAR (segments 2, 4, 6).

  • The groups appear alternately in the ciphertext: A|B|A|B|A|B.

The K4 ciphertext with each segment colored by its group, Group A in violet and Group B in teal, and each W in red. The brackets under the segments read A, B, A, B, A, B.The K4 ciphertext with each segment colored by its group, Group A in violet and Group B in teal, and each W in red. The brackets under the segments read A, B, A, B, A, B. [(Update November 28, 2026) The third W stands at the exact center of K4: it is letter 49 of 97, with 48 letters before it and 48 after it. In the interactive figure, choose Central W to see it.]

  • The groups have identical letter frequency distribution shapes for different letters. In each group,
    • 1 letter appears 5 times,
    • 2 letters appear 4 times each,
    • 4 letters appear 3 times each,
    • 6 letters appear 2 times each, and
    • 9 letters appear 1 time each.

Two bar charts of letter counts on the same scale, one above the other, sorted from most to least frequent: Group A (B 5; O, S 4; K, F, T, Z 3; six letters at 2; nine at 1) and Group B (K 5; A, U 4; R, G, T, D 3; six letters at 2; nine at 1). Brackets under both mark the shared tiers: 1 letter at 5, 2 at 4, 4 at 3, 6 at 2, 9 at 1.Two bar charts of letter counts on the same scale, one above the other, sorted from most to least frequent: Group A (B 5; O, S 4; K, F, T, Z 3; six letters at 2; nine at 1) and Group B (K 5; A, U 4; R, G, T, D 3; six letters at 2; nine at 1). Brackets under both mark the shared tiers: 1 letter at 5, 2 at 4, 4 at 3, 6 at 2, 9 at 1.

How could these two groups arise? I can see two ways to combine segmentation and encryption.1 Both assume that the cipher keeps word positions intact rather than transposing the whole text.

  1. Encipher the message (a), split it into two groups of segments (b), adjust the counts in the groups (c) and join the segments with W’s (d).
  2. Split the message first (a), then encipher each group separately (b). The counts could be adjusted during that step or afterwards (c). Join the segments as before (d).

Two paths from the plaintext: in hypothesis 1, it is enciphered with one cipher (a), then split into segments in two alternating groups (b); in hypothesis 2, it is split into the two groups (a), then each group is enciphered with its own cipher (b), possibly in the same step as c. Both then adjust the letter frequencies of each group (c) and join the segments with W (d), giving K4.Two paths from the plaintext: in hypothesis 1, it is enciphered with one cipher (a), then split into segments in two alternating groups (b); in hypothesis 2, it is split into the two groups (a), then each group is enciphered with its own cipher (b), possibly in the same step as c. Both then adjust the letter frequencies of each group (c) and join the segments with W (d), giving K4.

My Approach

While studying Enigma (hypothesizing it would help solve K4), I learned that separators represented punctuation marks as the machine only supported alphabetic characters. For instance, the doublet “YY” represented a dot. The same manual also lists “X = Full stop (end of sentence)”, which is the hypothesis of the 2026 sequel. These separators were used for plaintext because of a technical constraint. I pondered if this technique could have been replicated in ciphertext to misdirect analysts. (Such separators are delimiters, an idea I later explored in a series of articles.)

I wrote K4nundrum to try each letter as a separator. Here is K4 in one line, if you want to try the split yourself.

OBKRUOXOGHULBSOLIFBBWFLRVQQPRNGKSSOTWTQSJQSSEKZZWATJKLUDIAWINFBNYPVTTMZFPKWGDKZXTJCDIGKUHUAUEKCAR

The K4nundrum logo: a heavy K4 monogram whose 4 ends in a small red square, like a stop, beside the name K4nundrum and the line A toolkit for Kryptos K4.The K4nundrum logo: a heavy K4 monogram whose 4 ends in a small red square, like a stop, beside the name K4nundrum and the line A toolkit for Kryptos K4.

K4nundrum, the open-source tool behind these measurements.

For each separator from A to Z, the program rearranges the segments and tries grouping them, from two groups up to one per segment. Then it counts the letters in each group. With W, the match is right there in the original order. Take segments 1, 3 and 5 for one group and 2, 4 and 6 for the other.

An Intentional Pattern?

How often would the same search find a match in 97 letters drawn at random? I added a simulation (--sim) to K4nundrum to try it. Of 1,031,972 random strings, 17,961 (1.74%) could be split into groups with matching counts. Three details narrow the comparison with K4.

First, the simulator tends to produce groups containing tiny segments (1 or 2 characters long). For instance, and typically:

> GKUCPFTQBJCKSEVMFWRLWKPEKCZHFFYNPLZZINWAFVKZEMJNRCAUYHUMITLKEZKQGZKBG
PIRRPUGKVSMHXASUIYPVJBZKFUKX

  Group 1:           BGPIRRPUG FU G PE QGZ UCPFTQBJC X ZEMJNRCAUYHUMITL
  Letter Freq.:      U:5 G:4 P:4 R:3 C:3 E:2 B:2 I:2 F:2 Z:2 M:2 J:2 
                     T:2 Q:2 H:1 L:1 X:1 N:1 Y:1 A:1

  Group 2:           CZHFFYNPLZZINWAFV EZ SEVMFWRLW VSMHXASUIYPVJBZ
  Letter Freq.:      Z:5 V:4 F:4 W:3 S:3 H:2 E:2 P:2 L:2 M:2 N:2 Y:2 
                     I:2 A:2 J:1 X:1 R:1 U:1 C:1 B:1

The random string, split at its separator K, produces segments such as ‘EZ’ or ‘G’ in this example.

If I assume that segments represent sequences of whole words, it is implausible that the creator of a ciphertext would use small segments. They would also needlessly complicate the encryption process. When the simulator excludes tiny segments (fewer than three characters), ~0.6% of the pseudo-K4 passages can be split into appropriately sized groups with identical distribution shapes.

Second, K4’s groups alternate. This additional constraint is even more rarely visible in the segments generated by the simulator: ~0.07% of the pseudo-K4s alternate. When all these constraints are considered (identical letter frequency distribution shapes, appropriately sized segments, and alternating groups), only ~0.044% of the generated strings are similar to K4. In this random-string model, that is about one generated string in 2,250. It does not estimate how many real ciphertexts Sanborn would have needed to create: the simulator does not model his unknown encryption method or design process.

Third, when I align the cribs with K4, the plaintext words are immediately adjacent to a W. In other words, when mapped to the ciphertext, their first or last letter is directly next to a W: they start or end a segment. This observation could support the idea of segments representing sequences of whole words.

The K4 ciphertext colored by group, with the known plaintext written under its letters. EASTNORTHEAST (positions 22 to 34) starts right after a W, at the start of a Group B segment; BERLINCLOCK (positions 64 to 74) ends right before a W, at the end of a Group A segment.The K4 ciphertext colored by group, with the known plaintext written under its letters. EASTNORTHEAST (positions 22 to 34) starts right after a W, at the start of a Group B segment; BERLINCLOCK (positions 64 to 74) ends right before a W, at the end of a Group A segment.

If my guess about whole words is right, the second segment has room for a little more than the direction itself: for instance, the 15 letters could read “… east-northeast of …”. Interestingly, Sanborn revealed words belonging to two different groups; I wonder whether that choice was itself a clue.

I chose these comparisons after observing K4. The figures tell me how often the same features turn up in random strings; whether Sanborn put them there on purpose remains an open question.

A Technique to Mask Letter Frequencies

Fabricating Letter Frequencies

Why would Sanborn use such a technique?

A reader who counts all 97 letters at once mixes three things together. Take K, the most common letter in K4: of its eight occurrences, three are in Group A and five in Group B. Change the counts in either group and the overall count changes with them, while the five W’s also get counted—whether they were added to join the segments or already belonged to the message.

Stacked bar chart of the letter counts of K4, each bar split between Group A (violet, below) and Group B (teal, above): K reaches 8, 3 in Group A and 5 in Group B; S, T and U reach 6. W, in red, belongs to no group and appears 5 times.Stacked bar chart of the letter counts of K4, each bar split between Group A (violet, below) and Group B (teal, above): K reaches 8, 3 in Group A and 5 in Group B; S, T and U reach 6. W, in red, belongs to no group and appears 5 times.

If Sanborn did adjust the counts, I do not know how he did it. It is, however, important not to assume that identical distribution shapes necessarily mean that the deciphered segments of Group A contain the same letters as the ones of Group B (which would be very unlikely for a natural language). On the one hand, this mechanism could have been applied to encrypted segments (second-order encoding). On the other hand, intentional spelling errors, similar to other passages like UNDERGRUUND (K2) or DESPARATLY (K3), could have been introduced to slightly modify the letter frequencies. With this simple technique, one letter’s occurrences are decremented while another’s are incremented. For example, IQLUSION (K1) decrements the Ls while incrementing the Qs. Similarly, superfluous letters could have been introduced in the style of XCANYOUSEEANYTHINGQ (K3).

Illustration: Let’s Encrypt Alice

Could I build a cipher that reproduces the same pattern?

Let’s say I want to encrypt this passage from Alice’s Adventures in Wonderland:

“You promised to tell me your history, you know,” said Alice.

The first step is to transform the sentence by removing the punctuation marks and the spaces and by capitalizing the letters:

The sentence You promised to tell me your history, you know, said Alice, turned into capitals without spaces or punctuation: YOUPROMISEDTOTELLMEYOURHISTORYYOUKNOWSAIDALICE, 46 letters.The sentence You promised to tell me your history, you know, said Alice, turned into capitals without spaces or punctuation: YOUPROMISEDTOTELLMEYOURHISTORYYOUKNOWSAIDALICE, 46 letters.

Then, the sentence is divided into six segments, assigned alternately to two groups. Last, the letter frequencies of the respective groups are computed.

The six segments YOUPROMISEDTO, TELLME, YOUR, HISTORY, YOUKNOW, SAIDALICE, dealt in turn to Group 1 and Group 2. Bar charts of their letter counts on a scale of 0 to 6: Group 1 peaks at 6 for O, Group 2 at 3 for E, L and I.The six segments YOUPROMISEDTO, TELLME, YOUR, HISTORY, YOUKNOW, SAIDALICE, dealt in turn to Group 1 and Group 2. Bar charts of their letter counts on a scale of 0 to 6: Group 1 peaks at 6 for O, Group 2 at 3 for E, L and I.

The distributions are dissimilar. I want to reduce this difference. To that end, I encode the first group using standard Vigenère (obviously, I could have used a different cipher) and try several keys to improve the situation. The key SECRET quickly emerges as a good candidate (“YOUPROMISEDTO YOUR YOUKNOW” becomes “QSWGVHEMUVHMG CQLV RGYMESP”):

Group 1, after Vigenère with the key SECRET, reads QSWGVHEMUVHMG CQLV RGYMESP; Group 2 is unchanged, TELLME HISTORY SAIDALICE. Bar charts on the same scale: three letters at 3, four at 2 and seven at 1 for Group 1; three at 3, three at 2 and seven at 1 for Group 2.Group 1, after Vigenère with the key SECRET, reads QSWGVHEMUVHMG CQLV RGYMESP; Group 2 is unchanged, TELLME HISTORY SAIDALICE. Bar charts on the same scale: three letters at 3, four at 2 and seven at 1 for Group 1; three at 3, three at 2 and seven at 1 for Group 2.

The letter frequency distribution shapes are now similar but have yet to be identical. I need to adjust the second group to make them match. In this case, it is just a matter of adding letters (as the second group is shorter than the first). “TELLME HISTORY SAIDALICE” becomes “YTELLME HISTORY SAIDALICEX”. The original plaintext segments remain intelligible.

Group 2 extended to YTELLME HISTORY SAIDALICEX, the added Y and X underlined and drawn dashed in its chart, beside the unchanged QSWGVHEMUVHMG CQLV RGYMESP. Both charts now show three letters at 3, four at 2 and seven at 1.Group 2 extended to YTELLME HISTORY SAIDALICEX, the added Y and X underlined and drawn dashed in its chart, beside the unchanged QSWGVHEMUVHMG CQLV RGYMESP. Both charts now show three letters at 3, four at 2 and seven at 1.

I obfuscate the second group for demonstration by merely applying a trivial ROT13 cipher, which preserves the distribution shapes (“YTELLME HISTORY SAIDALICEX” becomes “LGRYYZR UVFGBEL FNVQNYVPRK”).

Group 2 after ROT13, LGRYYZR UVFGBEL FNVQNYVPRK, beside the unchanged QSWGVHEMUVHMG CQLV RGYMESP. The two bar charts have the same outline for different letters: three letters at 3, four at 2 and seven at 1.Group 2 after ROT13, LGRYYZR UVFGBEL FNVQNYVPRK, beside the unchanged QSWGVHEMUVHMG CQLV RGYMESP. The two bar charts have the same outline for different letters: three letters at 3, four at 2 and seven at 1.

The shapes of the distributions are identical. The last step is to identify a letter not present in the ciphertext segments (‘X’, for instance) and recombine the segments by alternating them:

The six segments joined in one line, alternating between Group 1 and Group 2, with a red X between them: QSWGVHEMUVHMG X LGRYYZR X CQLV X UVFGBEL X RGYMESP X FNVQNYVPRK.The six segments joined in one line, alternating between Group 1 and Group 2, with a red X between them: QSWGVHEMUVHMG X LGRYYZR X CQLV X UVFGBEL X RGYMESP X FNVQNYVPRK.

The outcome is a ciphertext that resists frequency analysis of the text as a whole, because of the fabricated letter frequency.

The final ciphertext, QSWGVHEMUVHMGXLGRYYZRXCQLVXUVFGBELXRGYMESPXFNVQNYVPRK, with its five X in red, above a bar chart of its letter counts: V 6; G and the separator X, in red, 5; R and Y 4; down to five letters at 1.The final ciphertext, QSWGVHEMUVHMGXLGRYYZRXCQLVXUVFGBELXRGYMESPXFNVQNYVPRK, with its five X in red, above a bar chart of its letter counts: V 6; G and the separator X, in red, 5; R and Y 4; down to five letters at 1.

Importantly, this example demonstrates that the two plaintext groups are not required to contain the same letters. Also, the separator that combines the segments is one of the most frequent letters in the ciphertext, even though it is the odd one out.

Your Turn

The same steps work on any sentence. Type one of your own and choose a key: the figure splits it into six segments, enciphers Group 1, adds the letters each group lacks, and joins the segments with a letter that neither group uses. Another key changes how many letters must be added.

On the web page, a figure here lets you put a sentence of your own through these steps.

Conclusion

Once the technique is known, the separator is identified, and the correct groups are determined, deciphering this kind of code is a matter of understanding how each group has been “encoded” before attacking it with classic cryptanalysis methods.

This is the path I would like to follow to crack K4.


  1. For simplicity, in this article, I interchangeably use “encryption”, “encipherment”, and “encoding” to convey the idea of transforming the plaintext to the ciphertext (and vice versa, using their antonyms). ↩︎