Tool for encrypting, decrypting and visualizing the semaphore alphabet with interactive table of positions, management of letter/number modes and preview of arm signals.
Flag Semaphore - dCode
Tag(s) : Communication System, Symbol Substitution
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The semaphore alphabet is a standardized visual communication code using two flags held at arm's length, whose angular positions represent characters.
It was developed and standardized by navies in the 19th century to transmit messages over long distances between ships or between a ship and the mainland, and it remains recognized as an international convention.
Semaphore encoding uses two flags (often the red and yellow Oscar flag, though this is not mandatory) manipulated by a person standing with outstretched arms to maximize the readability of the angles.
Each letter A–Z corresponds to a combination of arm positions.
| 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 | ![]() | ||||
| dCode.fr | |||||||
Example: 'FLAG' translates to .png)
.png)
.png)
(front view)
The numbers 1234567890 are encoded using first the Numbers signal (toggle signal), then the letters A through K, which serve as values from 1 to 0; to return to the letters, the user emits the Letters signal.
There are 5 special flags:
which signals a pause, a space, a rest, sometimes the end of the message
which indicates a switch from letters to digits
(=J) that indicates a switch from digits to letters
which indicates an error or danger (âš )
which indicates an annulation (ignore/disregard previous signal) (đź—™)
Reference figures are always presented in receive mode: the user sending must imagine the character seen from behind.
The deciphering process involves comparing the pair of observed angles with the standardized semaphore correspondence table to identify the associated letter.
Be sure to take into account the special signals (Numbers, Letters, Error, Cancel, Space) which modify the interpretation of the following characters.
A semaphore message is identified by a person holding two elongated objects (flags, sticks, lamps) with outstretched arms, oriented at multiples of 45° from the vertical: (0, 45, 90, 135, 180, 225, 270, 315, 360).
Any visual reference to a maritime or nautical context (boats, ships), an aerial context (airplanes, aircraft), scouting, or to places where flags are used constitutes a further clue.
Sometimes the figure and the flags are simplified or removed to focus on the angles; in this case, the symbols resemble clock hands.
A visual variation involves representing arm positions with clock hands (sometimes called a clock semaphore), where each hand acts as a flag set to hours, half-hours, or quarter-hours.
Some games or puzzles use flags with only two positions to encode Morse code; this is no longer semaphore but a principle similar to wig-wag (binary dot/dash signaling).
The International Code of Signals (CISM) uses colored flags different from semaphore: they encode standardized words or messages, not letters by arm positions.
The semaphore alphabet is limited by visibility (fog, rain, backlighting, night), the distance between transmitter and receiver, and the physical fatigue of the user, who must maintain precise positions.
The data rate remains moderate (a few characters per second at most), making the transmission of very long messages less efficient than radio communication.
A trained operator can transmit approximately 6 to 12 characters per minute depending on the distance, visibility, and complexity of the message.
Before radio, chains of human semaphores were sometimes used during naval exercises to relay a message over several kilometers, with each operator visually reproducing the received signal.
Learning requires memorizing the table of positions and then practicing regularly. The user can practice in front of a mirror, work with a partner alternating sending and receiving, or use a specialized guide presenting combinations and progressive exercises here (affiliate link)
Despite the widespread use of wireless communications, the semaphore remains employed in specific contexts: naval training, ceremonies, cadet and scout exercises, emergency situations where radio is unavailable, or discreet short-range communications.
The two-flag semaphore system spread to navies in the mid-19th century (around the 1860s), mainly from British work, inspired by earlier Chappe-type optical telegraphs.
dCode retains ownership of the "Flag Semaphore" source code. Any algorithm for the "Flag Semaphore" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Flag Semaphore" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Flag Semaphore" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Flag Semaphore" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Flag Semaphore on dCode.fr [online website], retrieved on 2026-03-25,