Dancing Men Cipher Decoder & Translator

πŸ•΅οΈ A Sherlock Holmes tool β€” The consulting detective himself

In one of the most famous cases, Holmes cracked a code of capering stick figures β€” each dancer a letter, a flag in the hand marking the end of a word. Write your own dancing men messages, decode with the dancing keyboard, and explore the other great ciphers of the detective age β€” including a Caesar cracker that breaks codes by letter frequency, the same trick Holmes used β€” all instantly, in your browser.

  • βœ… Free
  • πŸ”“ No sign-up
  • 🌐 Runs in your browser

Dancing men translator

Type to encode. Click the dancers to decode. The flag marks the last letter of each word, as in the story.

The dancing men alphabet chart (A–Z)

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z

Conan Doyle's messages use only eighteen letters, so the story never shows a figure for F, J, K, Q, U, W, X or Z. This chart is our complete A–Z set: each letter is one arm pose combined with one leg pose. A flag in the dancer's hand ends the word.

Need Caesar, Vigenère or Atbash too, or the frequency cracker? Open the full Cipher Bureau →

What it does

πŸ’ƒ

The dancing men themselves

Original stick-figure glyphs with the story's word-ending flag β€” and yes, they dance on hover.

πŸ”¨

A working code cracker

Paste unknown Caesar ciphertext and watch frequency analysis rank every shift by Englishness.

πŸ—οΈ

The classic set

Caesar, Vigenère, and Atbash, live-encoding as you type on aged paper.

How to use it

  1. 1

    Type a message and watch the dancers form ranks.

  2. 2

    Send it to a friend; give them the alphabet chart β€” or don't.

  3. 3

    Crack their reply with the frequency tool.

The Adventure of the Dancing Men

The dancing men cipher comes from "The Adventure of the Dancing Men", first published in The Strand Magazine in December 1903 and collected in The Return of Sherlock Holmes. Hilton Cubitt of Riding Thorpe Manor in Norfolk brings Holmes a page of childish stick figures that someone keeps chalking on his doors and leaving on his sundial. His American wife, Elsie, is terrified by them and will not say why.

To everyone else the figures look like a child's game. Holmes sees at once that they are a code, a simple substitution cipher in which every little man stands for one letter of the alphabet.

How Holmes cracked the code

Holmes, who says he has written a monograph analysing 160 separate ciphers, starts with letter frequency. E is the most common letter in English, so the most common figure must be E. Some figures hold a flag, and he realises the flag marks the last letter of a word, which splits the messages into words.

A one-word reply that reads _E_E_ is most likely NEVER, an answer to a request. A five-letter word that begins and ends with E, repeated in the appeals, must be the wife's name, ELSIE. With those letters in hand the rest falls out: AM HERE ABE SLANEY, AT ELRIGES, COME ELSIE, and the final threat, ELSIE PREPARE TO MEET THY GOD.

Holmes then turns the cipher on its author. He writes his own message in dancing men, COME HERE AT ONCE, knowing that only the man who invented the code can read it, and it brings the culprit straight into the hands of the police.

How to read and write the dancing men

Each stick figure is one letter, and the same letter is always drawn the same way. A figure holding a flag ends a word, so you don't need gaps between words. Anything that isn't a letter, like numbers or punctuation, stays as it is.

To decode an unknown dancing men message without the key, do what Holmes did: count the figures. The most common is probably E, then T, A, O and N. Short flagged words are often THE, AND or A, and repeated patterns give away names. Once you have a few letters, the rest fall into place like a crossword.

Everything here is pure client-side code β€” no AI, no account. The Bureau asks only for a message worth hiding.

Frequently asked questions

What is the dancing men cipher?

It is the stick-figure (stickman) substitution cipher from Arthur Conan Doyle's 1903 Sherlock Holmes story "The Adventure of the Dancing Men". Each little dancing figure stands for one letter, and a figure holding a flag marks the end of a word.

How do I decode a dancing men message?

Click the Decode tab above and click each figure in order; the translator spells the message out. Without a key, use frequency analysis as Holmes did: the most common figure is usually E, and flagged figures end words.

What do the flags mean in the dancing men code?

A flag in a dancer's hand shows that the letter is the last one in its word. That is how Holmes split the messages into words, and it is why Holmes could read a single flagged word shaped _E_E_ as NEVER.

What did the dancing men messages say in the story?

The messages read AM HERE ABE SLANEY, AT ELRIGES, COME ELSIE, NEVER (Elsie's reply) and ELSIE PREPARE TO MEET THY GOD. Holmes's own message, COME HERE AT ONCE, lures the writer into a trap.

Is there a dancing man for every letter?

Not in the story. Its messages use only eighteen letters, so Conan Doyle never drew F, J, K, Q, U, W, X or Z. The chart on this page gives a complete A–Z set so you can write any message.

Is the dancing men cipher hard to break?

No. It is a simple substitution cipher, so a long enough message gives itself away through letter frequency. That is the point of the story: Holmes breaks it with patience and a little statistics.

πŸš€ Launch Dancing Men Cipher Bureau