The Dancing Men cipher comes from Arthur Conan Doyle’s Sherlock Holmes tale The Adventure of the Dancing Men, in which a series of stick-figure drawings turns out to be a hidden message. Because the original figures are hand-drawn art, this tool uses a consistent Unicode stand-in: a fixed, reversible glyph for each letter, plus a flag marker for word ends. Everything runs in your browser.
How it works
Each of the 26 letters maps to one distinct glyph. The mapping is one-to-one and fixed, so encoding then decoding always round-trips back to the original text. As in the story, the last figure of each word carries a flag — here represented by an appended flag marker — so spaces are preserved through the cipher.
Decoding simply reverses the lookup: strip any flag marker, find the letter whose glyph matches, and rebuild the words. Characters with no mapping (digits, punctuation) pass through unchanged.
Tips and example
Holmes cracked the real cipher with frequency analysis — the single most common figure was almost certainly the letter E, and short, frequently repeated figure groups suggested common short words. The same logic applies to any simple substitution cipher.
To try it, type a phrase and switch to Encode; you will get a row of figures with flags at word ends. Paste those figures back with Decode selected to recover the text. This is a puzzle and storytelling tool, not real encryption — a substitution cipher offers no protection against analysis.