Tool to decrypt/encrypt with the international maritime/navy signal flags/code automatically to communicate with ships.
Navy Signals Code - 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 International Code of Signals is a standardized system of visual communication used in maritime navigation to transmit messages between ships or between a ship and the shore. It relies primarily on nautical flags, also known as signal flags.
The system allows communication even in the event of radio failure, language barriers, or poor electronic reception.
The International Code of Signals can be used as a substitution cipher: each flag represents a letter of the alphabet or a number from 0 to 9.
| 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' is coded .png)
.png)
.png)
.png)
The digits have a different shaped flag:
| 0 | ![]() | 1 | ![]() | 2 | ![]() | 3 | ![]() | 4 | ![]() |
| 5 | ![]() | 6 | ![]() | 7 | ![]() | 8 | ![]() | 9 | ![]() |
Each ship/boat only carries one set of flags, so if a letter is repeated, it cannot be coded. To deal with this eventuality, there are 4 substitution/repetition flags.
repeat the first flag
repeat the second flag
repeat the third flag
repeats the fourth flag (not used in the official version of the International code)
Decoding Maritime Signals involves associating each flag with its corresponding letter or number.
Repeater flags are an exception: they replace a repetition of a previous flag in the same group.
Some groups of flags also have a predefined, complete meaning (an instruction, an emergency, or weather information)
The ciphered message is made of flags (squared) in basic colors: blue, white, yellow, red, black (no green and no compound colors) offering a large contrast.
Flags used in the navy, do not necessarily mean a distress signal, they can handle a radio problem and help ship navigation.
All references to the navy, naval forces (Royal Navy, US Navy etc.) and boats, lighthouses or distress situation (use of flare, buoy, whistle) in general are clues.
The main system used today is the International Code of Signals, adopted worldwide for civil and military navigation.
NATO uses 10 other flags (square format) to encode digits.
| 0 | ![]() | 1 | ![]() | 2 | ![]() | 3 | ![]() | 4 | ![]() |
|---|---|---|---|---|---|---|---|---|---|
| 5 | ![]() | 6 | ![]() | 7 | ![]() | 8 | ![]() | 9 | ![]() |
| dCode.fr | |||||||||
The Maritime Signal Code allows ships to communicate quickly and in a standardized way, even when radio communications are impossible or disrupted.
Because the flags are visual and internationally standardized, the system remains understandable regardless of the crew's language.
dCode retains ownership of the "Navy Signals Code" source code. Any algorithm for the "Navy Signals Code" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Navy Signals Code" 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 "Navy Signals Code" 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 "Navy Signals Code" 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: Navy Signals Code on dCode.fr [online website], retrieved on 2026-06-02,