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 Maritime Signals is a visual communication system used in maritime navigation to transmit messages at a distance between ships or between a ship and the coast. It is made up of a set of flags (pavilions/semaphores) each having a meaning.
The International Maritime Signal Code can be used as a mono-alphabetic substitution cipher, each nautical 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
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)
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.
NATO uses 10 other flags (square format) to encode digits.
0 | ![]() | 1 | ![]() | 2 | ![]() | 3 | ![]() | 4 | ![]() |
---|---|---|---|---|---|---|---|---|---|
5 | ![]() | 6 | ![]() | 7 | ![]() | 8 | ![]() | 9 | ![]() |
dCode.fr |
The International Maritime Signals Flags system is used to facilitate communication between ships, especially when they are at a distance or when they cannot use radio or other electronic means of communication. It is used to transmit messages such as warnings, requests for help, navigation instructions, etc.
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 like Creative Commons). 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.
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 2025-04-16,