Reference

MMSI numbers and country codes (MID)

The nine-digit MMSI is the number every AIS message is signed with. Three of its digits tell you which country issued it, which is where the flag beside a vessel’s name on this site comes from. Below: how the number is put together, the ranges that are not ships at all, and a searchable table of all 292 country codes we recognise.

Last reviewed

What an MMSI is

MMSI stands for Maritime Mobile Service Identity. It identifies a radio station — in practice, a ship’s radio installation — to automated systems: digital selective calling on marine radios, and AIS. The format is set internationally by the International Telecommunication Union (ITU); the numbers themselves are issued by each country’s radio licensing authority.

Every AIS message begins with the sender’s MMSI. A tracker has nothing else to go on: when a position report arrives, the MMSI is the only thing that says which ship it came from. The name, IMO number and everything else arrive separately and are matched up by MMSI.

An MMSI belongs to a ship only for as long as she is registered where it was issued. When a ship changes flag she normally gets a new one — which is the main reason to prefer the IMO number for following a ship over years.

How a ship’s MMSI is built

A ship MMSI issued by New Zealand. The first three digits are the Maritime Identification Digits (MID).

The first three digits are the MID, Maritime Identification Digits, allocated to countries and territories by the ITU. MIDs run from 201 to 775, so a genuine ship MMSI always starts with a digit from 2 to 7. The first digit broadly follows geography:

MIDsMostlyIn our table
201–279Europe74
301–379North and Central America and the Caribbean58
401–478Asia43
501–578Oceania and South-East Asia41
601–679Africa62
701–775South America14

It is a tendency, not a rule — Morocco’s MID is 242, in the European block — so look the number up rather than guessing from the first digit.

One MID covers a limited block of numbers, so registries with many ships hold several. In our table Panama has 12, Malta has 5 and United States has 5. Different MIDs of the same country mean nothing about the ship; they are just successive blocks.

How VesselTrack gets a flag from an MMSI

AIS has no field for the flag. The flag and country shown on the map, on vessel pages and in search results are worked out from the MID: we take the first three digits of the MMSI and look them up in the table at the bottom of this page.

That is nearly always the ship’s flag of registry, but keep the mechanics in mind:

  • It is the issuing administration. Some territories have their own MID. Where our table files a territory under its parent country — “Azores (Portugal)”, “Alaska (USA)” — the parent’s flag is shown.
  • It changes when the MMSI changes. A reflagged ship appears under a new MMSI. If she broadcasts the same IMO number, her vessel page address stays the same.
  • A wrong MMSI gives a wrong flag. A transponder programmed with the wrong number shows the wrong country, or none.
  • No match, no flag. If the first three digits are not a MID we know, no flag is shown. We do not guess.

The Flag filter on the map uses the same lookup, as does the flag parameter of the API, which accepts a MID, a two-letter country code or a country name.

Numbers that are not ships

The same nine-digit space is used for other kinds of station, and for a few kinds of device that are not strictly MMSIs at all. They are told apart by their leading digits. Below, MID stands for the three country digits and X for any digit.

FormatStation
MIDXXXXXXShip. The ordinary case. The first three digits are the MID of the administration that has jurisdiction over the ship station, so a ship MMSI starts with a digit from 2 to 7.
0MIDXXXXXGroup of ships. One leading zero. A shared identity used to call several ships at once, for example a company fleet. Not a vessel.
00MIDXXXXCoast station. Two leading zeros. Coast radio stations, harbour and pilot stations, and shore AIS base stations.
111MIDXXXSearch-and-rescue aircraft. Aircraft that take part in search and rescue. Administrations may use the seventh digit to tell fixed-wing aircraft from helicopters.
8MIDXXXXXHandheld VHF radio. A portable VHF radio with digital selective calling and its own satellite-navigation receiver.
98MIDXXXXCraft associated with a parent ship. Lifeboats, rescue boats, tenders and similar craft that belong to a ship.
99MIDXXXXAid to navigation. A buoy, beacon or lighthouse that transmits AIS — including “virtual” aids that exist only as a broadcast.
970XXXXXXAIS search-and-rescue transmitter (AIS-SART). A survival-craft locating beacon. Not tied to a country.
972XXXXXXMan-overboard device. A personal beacon that starts transmitting when someone goes into the water.
974XXXXXXEmergency beacon with AIS (EPIRB-AIS). The AIS locating signal of an emergency position-indicating radio beacon.

MMSIs that are simply wrong

The number is typed into the transponder by a person, and not always correctly. The US Coast Guard lists the usual offenders: placeholder values such as 111111111 and 123456789, and national registration numbers entered where the MMSI should be.

Because the MMSI is the only key, two vessels broadcasting the same number are indistinguishable to any receiver. They appear as a single vessel that leaps back and forth between two positions. On a track we draw such leaps as dashed lines rather than as a voyage at impossible speed.

MID country code table

All 292 MIDs VesselTrack recognises, as used to choose a vessel’s flag. Type a MID, a country, a two-letter country code — or paste a whole MMSI, and it is matched on its first three digits.

292 MIDs

MIDCountry or territoryISO
201AlbaniaAL
202AndorraAD
203AustriaAT
204Azores (Portugal)PT
205BelgiumBE
206BelarusBY
207BulgariaBG
208Vatican CityVA
209CyprusCY
210CyprusCY
211GermanyDE
212CyprusCY
213GeorgiaGE
214MoldovaMD
215MaltaMT
216ArmeniaAM
218GermanyDE
219DenmarkDK
220DenmarkDK
224SpainES
225SpainES
226FranceFR
227FranceFR
228FranceFR
229MaltaMT
230FinlandFI
231Faroe IslandsFO
232United KingdomGB
233United KingdomGB
234United KingdomGB
235United KingdomGB
236GibraltarGI
237GreeceGR
238CroatiaHR
239GreeceGR
240GreeceGR
241GreeceGR
242MoroccoMA
243HungaryHU
244NetherlandsNL
245NetherlandsNL
246NetherlandsNL
247ItalyIT
248MaltaMT
249MaltaMT
250IrelandIE
251IcelandIS
252LiechtensteinLI
253LuxembourgLU
254MonacoMC
255Madeira (Portugal)PT
256MaltaMT
257NorwayNO
258NorwayNO
259NorwayNO
261PolandPL
262MontenegroME
263PortugalPT
264RomaniaRO
265SwedenSE
266SwedenSE
267Slovak RepublicSK
268San MarinoSM
269SwitzerlandCH
270Czech RepublicCZ
271TurkeyTR
272UkraineUA
273RussiaRU
274North MacedoniaMK
275LatviaLV
276EstoniaEE
277LithuaniaLT
278SloveniaSI
279SerbiaRS
301AnguillaAI
303Alaska (USA)US
304Antigua and BarbudaAG
305Antigua and BarbudaAG
306Curaçao, Sint Maarten & Caribbean NetherlandsCW
307ArubaAW
308BahamasBS
309BahamasBS
310BermudaBM
311BahamasBS
312BelizeBZ
314BarbadosBB
316CanadaCA
319Cayman IslandsKY
321Costa RicaCR
323CubaCU
325DominicaDM
327Dominican RepublicDO
329GuadeloupeGP
330GrenadaGD
331GreenlandGL
332GuatemalaGT
334HondurasHN
336HaitiHT
338United StatesUS
339JamaicaJM
341Saint Kitts and NevisKN
343Saint LuciaLC
345MexicoMX
347MartiniqueMQ
348MontserratMS
350NicaraguaNI
351PanamaPA
352PanamaPA
353PanamaPA
354PanamaPA
355PanamaPA
356PanamaPA
357PanamaPA
358Puerto RicoPR
359El SalvadorSV
361Saint Pierre and MiquelonPM
362Trinidad and TobagoTT
364Turks and Caicos IslandsTC
366United StatesUS
367United StatesUS
368United StatesUS
369United StatesUS
370PanamaPA
371PanamaPA
372PanamaPA
373PanamaPA
374PanamaPA
375Saint Vincent and the GrenadinesVC
376Saint Vincent and the GrenadinesVC
377Saint Vincent and the GrenadinesVC
378British Virgin IslandsVG
379US Virgin IslandsVI
401AfghanistanAF
403Saudi ArabiaSA
405BangladeshBD
408BahrainBH
410BhutanBT
412ChinaCN
413ChinaCN
414ChinaCN
416TaiwanTW
417Sri LankaLK
419IndiaIN
422IranIR
423AzerbaijanAZ
425IraqIQ
428IsraelIL
431JapanJP
432JapanJP
434TurkmenistanTM
436KazakhstanKZ
437UzbekistanUZ
438JordanJO
440South KoreaKR
441South KoreaKR
443State of PalestinePS
445North KoreaKP
447KuwaitKW
450LebanonLB
451KyrgyzstanKG
453MacaoMO
455MaldivesMV
457MongoliaMN
459NepalNP
461OmanOM
463PakistanPK
466QatarQA
468SyriaSY
470United Arab EmiratesAE
471United Arab EmiratesAE
472TajikistanTJ
473YemenYE
475YemenYE
477Hong KongHK
478Bosnia and HerzegovinaBA
501Adelie Land (France)TF
503AustraliaAU
506MyanmarMM
508BruneiBN
510MicronesiaFM
511PalauPW
512New ZealandNZ
514CambodiaKH
515CambodiaKH
516Christmas IslandCX
518Cook IslandsCK
520FijiFJ
523Cocos (Keeling) IslandsCC
525IndonesiaID
529KiribatiKI
531LaosLA
533MalaysiaMY
536Northern Mariana IslandsMP
538Marshall IslandsMH
540New CaledoniaNC
542NiueNU
544NauruNR
546French PolynesiaPF
548PhilippinesPH
550Timor-LesteTL
553Papua New GuineaPG
555Pitcairn IslandPN
557Solomon IslandsSB
559American SamoaAS
561SamoaWS
563SingaporeSG
564SingaporeSG
565SingaporeSG
566SingaporeSG
567ThailandTH
570TongaTO
572TuvaluTV
574VietnamVN
576VanuatuVU
577VanuatuVU
578Wallis and FutunaWF
601South AfricaZA
603AngolaAO
605AlgeriaDZ
607Saint Paul and Amsterdam IslandsTF
608Ascension IslandSH
609BurundiBI
610BeninBJ
611BotswanaBW
612Central African RepublicCF
613CameroonCM
615CongoCG
616ComorosKM
617Cabo VerdeCV
618Crozet ArchipelagoTF
619Côte d'IvoireCI
620ComorosKM
621DjiboutiDJ
622EgyptEG
624EthiopiaET
625EritreaER
626GabonGA
627GhanaGH
629GambiaGM
630Guinea-BissauGW
631Equatorial GuineaGQ
632GuineaGN
633Burkina FasoBF
634KenyaKE
635Kerguelen IslandsTF
636LiberiaLR
637LiberiaLR
638South SudanSS
642LibyaLY
644LesothoLS
645MauritiusMU
647MadagascarMG
649MaliML
650MozambiqueMZ
654MauritaniaMR
655MalawiMW
656NigerNE
657NigeriaNG
659NamibiaNA
660RéunionRE
661RwandaRW
662SudanSD
663SenegalSN
664SeychellesSC
665Saint HelenaSH
666SomaliaSO
667Sierra LeoneSL
668São Tomé and PríncipeST
669EswatiniSZ
670ChadTD
671TogoTG
672TunisiaTN
674TanzaniaTZ
675UgandaUG
676Democratic Republic of the CongoCD
677TanzaniaTZ
678ZambiaZM
679ZimbabweZW
701ArgentinaAR
710BrazilBR
720BoliviaBO
725ChileCL
730ColombiaCO
735EcuadorEC
740Falkland IslandsFK
745French GuianaGF
750GuyanaGY
755ParaguayPY
760PeruPE
765SurinameSR
770UruguayUY
775VenezuelaVE

Country names are the short forms used on this site, not the ITU’s formal names, and the “ISO” column is the code that decides which flag is drawn. We compared this table with the ITU’s Table of Maritime Identification Digits when this page was last reviewed. The ITU table is the authority.

Sources

Statements about AIS and maritime standards on this page were checked against the following. Statements about what VesselTrack does describe the software as it runs today.

Found a mistake? Email support@vesseltrack.net or see how to contact us. Corrections are made on this page and the review date is updated.