Spaces:
Running
Running
Download app.bundle.js from Ghongha007/id-decoder: direct link, hf CLI and curl.
- Browser
- Download file 151 kB
-
https://huggingface.co/spaces/Ghongha007/id-decoder/resolve/main/app.bundle.js
- Command line
-
hf download hf://spaces/Ghongha007/id-decoder/app.bundle.js
-
curl -L -o app.bundle.js https://huggingface.co/spaces/Ghongha007/id-decoder/resolve/main/app.bundle.js
151 kB
| // Generated by tools/build_bundle.py from decoder.js, app.js and data/. Do not edit by hand. | |
| (function () { | |
| ; | |
| const ID_DATA = {"mid.json":{"source":"https://www.itu.int/gladapp/Allocation/MIDs","source_page":"https://www.itu.int/en/ITU-R/terrestrial/fmd/Pages/mid.aspx","source_title":"ITU, Table of Maritime Identification Digits","retrieved":"2026-11-26","note":"Obtained directly from the official ITU table. The ITU page mid.aspx embeds the table from the ITU GLAD application (https://www.itu.int/gladapp/Allocation/MIDs); that HTML table was downloaded with curl (browser-style headers, single requests spaced several seconds apart) and parsed. Country/area names are exactly as ITU writes them. The ITU table lists only allocated MIDs; it contains no rows labelled reserved or unallocated, so 'unallocated_in_201_775' is derived as the numbers 201-775 absent from the table. MID 306 is listed three times by ITU (Bonaire/Sint Eustatius/Saba, Curaçao, Sint Maarten); in 'mids' those names are joined with '; ' and also given separately in 'shared_mids'. Many administrations hold several MIDs (e.g. United States 338, 366-369).","cross_check":{"source":"https://en.wikipedia.org/w/index.php?title=Maritime_identification_digits&action=raw","retrieved":"2026-11-26","result":"All 292 MID codes match exactly (no code in one list missing from the other). All 292 code-to-country pairs agree; the only differences are naming style (e.g. ITU 'Republic of Naoero' vs Wikipedia 'Nauru', 'Republic of Türkiye' vs 'Turkey'). 25 randomly sampled entries were also compared by hand: 218, 243, 246, 258, 259, 271, 348, 361, 369, 374, 434, 436, 466, 503, 525, 531, 555, 565, 566, 616, 634, 649, 676, 701, 775 - all agree. Note: Wikipedia cites the ITU table, so it is a second publisher, not fully independent data."},"mid_count":292,"mids":{"201":"Albania (Republic of)","202":"Andorra (Principality of)","203":"Austria","204":"Portugal - Azores","205":"Belgium","206":"Belarus (Republic of)","207":"Bulgaria (Republic of)","208":"Vatican City State","209":"Cyprus (Republic of)","210":"Cyprus (Republic of)","211":"Germany (Federal Republic of)","212":"Cyprus (Republic of)","213":"Georgia","214":"Moldova (Republic of)","215":"Malta","216":"Armenia (Republic of)","218":"Germany (Federal Republic of)","219":"Denmark","220":"Denmark","224":"Spain","225":"Spain","226":"France","227":"France","228":"France","229":"Malta","230":"Finland","231":"Denmark - Faroe Islands","232":"United Kingdom of Great Britain and Northern Ireland","233":"United Kingdom of Great Britain and Northern Ireland","234":"United Kingdom of Great Britain and Northern Ireland","235":"United Kingdom of Great Britain and Northern Ireland","236":"United Kingdom of Great Britain and Northern Ireland - Gibraltar","237":"Greece","238":"Croatia (Republic of)","239":"Greece","240":"Greece","241":"Greece","242":"Morocco (Kingdom of)","243":"Hungary","244":"Netherlands (Kingdom of the)","245":"Netherlands (Kingdom of the)","246":"Netherlands (Kingdom of the)","247":"Italy","248":"Malta","249":"Malta","250":"Ireland","251":"Iceland","252":"Liechtenstein (Principality of)","253":"Luxembourg","254":"Monaco (Principality of)","255":"Portugal - Madeira","256":"Malta","257":"Norway","258":"Norway","259":"Norway","261":"Poland (Republic of)","262":"Montenegro","263":"Portugal","264":"Romania","265":"Sweden","266":"Sweden","267":"Slovak Republic","268":"San Marino (Republic of)","269":"Switzerland (Confederation of)","270":"Czech Republic","271":"Republic of Türkiye","272":"Ukraine","273":"Russian Federation","274":"North Macedonia (Republic of)","275":"Latvia (Republic of)","276":"Estonia (Republic of)","277":"Lithuania (Republic of)","278":"Slovenia (Republic of)","279":"Serbia (Republic of)","301":"United Kingdom of Great Britain and Northern Ireland - Anguilla","303":"United States of America - Alaska (State of)","304":"Antigua and Barbuda","305":"Antigua and Barbuda","306":"Netherlands (Kingdom of the) - Bonaire, Sint Eustatius and Saba; Netherlands (Kingdom of the) - Curaçao; Netherlands (Kingdom of the) - Sint Maarten (Dutch part)","307":"Netherlands (Kingdom of the) - Aruba","308":"Bahamas (Commonwealth of the)","309":"Bahamas (Commonwealth of the)","310":"United Kingdom of Great Britain and Northern Ireland - Bermuda","311":"Bahamas (Commonwealth of the)","312":"Belize","314":"Barbados","316":"Canada","319":"United Kingdom of Great Britain and Northern Ireland - Cayman Islands","321":"Costa Rica","323":"Cuba","325":"Dominica (Commonwealth of)","327":"Dominican Republic","329":"France - Guadeloupe (French Department of)","330":"Grenada","331":"Denmark - Greenland","332":"Guatemala (Republic of)","334":"Honduras (Republic of)","336":"Haiti (Republic of)","338":"United States of America","339":"Jamaica","341":"Saint Kitts and Nevis (Federation of)","343":"Saint Lucia","345":"Mexico","347":"France - Martinique (French Department of)","348":"United Kingdom of Great Britain and Northern Ireland - Montserrat","350":"Nicaragua","351":"Panama (Republic of)","352":"Panama (Republic of)","353":"Panama (Republic of)","354":"Panama (Republic of)","355":"Panama (Republic of)","356":"Panama (Republic of)","357":"Panama (Republic of)","358":"United States of America - Puerto Rico","359":"El Salvador (Republic of)","361":"France - Saint Pierre and Miquelon (Territorial Collectivity of)","362":"Trinidad and Tobago","364":"United Kingdom of Great Britain and Northern Ireland - Turks and Caicos Islands","366":"United States of America","367":"United States of America","368":"United States of America","369":"United States of America","370":"Panama (Republic of)","371":"Panama (Republic of)","372":"Panama (Republic of)","373":"Panama (Republic of)","374":"Panama (Republic of)","375":"Saint Vincent and the Grenadines","376":"Saint Vincent and the Grenadines","377":"Saint Vincent and the Grenadines","378":"United Kingdom of Great Britain and Northern Ireland - British Virgin Islands","379":"United States of America - United States Virgin Islands","401":"Afghanistan","403":"Saudi Arabia (Kingdom of)","405":"Bangladesh (People's Republic of)","408":"Bahrain (Kingdom of)","410":"Bhutan (Kingdom of)","412":"China (People's Republic of)","413":"China (People's Republic of)","414":"China (People's Republic of)","416":"China (People's Republic of) - Taiwan (Province of China)","417":"Sri Lanka (Democratic Socialist Republic of)","419":"India (Republic of)","422":"Iran (Islamic Republic of)","423":"Azerbaijan (Republic of)","425":"Iraq (Republic of)","428":"Israel (State of)","431":"Japan","432":"Japan","434":"Turkmenistan","436":"Kazakhstan (Republic of)","437":"Uzbekistan (Republic of)","438":"Jordan (Hashemite Kingdom of)","440":"Korea (Republic of)","441":"Korea (Republic of)","443":"State of Palestine (In accordance with Resolution 99 Rev. Dubai, 2018)","445":"Democratic People's Republic of Korea","447":"Kuwait (State of)","450":"Lebanon","451":"Kyrgyz Republic","453":"China (People's Republic of) - Macao (Special Administrative Region of China)","455":"Maldives (Republic of)","457":"Mongolia","459":"Nepal (Federal Democratic Republic of)","461":"Oman (Sultanate of)","463":"Pakistan (Islamic Republic of)","466":"Qatar (State of)","468":"Syrian Arab Republic","470":"United Arab Emirates","471":"United Arab Emirates","472":"Tajikistan (Republic of)","473":"Yemen (Republic of)","475":"Yemen (Republic of)","477":"China (People's Republic of) - Hong Kong (Special Administrative Region of China)","478":"Bosnia and Herzegovina","501":"France - Adelie Land","503":"Australia","506":"Myanmar (Union of)","508":"Brunei Darussalam","510":"Micronesia (Federated States of)","511":"Palau (Republic of)","512":"New Zealand","514":"Cambodia (Kingdom of)","515":"Cambodia (Kingdom of)","516":"Australia - Christmas Island (Indian Ocean)","518":"New Zealand - Cook Islands","520":"Fiji (Republic of)","523":"Australia - Cocos (Keeling) Islands","525":"Indonesia (Republic of)","529":"Kiribati (Republic of)","531":"Lao People's Democratic Republic","533":"Malaysia","536":"United States of America - Northern Mariana Islands (Commonwealth of the)","538":"Marshall Islands (Republic of the)","540":"France - New Caledonia","542":"New Zealand - Niue","544":"Republic of Naoero","546":"France - French Polynesia","548":"Philippines (Republic of the)","550":"Timor-Leste (Democratic Republic of)","553":"Papua New Guinea","555":"United Kingdom of Great Britain and Northern Ireland - Pitcairn Island","557":"Solomon Islands","559":"United States of America - American Samoa","561":"Samoa (Independent State of)","563":"Singapore (Republic of)","564":"Singapore (Republic of)","565":"Singapore (Republic of)","566":"Singapore (Republic of)","567":"Thailand","570":"Tonga (Kingdom of)","572":"Tuvalu","574":"Viet Nam (Socialist Republic of)","576":"Vanuatu (Republic of)","577":"Vanuatu (Republic of)","578":"France - Wallis and Futuna Islands","601":"South Africa (Republic of)","603":"Angola (Republic of)","605":"Algeria (People's Democratic Republic of)","607":"France - Saint Paul and Amsterdam Islands","608":"United Kingdom of Great Britain and Northern Ireland - Ascension Island","609":"Burundi (Republic of)","610":"Benin (Republic of)","611":"Botswana (Republic of)","612":"Central African Republic","613":"Cameroon (Republic of)","615":"Congo (Republic of the)","616":"Comoros (Union of the)","617":"Cabo Verde (Republic of)","618":"France - Crozet Archipelago","619":"Côte d'Ivoire (Republic of)","620":"Comoros (Union of the)","621":"Djibouti (Republic of)","622":"Egypt (Arab Republic of)","624":"Ethiopia (Federal Democratic Republic of)","625":"Eritrea","626":"Gabonese Republic","627":"Ghana","629":"Gambia (Republic of the)","630":"Guinea-Bissau (Republic of)","631":"Equatorial Guinea (Republic of)","632":"Guinea (Republic of)","633":"Burkina Faso","634":"Kenya (Republic of)","635":"France - Kerguelen Islands","636":"Liberia (Republic of)","637":"Liberia (Republic of)","638":"South Sudan (Republic of)","642":"Libya (State of)","644":"Lesotho (Kingdom of)","645":"Mauritius (Republic of)","647":"Madagascar (Republic of)","649":"Mali (Republic of)","650":"Mozambique (Republic of)","654":"Mauritania (Islamic Republic of)","655":"Malawi","656":"Niger (Republic of the)","657":"Nigeria (Federal Republic of)","659":"Namibia (Republic of)","660":"France - Reunion (French Department of)","661":"Rwanda (Republic of)","662":"Sudan (Republic of the)","663":"Senegal (Republic of)","664":"Seychelles (Republic of)","665":"United Kingdom of Great Britain and Northern Ireland - Saint Helena","666":"Somalia (Federal Republic of)","667":"Sierra Leone","668":"Sao Tome and Principe (Democratic Republic of)","669":"Eswatini (Kingdom of)","670":"Chad (Republic of)","671":"Togolese Republic","672":"Tunisia","674":"Tanzania (United Republic of)","675":"Uganda (Republic of)","676":"Democratic Republic of the Congo","677":"Tanzania (United Republic of)","678":"Zambia (Republic of)","679":"Zimbabwe (Republic of)","701":"Argentine Republic","710":"Brazil (Federative Republic of)","720":"Bolivia (Plurinational State of)","725":"Chile","730":"Colombia (Republic of)","735":"Ecuador","740":"United Kingdom of Great Britain and Northern Ireland - Falkland Islands (Malvinas)","745":"France - Guiana (French Department of)","750":"Guyana","755":"Paraguay (Republic of)","760":"Peru","765":"Suriname (Republic of)","770":"Uruguay (Eastern Republic of)","775":"Venezuela (Bolivarian Republic of)"},"shared_mids":{"306":["Netherlands (Kingdom of the) - Bonaire, Sint Eustatius and Saba","Netherlands (Kingdom of the) - Curaçao","Netherlands (Kingdom of the) - Sint Maarten (Dutch part)"]},"unallocated_in_201_775":["217","221","222","223","260","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","302","313","315","317","318","320","322","324","326","328","333","335","337","340","342","344","346","349","360","363","365","380","381","382","383","384","385","386","387","388","389","390","391","392","393","394","395","396","397","398","399","400","402","404","406","407","409","411","415","418","420","421","424","426","427","429","430","433","435","439","442","444","446","448","449","452","454","456","458","460","462","464","465","467","469","474","476","479","480","481","482","483","484","485","486","487","488","489","490","491","492","493","494","495","496","497","498","499","500","502","504","505","507","509","513","517","519","521","522","524","526","527","528","530","532","534","535","537","539","541","543","545","547","549","551","552","554","556","558","560","562","568","569","571","573","575","579","580","581","582","583","584","585","586","587","588","589","590","591","592","593","594","595","596","597","598","599","600","602","604","606","614","623","628","639","640","641","643","646","648","651","652","653","658","673","680","681","682","683","684","685","686","687","688","689","690","691","692","693","694","695","696","697","698","699","700","702","703","704","705","706","707","708","709","711","712","713","714","715","716","717","718","719","721","722","723","724","726","727","728","729","731","732","733","734","736","737","738","739","741","742","743","744","746","747","748","749","751","752","753","754","756","757","758","759","761","762","763","764","766","767","768","769","771","772","773","774"]},"mmsi_rules.json":{"source":"https://www.itu.int/rec/R-REC-M.585-10-202604-I/en","source_document":"https://www.itu.int/dms_pubrec/itu-r/rec/m/R-REC-M.585-10-202604-I!!MSW-E.docx","source_title":"Recommendation ITU-R M.585-10 (04/2026), Assignment and use of identities in the maritime mobile service","version":"M.585-10","version_status":"Approved 2026-04-16; listed by ITU as 'In force (Main)'. Supersedes M.585-9 (05/2022).","retrieved":"2026-11-26","mid_position_convention":"Zero-based [start, end) slice of the 9-digit string, i.e. mmsi[start:end] is the MID. null = format carries no MID.","general":["All maritime identities are 9 digits (M.585-10, considering b-d).","Annex 1 identities (ship, group ship, coast, group coast, SAR aircraft, AtoN, craft associated with a parent ship) are MMSI. Annex 2 identities (handheld VHF DSC/GNSS, AIS-SART, MOB, EPIRB-AIS, AMRD Group B) are 'not necessarily unique and are not MMSI assignments' (considering f).","In DSC (Rec. ITU-R M.493) the 9-digit identity is sent as a 10-digit address, normally with a 0 appended (recommends 3). AIS uses the 9-digit identity per Rec. ITU-R M.1371 (recommends 4).","Suggested decoding order to avoid prefix clashes: 000000000, 00, 0, 111, 970/972/974/979, 98, 99, 8, then ship (first digit 2-7)."],"formats":[{"pattern":"MIDXXXXXX","prefix":"","type":"ship station","mid_position":[0,3],"reference":"Annex 1, Section 1 §1","note":"MID = administration with jurisdiction over the ship station (flag). First digit 2-7 for allocated MIDs (201-775)."},{"pattern":"0MIDXXXXX","prefix":"0","type":"group ship station call identity","mid_position":[1,4],"reference":"Annex 1, Section 1 §4","note":"Calls several ships at once. MID = territory/area of the administration assigning the group identity; the fleet may include other flags. Note: 0 + MID + five X (not four)."},{"pattern":"00MIDXXXX","prefix":"00","type":"coast station (and other land stations: harbour, pilot, AIS base/repeater, system identities)","mid_position":[2,5],"reference":"Annex 1, Section 2 §1-4","note":"Must be on land or an island. Optional sixth-digit scheme: 00MID1XXX coast station, 00MID2XXX port/harbour station, 00MID3XXX pilot station, 00MID4XXX AIS repeater, 00MID5XXX AIS base station (guidance only)."},{"pattern":"00MIDXXXX","prefix":"00","type":"group coast station call identity","mid_position":[2,5],"reference":"Annex 1, Section 2 §5-6","note":"Subset of coast station identities. 00MID0000 is reserved as the Group Coast Station Identity addressing all 00MIDXXXX stations of that administration; administrations may add others, e.g. 00MID1111."},{"pattern":"000000000","prefix":"000000000","type":"all coast stations identity (VHF)","mid_position":null,"reference":"Annex 1, Section 2 §8","note":"Reserved; addresses all VHF 00XXXXXXX coast stations. Not applicable to MF/HF coast stations."},{"pattern":"111MIDXXX","prefix":"111","type":"aircraft (SAR and other safety-related communications)","mid_position":[3,6],"reference":"Annex 1, Section 3","note":"999 aircraft per MID. Optional seventh digit: 111MID1XX fixed-wing, 111MID5XX helicopters. 111MID000 reserved as Group Aircraft Identity (all 111MIDXXX of that administration); e.g. 111MID111 may be added."},{"pattern":"99MIDXXXX","prefix":"99","type":"AIS aids to navigation (AtoN)","mid_position":[2,5],"reference":"Annex 1, Section 4","note":"Optional sixth digit: 99MID1XXX physical AIS AtoN, 99MID6XXX virtual AIS AtoN, 99MID8XXX mobile AtoN. Seventh digit may be used nationally (area/type). Also used by AMRD Group A identified as mobile AtoN (Annex 2 §5.1)."},{"pattern":"98MIDXXXX","prefix":"98","type":"craft associated with a parent ship","mid_position":[2,5],"reference":"Annex 1, Section 5","note":"Lifeboats, life-rafts, rescue boats and other craft of a parent ship, including devices such as EPIRBs carried on them; registered and linked to the parent ship's MMSI. Not for AIS-SART."},{"pattern":"8MIDXXXXX","prefix":"8","type":"handheld VHF transceiver with DSC and integral GNSS receiver","mid_position":[1,4],"reference":"Annex 2, Section 1","note":"Not an MMSI assignment. MID = administration assigning the identity. Optional fifth digit for national use. 100 000 identities per MID."},{"pattern":"970XXYYYY","prefix":"970","type":"AIS-SART (AIS search and rescue transmitter)","mid_position":null,"reference":"Annex 2, Section 2 §1","note":"Freeform identity, no MID. XX = manufacturer ID 01-99 (00 = testing); YYYY = sequence 0000-9999, restarts after 9999 so numbers repeat."},{"pattern":"972XXYYYY","prefix":"972","type":"MOB (man overboard) device, AMRD Group A","mid_position":null,"reference":"Annex 2, Section 2 §2 and §5.1","note":"Freeform identity, no MID. XX = manufacturer ID 01-99 (00 = testing); YYYY = sequence 0000-9999."},{"pattern":"974XXYYYY","prefix":"974","type":"EPIRB-AIS (AIS locating function of an EPIRB)","mid_position":null,"reference":"Annex 2, Section 2 §3","note":"Freeform identity, no MID. Identifies the EPIRB's locating function, not the ship's MMSI. XX = manufacturer ID 01-99 (00 = testing); YYYY = sequence 0000-9999."},{"pattern":"979YYYYYY","prefix":"979","type":"AMRD Group B (autonomous maritime radio device, AIS-based)","mid_position":null,"reference":"Annex 2, Section 2 §5.2","note":"New in recent versions. Y = pseudorandom number set by the manufacturer; duplicates are acceptable. M.585 calls 979 an 'MID' reserved for this use, but it denotes no country. Individual units are identified by extra data per Rec. ITU-R M.2135."},{"pattern":"97TXXMPPYYYY (12 characters)","prefix":"97","type":"12-character identity for AIS-SART / MOB / EPIRB-AIS (9-digit identity + MPP supplement)","mid_position":null,"reference":"Annex 2, Section 2 §4","note":"T = device type (0 AIS-SART, 2 MOB-AIS, 4 EPIRB-AIS); XX = manufacturer ID; M = alphanumeric supplementary manufacturer ID suffix; PP = alphanumeric supplementary sequence number prefix; YYYY = sequence. Transmitted per Rec. ITU-R M.1371. Not used by AMRD Group B."}],"suspicious":[{"sign":"Identity is not 9 digits","detail":"MMSI and other maritime identities have a 9-digit structure.","sources":["https://www.itu.int/rec/R-REC-M.585-10-202604-I/en"]},{"sign":"Ship MMSI does not start with 201-775","detail":"US Coast Guard NAVCEN: 'Ships transmitting with an MMSI not starting with the digits 201-775 are likely doing so improperly, and may be subject to FCC or USCG enforcement action.'","sources":["https://www.navcen.uscg.gov/node/33016"]},{"sign":"MID not allocated to any country","detail":"Oceana: a spoofing vessel 'can use a MID that does not match the estimated 290 country codes'. Lloyd's List (21 Aug 2025) reported sanctioned 'shadow fleet' tankers using MID 646, which is unallocated (646 is absent from the ITU table in mid.json).","sources":["https://usa.oceana.org/wp-content/uploads/sites/4/2023/07/AIS-Spoofing-Factsheet.pdf","https://www.lloydslist.com/LL1154597/Shadow-fleet-tankers-experiment-with-stateless-identification-numbers"]},{"sign":"Nonsensical placeholder sequence such as 123456789","detail":"Global Fishing Watch lists 'a simple, meaningless sequence such as 123456789' among the most frequent MMSI errors; Oceana cites it as a sign of identity spoofing.","sources":["https://globalfishingwatch.org/data/spoofing-one-identity-shared-by-multiple-vessels/","https://usa.oceana.org/wp-content/uploads/sites/4/2023/07/AIS-Spoofing-Factsheet.pdf"]},{"sign":"MID followed only by zeros (e.g. 412000000)","detail":"Global Fishing Watch: MMSIs with the three country digits 'followed by all zeros'; 'many Chinese vessels' broadcast 412000000. Oceana repeats this sign.","sources":["https://globalfishingwatch.org/data/spoofing-one-identity-shared-by-multiple-vessels/","https://usa.oceana.org/wp-content/uploads/sites/4/2023/07/AIS-Spoofing-Factsheet.pdf"]},{"sign":"Manufacturer default MMSI 1193046","detail":"Some ACR/Nauticast Class A AIS units transmit default MMSI 1193046 when none was entered or when the memory backup battery has run down. (1193046 is hex 0x123456 and only 7 digits long.)","sources":["https://www.navcen.uscg.gov/sites/default/files/pdf/AIS_Bulletins_ACR_NAUTICAST_Te.pdf"]},{"sign":"Same MMSI broadcast by several vessels at once (needs track data, not just the number)","detail":"Global Fishing Watch calls this spoofing: one MMSI shows a track that jumps back and forth at impossible speeds, or names and other details conflict over overlapping periods. Oceana describes the same check.","sources":["https://globalfishingwatch.org/data/spoofing-one-identity-shared-by-multiple-vessels/","https://usa.oceana.org/wp-content/uploads/sites/4/2023/07/AIS-Spoofing-Factsheet.pdf"]}],"caveats":["000000000 is NOT simply invalid under M.585-10: it is the reserved VHF 'all coast stations' identity (Annex 1, Section 2 §8). As a ship's own identity it does not fit any format. No reputable source stating it as a common placeholder was found, so it is not listed under 'suspicious'.","Annex 2 identities (970/972/974/979, 8MIDXXXXX) are not unique by design, so repeats there are not in themselves evidence of spoofing.","A valid-looking MMSI with an allocated MID can still be spoofed; format checks only catch malformed numbers."]},"callsign_series.json":{"source":"https://www.itu.int/en/ITU-R/terrestrial/fmd/Pages/call_sign_series.aspx","source_title":"Table of International Call Sign Series (Appendix 42 to the RR) - ITU-R Fixed and Mobile Services Division (online table served from https://www.itu.int/gladapp/Allocation/CallSigns)","retrieved":"2026-11-26","note":"Fetched directly from the ITU with curl (generic browser User-Agent). The ITU page embeds the live table from https://www.itu.int/gladapp/Allocation/CallSigns, which lists each allocation as a row of two-character blocks (e.g. 'AAA - AAZ', 'ABA - ABZ', ... 'ALA - ALZ' for one row). Each row was turned into one range from its first to its last block; all blocks within every row were checked to be contiguous. Country names are copied as the online table writes them. Check against the printed text: the resulting 308 distinct ranges match, range for range, Appendix 42 (Rev.WRC-19) in Radio Regulations, Edition of 2024, Vol. 2, pp. 791-797 (downloaded from https://www.itu.int/pub/R-REG-RR-2024, file R-REG-RR-2024-ZPF-E.zip). Only three names differ between the 2024 printed edition and the live table, and the live table's names are used: C2A-C2Z printed 'Nauru (Republic of)', online 'Republic of Naoero'; E4A-E4Z printed 'Palestinian Authority' (footnote 1: 'In response to Resolution 99 (Rev. Dubai, 2018) of the Plenipotentiary Conference. (WRC-23)'), online 'State of Palestine (In accordance with Resolution 99 Rev. Dubai, 2018)'; PJA-PJZ printed as one row 'Netherlands (Kingdom of the) - Curaçao, Sint Maarten (Dutch part), and the Netherlands Caribbean (WRC-19)', online as three rows (Bonaire, Sint Eustatius and Saba / Curaçao / Sint Maarten (Dutch part)), so PJA-PJZ appears three times here. The ITU 'Changes in Allocations since 18/02/2012' page (https://www.itu.int/gladapp/Allocation/RecentChanges) lists only two call-sign changes (E6A-E6Z New Zealand, Niue, 03/08/2012, Operational Bulletin 1011; Z8A-Z8Z South Sudan, 23/02/2012, OB 1000), both already in the table. Independent cross-check: 30 randomly chosen two-character prefixes (random seed 42) compared with the Wikipedia article 'ITU prefix' (https://en.wikipedia.org/wiki/ITU_prefix, wikitext via the MediaWiki API); all 30 agree on the holder. Wikipedia additionally shows BM-BQ and BU-BX as Taiwan; the ITU table allocates all of BAA-BZZ to China (People's Republic of), and only the ITU allocation is recorded here.","itu_notes":[{"text":"* Series allocated to an international organization.","applies_to":["C7A-C7Z World Meteorological Organization","4UA-4UZ United Nations","4YA-4YZ International Civil Aviation Organization"],"source":"RR 2024 Vol. 2, Appendix 42 (Rev.WRC-19), p. 797 (asterisk footnote)"},{"text":"For call sign series beginning with B, F, G, I, K, M, N, R, W and 2, only the first character is required for nationality identification. In the cases of half series (i.e. when the first two characters are allocated to more than one Member State), the first three characters are required for nationality identification. (WRC-03)","source":"RR 2024 Vol. 1, Article 19, footnote 19.50.1","half_series_in_table":["3DA-3DM / 3DN-3DZ","SSA-SSM / SSN-STZ"]},{"text":"Between radiocommunication conferences, the Secretary-General is authorized to deal with questions relating to changes in the allocation of series of call signs, on a provisional basis, and subject to confirmation by the following conference (see also No. 19.32).","source":"RR 2024 Vol. 1, Article 19, No. 19.33"},{"text":"Should the available call sign series in Appendix 42 be exhausted, new call sign series may be allocated according to the principles set out in Resolution 13 (Rev.WRC-97) relating to the formation of call signs and the allocation of new international series.","source":"RR 2024 Vol. 1, Article 19, No. 19.32"},{"text":"Neither the online table nor Appendix 42 contains a footnote naming unallocated series; the table simply lists allocated series. The 'unlisted_prefixes' field below is DERIVED (not ITU text): every two-character combination of the forms allowed by No. 19.50 (two letters, letter+digit, digit+letter) that does not appear in the table. Absence from the table means 'not allocated in the current table', nothing more. Note that letter+digit combinations under B, F, G, I, K, M, N, R, W (e.g. K1, G4) are unlisted in the table but footnote 19.50.1 says the first character alone identifies nationality for those series.","source":"derived from the table; see RR No. 19.50 and 19.50.1"}],"unlisted_prefixes":["QA","QB","QC","QD","QE","QF","QG","QH","QI","QJ","QK","QL","QM","QN","QO","QP","QQ","QR","QS","QT","QU","QV","QW","QX","QY","QZ","YZ","A0","A1","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","C0","C1","D0","D1","E0","E1","E8","E9","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","G0","G1","G2","G3","G4","G5","G6","G7","G8","G9","H0","H1","H5","I0","I1","I2","I3","I4","I5","I6","I7","I8","I9","J0","J1","J9","K0","K1","K2","K3","K4","K5","K6","K7","K8","K9","L0","L1","M0","M1","M2","M3","M4","M5","M6","M7","M8","M9","N0","N1","N2","N3","N4","N5","N6","N7","N8","N9","O0","O1","O2","O3","O4","O5","O6","O7","O8","O9","P0","P1","Q0","Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","R0","R1","R2","R3","R4","R5","R6","R7","R8","R9","S0","S1","S4","T0","T1","T9","U0","U1","U2","U3","U4","U5","U6","U7","U8","U9","V0","V1","V9","W0","W1","W2","W3","W4","W5","W6","W7","W8","W9","X0","X1","X2","X3","X4","X5","X6","X7","X8","X9","Y0","Y1","Z0","Z1","Z4","Z5","Z6","Z7","Z9","0A","0B","0C","0D","0E","0F","0G","0H","0I","0J","0K","0L","0M","0N","0O","0P","0Q","0R","0S","0T","0U","0V","0W","0X","0Y","0Z","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","4N"],"formation":{"source":"ITU Radio Regulations, Edition of 2024, Vol. 1, Article 19, Section III - Formation of call signs (Nos. 19.45-19.58), pp. 269-270; https://www.itu.int/pub/R-REG-RR-2024","general":["No. 19.45: the twenty-six letters of the alphabet, as well as digits in the cases specified, may be used to form call signs; accented letters are excluded.","No. 19.46-19.48: combinations that might be confused with distress or similar signals, and combinations in Recommendation ITU-R M.1172-0 reserved for abbreviations used in radiocommunication services, shall not be used as call signs.","No. 19.50: the first two characters shall be two letters, or a letter followed by a digit, or a digit followed by a letter. The first two characters, or in certain cases the first character, constitute the nationality identification (see footnote 19.50.1 in itu_notes)."],"ship_stations":{"rule":"No. 19.55 (§ 24)","forms":["two characters and two letters","two characters, two letters and one digit (other than the digits 0 or 1)","two characters (provided that the second is a letter) followed by four digits (other than the digits 0 or 1 in cases where they immediately follow a letter)","two characters and one letter followed by four digits (other than the digits 0 or 1 in cases where they immediately follow a letter) (WRC-07)"]},"aircraft_stations":{"rule":"No. 19.58 (§ 25)","forms":["two characters and three letters"]},"ship_survival_craft":{"rule":"No. 19.60 (§ 26)","forms":["the call sign of the parent ship followed by two digits (other than the digits 0 or 1 in cases where they immediately follow a letter)"]},"aircraft_survival_craft":{"rule":"No. 19.64 (§ 28)","forms":["the complete call sign of the parent aircraft (see No. 19.58), followed by a single digit other than 0 or 1"]},"land_and_fixed_stations":{"rule":"No. 19.52 (§ 23)","forms":["two characters and one letter","two characters and one letter followed by not more than three digits (other than the digits 0 and 1 in cases where they immediately follow a letter)"]},"caveat":"No. 19.31: it is not compulsory to assign international-series call signs to stations identified by maritime mobile service identities or otherwise easily identified. No. 19.28: each Member State may establish its own identification measures for stations used for national defence, though it shall use, as far as possible, call signs recognizable as such and containing the distinctive characters of its nationality."},"series":[{"from":"2AA","to":"2ZZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"3AA","to":"3AZ","country":"Monaco (Principality of)"},{"from":"3BA","to":"3BZ","country":"Mauritius (Republic of)"},{"from":"3CA","to":"3CZ","country":"Equatorial Guinea (Republic of)"},{"from":"3DA","to":"3DM","country":"Eswatini (Kingdom of)"},{"from":"3DN","to":"3DZ","country":"Fiji (Republic of)"},{"from":"3EA","to":"3FZ","country":"Panama (Republic of)"},{"from":"3GA","to":"3GZ","country":"Chile"},{"from":"3HA","to":"3UZ","country":"China (People's Republic of)"},{"from":"3VA","to":"3VZ","country":"Tunisia"},{"from":"3WA","to":"3WZ","country":"Viet Nam (Socialist Republic of)"},{"from":"3XA","to":"3XZ","country":"Guinea (Republic of)"},{"from":"3YA","to":"3YZ","country":"Norway"},{"from":"3ZA","to":"3ZZ","country":"Poland (Republic of)"},{"from":"4AA","to":"4CZ","country":"Mexico"},{"from":"4DA","to":"4IZ","country":"Philippines (Republic of the)"},{"from":"4JA","to":"4KZ","country":"Azerbaijan (Republic of)"},{"from":"4LA","to":"4LZ","country":"Georgia"},{"from":"4MA","to":"4MZ","country":"Venezuela (Bolivarian Republic of)"},{"from":"4OA","to":"4OZ","country":"Montenegro"},{"from":"4PA","to":"4SZ","country":"Sri Lanka (Democratic Socialist Republic of)"},{"from":"4TA","to":"4TZ","country":"Peru"},{"from":"4UA","to":"4UZ","country":"United Nations","international_organization":true},{"from":"4VA","to":"4VZ","country":"Haiti (Republic of)"},{"from":"4WA","to":"4WZ","country":"Timor-Leste (Democratic Republic of)"},{"from":"4XA","to":"4XZ","country":"Israel (State of)"},{"from":"4YA","to":"4YZ","country":"International Civil Aviation Organization","international_organization":true},{"from":"4ZA","to":"4ZZ","country":"Israel (State of)"},{"from":"5AA","to":"5AZ","country":"Libya (State of)"},{"from":"5BA","to":"5BZ","country":"Cyprus (Republic of)"},{"from":"5CA","to":"5GZ","country":"Morocco (Kingdom of)"},{"from":"5HA","to":"5IZ","country":"Tanzania (United Republic of)"},{"from":"5JA","to":"5KZ","country":"Colombia (Republic of)"},{"from":"5LA","to":"5MZ","country":"Liberia (Republic of)"},{"from":"5NA","to":"5OZ","country":"Nigeria (Federal Republic of)"},{"from":"5PA","to":"5QZ","country":"Denmark"},{"from":"5RA","to":"5SZ","country":"Madagascar (Republic of)"},{"from":"5TA","to":"5TZ","country":"Mauritania (Islamic Republic of)"},{"from":"5UA","to":"5UZ","country":"Niger (Republic of the)"},{"from":"5VA","to":"5VZ","country":"Togolese Republic"},{"from":"5WA","to":"5WZ","country":"Samoa (Independent State of)"},{"from":"5XA","to":"5XZ","country":"Uganda (Republic of)"},{"from":"5YA","to":"5ZZ","country":"Kenya (Republic of)"},{"from":"6AA","to":"6BZ","country":"Egypt (Arab Republic of)"},{"from":"6CA","to":"6CZ","country":"Syrian Arab Republic"},{"from":"6DA","to":"6JZ","country":"Mexico"},{"from":"6KA","to":"6NZ","country":"Korea (Republic of)"},{"from":"6OA","to":"6OZ","country":"Somalia (Federal Republic of)"},{"from":"6PA","to":"6SZ","country":"Pakistan (Islamic Republic of)"},{"from":"6TA","to":"6UZ","country":"Sudan (Republic of the)"},{"from":"6VA","to":"6WZ","country":"Senegal (Republic of)"},{"from":"6XA","to":"6XZ","country":"Madagascar (Republic of)"},{"from":"6YA","to":"6YZ","country":"Jamaica"},{"from":"6ZA","to":"6ZZ","country":"Liberia (Republic of)"},{"from":"7AA","to":"7IZ","country":"Indonesia (Republic of)"},{"from":"7JA","to":"7NZ","country":"Japan"},{"from":"7OA","to":"7OZ","country":"Yemen (Republic of)"},{"from":"7PA","to":"7PZ","country":"Lesotho (Kingdom of)"},{"from":"7QA","to":"7QZ","country":"Malawi"},{"from":"7RA","to":"7RZ","country":"Algeria (People's Democratic Republic of)"},{"from":"7SA","to":"7SZ","country":"Sweden"},{"from":"7TA","to":"7YZ","country":"Algeria (People's Democratic Republic of)"},{"from":"7ZA","to":"7ZZ","country":"Saudi Arabia (Kingdom of)"},{"from":"8AA","to":"8IZ","country":"Indonesia (Republic of)"},{"from":"8JA","to":"8NZ","country":"Japan"},{"from":"8OA","to":"8OZ","country":"Botswana (Republic of)"},{"from":"8PA","to":"8PZ","country":"Barbados"},{"from":"8QA","to":"8QZ","country":"Maldives (Republic of)"},{"from":"8RA","to":"8RZ","country":"Guyana"},{"from":"8SA","to":"8SZ","country":"Sweden"},{"from":"8TA","to":"8YZ","country":"India (Republic of)"},{"from":"8ZA","to":"8ZZ","country":"Saudi Arabia (Kingdom of)"},{"from":"9AA","to":"9AZ","country":"Croatia (Republic of)"},{"from":"9BA","to":"9DZ","country":"Iran (Islamic Republic of)"},{"from":"9EA","to":"9FZ","country":"Ethiopia (Federal Democratic Republic of)"},{"from":"9GA","to":"9GZ","country":"Ghana"},{"from":"9HA","to":"9HZ","country":"Malta"},{"from":"9IA","to":"9JZ","country":"Zambia (Republic of)"},{"from":"9KA","to":"9KZ","country":"Kuwait (State of)"},{"from":"9LA","to":"9LZ","country":"Sierra Leone"},{"from":"9MA","to":"9MZ","country":"Malaysia"},{"from":"9NA","to":"9NZ","country":"Nepal (Federal Democratic Republic of)"},{"from":"9OA","to":"9TZ","country":"Democratic Republic of the Congo"},{"from":"9UA","to":"9UZ","country":"Burundi (Republic of)"},{"from":"9VA","to":"9VZ","country":"Singapore (Republic of)"},{"from":"9WA","to":"9WZ","country":"Malaysia"},{"from":"9XA","to":"9XZ","country":"Rwanda (Republic of)"},{"from":"9YA","to":"9ZZ","country":"Trinidad and Tobago"},{"from":"A2A","to":"A2Z","country":"Botswana (Republic of)"},{"from":"A3A","to":"A3Z","country":"Tonga (Kingdom of)"},{"from":"A4A","to":"A4Z","country":"Oman (Sultanate of)"},{"from":"A5A","to":"A5Z","country":"Bhutan (Kingdom of)"},{"from":"A6A","to":"A6Z","country":"United Arab Emirates"},{"from":"A7A","to":"A7Z","country":"Qatar (State of)"},{"from":"A8A","to":"A8Z","country":"Liberia (Republic of)"},{"from":"A9A","to":"A9Z","country":"Bahrain (Kingdom of)"},{"from":"AAA","to":"ALZ","country":"United States of America"},{"from":"AMA","to":"AOZ","country":"Spain"},{"from":"APA","to":"ASZ","country":"Pakistan (Islamic Republic of)"},{"from":"ATA","to":"AWZ","country":"India (Republic of)"},{"from":"AXA","to":"AXZ","country":"Australia"},{"from":"AYA","to":"AZZ","country":"Argentine Republic"},{"from":"BAA","to":"BZZ","country":"China (People's Republic of)"},{"from":"C2A","to":"C2Z","country":"Republic of Naoero"},{"from":"C3A","to":"C3Z","country":"Andorra (Principality of)"},{"from":"C4A","to":"C4Z","country":"Cyprus (Republic of)"},{"from":"C5A","to":"C5Z","country":"Gambia (Republic of the)"},{"from":"C6A","to":"C6Z","country":"Bahamas (Commonwealth of the)"},{"from":"C7A","to":"C7Z","country":"World Meteorological Organization","international_organization":true},{"from":"C8A","to":"C9Z","country":"Mozambique (Republic of)"},{"from":"CAA","to":"CEZ","country":"Chile"},{"from":"CFA","to":"CKZ","country":"Canada"},{"from":"CLA","to":"CMZ","country":"Cuba"},{"from":"CNA","to":"CNZ","country":"Morocco (Kingdom of)"},{"from":"COA","to":"COZ","country":"Cuba"},{"from":"CPA","to":"CPZ","country":"Bolivia (Plurinational State of)"},{"from":"CQA","to":"CUZ","country":"Portugal"},{"from":"CVA","to":"CXZ","country":"Uruguay (Eastern Republic of)"},{"from":"CYA","to":"CZZ","country":"Canada"},{"from":"D2A","to":"D3Z","country":"Angola (Republic of)"},{"from":"D4A","to":"D4Z","country":"Cabo Verde (Republic of)"},{"from":"D5A","to":"D5Z","country":"Liberia (Republic of)"},{"from":"D6A","to":"D6Z","country":"Comoros (Union of the)"},{"from":"D7A","to":"D9Z","country":"Korea (Republic of)"},{"from":"DAA","to":"DRZ","country":"Germany (Federal Republic of)"},{"from":"DSA","to":"DTZ","country":"Korea (Republic of)"},{"from":"DUA","to":"DZZ","country":"Philippines (Republic of the)"},{"from":"E2A","to":"E2Z","country":"Thailand"},{"from":"E3A","to":"E3Z","country":"Eritrea"},{"from":"E4A","to":"E4Z","country":"State of Palestine (In accordance with Resolution 99 Rev. Dubai, 2018)"},{"from":"E5A","to":"E5Z","country":"New Zealand - Cook Islands"},{"from":"E6A","to":"E6Z","country":"New Zealand - Niue"},{"from":"E7A","to":"E7Z","country":"Bosnia and Herzegovina"},{"from":"EAA","to":"EHZ","country":"Spain"},{"from":"EIA","to":"EJZ","country":"Ireland"},{"from":"EKA","to":"EKZ","country":"Armenia (Republic of)"},{"from":"ELA","to":"ELZ","country":"Liberia (Republic of)"},{"from":"EMA","to":"EOZ","country":"Ukraine"},{"from":"EPA","to":"EQZ","country":"Iran (Islamic Republic of)"},{"from":"ERA","to":"ERZ","country":"Moldova (Republic of)"},{"from":"ESA","to":"ESZ","country":"Estonia (Republic of)"},{"from":"ETA","to":"ETZ","country":"Ethiopia (Federal Democratic Republic of)"},{"from":"EUA","to":"EWZ","country":"Belarus (Republic of)"},{"from":"EXA","to":"EXZ","country":"Kyrgyz Republic"},{"from":"EYA","to":"EYZ","country":"Tajikistan (Republic of)"},{"from":"EZA","to":"EZZ","country":"Turkmenistan"},{"from":"FAA","to":"FZZ","country":"France"},{"from":"GAA","to":"GZZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"H2A","to":"H2Z","country":"Cyprus (Republic of)"},{"from":"H3A","to":"H3Z","country":"Panama (Republic of)"},{"from":"H4A","to":"H4Z","country":"Solomon Islands"},{"from":"H6A","to":"H7Z","country":"Nicaragua"},{"from":"H8A","to":"H9Z","country":"Panama (Republic of)"},{"from":"HAA","to":"HAZ","country":"Hungary"},{"from":"HBA","to":"HBZ","country":"Switzerland (Confederation of)"},{"from":"HCA","to":"HDZ","country":"Ecuador"},{"from":"HEA","to":"HEZ","country":"Switzerland (Confederation of)"},{"from":"HFA","to":"HFZ","country":"Poland (Republic of)"},{"from":"HGA","to":"HGZ","country":"Hungary"},{"from":"HHA","to":"HHZ","country":"Haiti (Republic of)"},{"from":"HIA","to":"HIZ","country":"Dominican Republic"},{"from":"HJA","to":"HKZ","country":"Colombia (Republic of)"},{"from":"HLA","to":"HLZ","country":"Korea (Republic of)"},{"from":"HMA","to":"HMZ","country":"Democratic People's Republic of Korea"},{"from":"HNA","to":"HNZ","country":"Iraq (Republic of)"},{"from":"HOA","to":"HPZ","country":"Panama (Republic of)"},{"from":"HQA","to":"HRZ","country":"Honduras (Republic of)"},{"from":"HSA","to":"HSZ","country":"Thailand"},{"from":"HTA","to":"HTZ","country":"Nicaragua"},{"from":"HUA","to":"HUZ","country":"El Salvador (Republic of)"},{"from":"HVA","to":"HVZ","country":"Vatican City State"},{"from":"HWA","to":"HYZ","country":"France"},{"from":"HZA","to":"HZZ","country":"Saudi Arabia (Kingdom of)"},{"from":"IAA","to":"IZZ","country":"Italy"},{"from":"J2A","to":"J2Z","country":"Djibouti (Republic of)"},{"from":"J3A","to":"J3Z","country":"Grenada"},{"from":"J4A","to":"J4Z","country":"Greece"},{"from":"J5A","to":"J5Z","country":"Guinea-Bissau (Republic of)"},{"from":"J6A","to":"J6Z","country":"Saint Lucia"},{"from":"J7A","to":"J7Z","country":"Dominica (Commonwealth of)"},{"from":"J8A","to":"J8Z","country":"Saint Vincent and the Grenadines"},{"from":"JAA","to":"JSZ","country":"Japan"},{"from":"JTA","to":"JVZ","country":"Mongolia"},{"from":"JWA","to":"JXZ","country":"Norway"},{"from":"JYA","to":"JYZ","country":"Jordan (Hashemite Kingdom of)"},{"from":"JZA","to":"JZZ","country":"Indonesia (Republic of)"},{"from":"KAA","to":"KZZ","country":"United States of America"},{"from":"L2A","to":"L9Z","country":"Argentine Republic"},{"from":"LAA","to":"LNZ","country":"Norway"},{"from":"LOA","to":"LWZ","country":"Argentine Republic"},{"from":"LXA","to":"LXZ","country":"Luxembourg"},{"from":"LYA","to":"LYZ","country":"Lithuania (Republic of)"},{"from":"LZA","to":"LZZ","country":"Bulgaria (Republic of)"},{"from":"MAA","to":"MZZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"NAA","to":"NZZ","country":"United States of America"},{"from":"OAA","to":"OCZ","country":"Peru"},{"from":"ODA","to":"ODZ","country":"Lebanon"},{"from":"OEA","to":"OEZ","country":"Austria"},{"from":"OFA","to":"OJZ","country":"Finland"},{"from":"OKA","to":"OLZ","country":"Czech Republic"},{"from":"OMA","to":"OMZ","country":"Slovak Republic"},{"from":"ONA","to":"OTZ","country":"Belgium"},{"from":"OUA","to":"OZZ","country":"Denmark"},{"from":"P2A","to":"P2Z","country":"Papua New Guinea"},{"from":"P3A","to":"P3Z","country":"Cyprus (Republic of)"},{"from":"P4A","to":"P4Z","country":"Netherlands (Kingdom of the) - Aruba"},{"from":"P5A","to":"P9Z","country":"Democratic People's Republic of Korea"},{"from":"PAA","to":"PIZ","country":"Netherlands (Kingdom of the)"},{"from":"PJA","to":"PJZ","country":"Netherlands (Kingdom of the) - Bonaire, Sint Eustatius and Saba"},{"from":"PJA","to":"PJZ","country":"Netherlands (Kingdom of the) - Curaçao"},{"from":"PJA","to":"PJZ","country":"Netherlands (Kingdom of the) - Sint Maarten (Dutch part)"},{"from":"PKA","to":"POZ","country":"Indonesia (Republic of)"},{"from":"PPA","to":"PYZ","country":"Brazil (Federative Republic of)"},{"from":"PZA","to":"PZZ","country":"Suriname (Republic of)"},{"from":"RAA","to":"RZZ","country":"Russian Federation"},{"from":"S2A","to":"S3Z","country":"Bangladesh (People's Republic of)"},{"from":"S5A","to":"S5Z","country":"Slovenia (Republic of)"},{"from":"S6A","to":"S6Z","country":"Singapore (Republic of)"},{"from":"S7A","to":"S7Z","country":"Seychelles (Republic of)"},{"from":"S8A","to":"S8Z","country":"South Africa (Republic of)"},{"from":"S9A","to":"S9Z","country":"Sao Tome and Principe (Democratic Republic of)"},{"from":"SAA","to":"SMZ","country":"Sweden"},{"from":"SNA","to":"SRZ","country":"Poland (Republic of)"},{"from":"SSA","to":"SSM","country":"Egypt (Arab Republic of)"},{"from":"SSN","to":"STZ","country":"Sudan (Republic of the)"},{"from":"SUA","to":"SUZ","country":"Egypt (Arab Republic of)"},{"from":"SVA","to":"SZZ","country":"Greece"},{"from":"T2A","to":"T2Z","country":"Tuvalu"},{"from":"T3A","to":"T3Z","country":"Kiribati (Republic of)"},{"from":"T4A","to":"T4Z","country":"Cuba"},{"from":"T5A","to":"T5Z","country":"Somalia (Federal Republic of)"},{"from":"T6A","to":"T6Z","country":"Afghanistan"},{"from":"T7A","to":"T7Z","country":"San Marino (Republic of)"},{"from":"T8A","to":"T8Z","country":"Palau (Republic of)"},{"from":"TAA","to":"TCZ","country":"Republic of Türkiye"},{"from":"TDA","to":"TDZ","country":"Guatemala (Republic of)"},{"from":"TEA","to":"TEZ","country":"Costa Rica"},{"from":"TFA","to":"TFZ","country":"Iceland"},{"from":"TGA","to":"TGZ","country":"Guatemala (Republic of)"},{"from":"THA","to":"THZ","country":"France"},{"from":"TIA","to":"TIZ","country":"Costa Rica"},{"from":"TJA","to":"TJZ","country":"Cameroon (Republic of)"},{"from":"TKA","to":"TKZ","country":"France"},{"from":"TLA","to":"TLZ","country":"Central African Republic"},{"from":"TMA","to":"TMZ","country":"France"},{"from":"TNA","to":"TNZ","country":"Congo (Republic of the)"},{"from":"TOA","to":"TQZ","country":"France"},{"from":"TRA","to":"TRZ","country":"Gabonese Republic"},{"from":"TSA","to":"TSZ","country":"Tunisia"},{"from":"TTA","to":"TTZ","country":"Chad (Republic of)"},{"from":"TUA","to":"TUZ","country":"Côte d'Ivoire (Republic of)"},{"from":"TVA","to":"TXZ","country":"France"},{"from":"TYA","to":"TYZ","country":"Benin (Republic of)"},{"from":"TZA","to":"TZZ","country":"Mali (Republic of)"},{"from":"UAA","to":"UIZ","country":"Russian Federation"},{"from":"UJA","to":"UMZ","country":"Uzbekistan (Republic of)"},{"from":"UNA","to":"UQZ","country":"Kazakhstan (Republic of)"},{"from":"URA","to":"UZZ","country":"Ukraine"},{"from":"V2A","to":"V2Z","country":"Antigua and Barbuda"},{"from":"V3A","to":"V3Z","country":"Belize"},{"from":"V4A","to":"V4Z","country":"Saint Kitts and Nevis (Federation of)"},{"from":"V5A","to":"V5Z","country":"Namibia (Republic of)"},{"from":"V6A","to":"V6Z","country":"Micronesia (Federated States of)"},{"from":"V7A","to":"V7Z","country":"Marshall Islands (Republic of the)"},{"from":"V8A","to":"V8Z","country":"Brunei Darussalam"},{"from":"VAA","to":"VGZ","country":"Canada"},{"from":"VHA","to":"VNZ","country":"Australia"},{"from":"VOA","to":"VOZ","country":"Canada"},{"from":"VPA","to":"VQZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"VRA","to":"VRZ","country":"China (People's Republic of) - Hong Kong"},{"from":"VSA","to":"VSZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"VTA","to":"VWZ","country":"India (Republic of)"},{"from":"VXA","to":"VYZ","country":"Canada"},{"from":"VZA","to":"VZZ","country":"Australia"},{"from":"WAA","to":"WZZ","country":"United States of America"},{"from":"XAA","to":"XIZ","country":"Mexico"},{"from":"XJA","to":"XOZ","country":"Canada"},{"from":"XPA","to":"XPZ","country":"Denmark"},{"from":"XQA","to":"XRZ","country":"Chile"},{"from":"XSA","to":"XSZ","country":"China (People's Republic of)"},{"from":"XTA","to":"XTZ","country":"Burkina Faso"},{"from":"XUA","to":"XUZ","country":"Cambodia (Kingdom of)"},{"from":"XVA","to":"XVZ","country":"Viet Nam (Socialist Republic of)"},{"from":"XWA","to":"XWZ","country":"Lao People's Democratic Republic"},{"from":"XXA","to":"XXZ","country":"China (People's Republic of) - Macao"},{"from":"XYA","to":"XZZ","country":"Myanmar (Union of)"},{"from":"Y2A","to":"Y9Z","country":"Germany (Federal Republic of)"},{"from":"YAA","to":"YAZ","country":"Afghanistan"},{"from":"YBA","to":"YHZ","country":"Indonesia (Republic of)"},{"from":"YIA","to":"YIZ","country":"Iraq (Republic of)"},{"from":"YJA","to":"YJZ","country":"Vanuatu (Republic of)"},{"from":"YKA","to":"YKZ","country":"Syrian Arab Republic"},{"from":"YLA","to":"YLZ","country":"Latvia (Republic of)"},{"from":"YMA","to":"YMZ","country":"Republic of Türkiye"},{"from":"YNA","to":"YNZ","country":"Nicaragua"},{"from":"YOA","to":"YRZ","country":"Romania"},{"from":"YSA","to":"YSZ","country":"El Salvador (Republic of)"},{"from":"YTA","to":"YUZ","country":"Serbia (Republic of)"},{"from":"YVA","to":"YYZ","country":"Venezuela (Bolivarian Republic of)"},{"from":"Z2A","to":"Z2Z","country":"Zimbabwe (Republic of)"},{"from":"Z3A","to":"Z3Z","country":"North Macedonia (Republic of)"},{"from":"Z8A","to":"Z8Z","country":"South Sudan (Republic of)"},{"from":"ZAA","to":"ZAZ","country":"Albania (Republic of)"},{"from":"ZBA","to":"ZJZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"ZKA","to":"ZMZ","country":"New Zealand"},{"from":"ZNA","to":"ZOZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"ZPA","to":"ZPZ","country":"Paraguay (Republic of)"},{"from":"ZQA","to":"ZQZ","country":"United Kingdom of Great Britain and Northern Ireland"},{"from":"ZRA","to":"ZUZ","country":"South Africa (Republic of)"},{"from":"ZVA","to":"ZZZ","country":"Brazil (Federative Republic of)"}]},"icao24.json":{"blocks":{"source":"ICAO Annex 10 to the Convention on International Civil Aviation, Volume III (Communication Systems), Part I, Chapter 9, Appendix, Table 9-1 'Allocation of aircraft addresses to States' - Second Edition July 2007, consolidated to Amendment 92 (pages dated 28/11/24). Openly hosted copy: Swiss Federal Office of Civil Aviation (FOCA/BAZL), https://www.bazl.admin.ch/dam/de/sd-web/QQ3WlrAoWJRb/AN10_V3_cons.pdf (Table 9-1 on PDF pages 196-200, document pages I-9-6 to I-9-10).","source_note":"All 196 ranges were machine-transcribed from the bit patterns in Table 9-1 of the FOCA-hosted consolidated Annex (each pattern checked to total 24 bits; start = pattern followed by zeros, end = pattern followed by ones). Amendment 92 changed the scheme: blocks are now defined by the first 4, 6, 9, 11, 12 or 13 bits (1,048,576 / 262,144 / 32,768 / 8,192 / 4,096 / 2,048 addresses). The smallest block grew from 1,024 to 2,048, so many small-State ranges are twice as large as in older lists. Cross-checks: (1) an older ICAO edition of the same table (Annex 10 Vol III, edition before 2007; Table 9-1 pages marked Amendment No. 73 (1998) and No. 77 (2002), at https://antena.fe.uni-lj.si/literatura/Razno/Avionika/modes/annex10-vol3.pdf). 124 ranges match exactly. Every other difference comes from Amendment 92 or from States added since (see notes), and no start address belongs to a different State. (2) FlightAware dump1090 public_html/flags.js (https://github.com/flightaware/dump1090), transcribed from the table 'with amendments through 88-A, 14/11/2013': 123 exact matches; the differences follow the same pattern as source (1), and no address is given to a different country. (3) tar1090 html/flags.js (https://github.com/wiedehopf/tar1090), which has been updated to the current table: all 196 ranges match exactly (start, end and State). tar1090 is derived from the FlightAware list, so sources 2 and 3 are not fully independent of each other, but both are independent of this transcription.","retrieved":"2026-11-26","ranges":[{"start":"004000","end":"0047FF","country":"Zimbabwe","prefix_bits":"0000000001000"},{"start":"006000","end":"006FFF","country":"Mozambique","prefix_bits":"000000000110"},{"start":"008000","end":"00FFFF","country":"South Africa","prefix_bits":"000000001"},{"start":"010000","end":"017FFF","country":"Egypt","prefix_bits":"000000010"},{"start":"018000","end":"01FFFF","country":"Libya","prefix_bits":"000000011"},{"start":"020000","end":"027FFF","country":"Morocco","prefix_bits":"000000100"},{"start":"028000","end":"02FFFF","country":"Tunisia","prefix_bits":"000000101"},{"start":"030000","end":"0307FF","country":"Botswana","prefix_bits":"0000001100000"},{"start":"032000","end":"032FFF","country":"Burundi","prefix_bits":"000000110010"},{"start":"034000","end":"034FFF","country":"Cameroon","prefix_bits":"000000110100"},{"start":"035000","end":"0357FF","country":"Comoros","prefix_bits":"0000001101010"},{"start":"036000","end":"036FFF","country":"Congo","prefix_bits":"000000110110"},{"start":"038000","end":"038FFF","country":"Côte d’Ivoire","prefix_bits":"000000111000"},{"start":"03E000","end":"03EFFF","country":"Gabon","prefix_bits":"000000111110"},{"start":"040000","end":"040FFF","country":"Ethiopia","prefix_bits":"000001000000"},{"start":"042000","end":"042FFF","country":"Equatorial Guinea","prefix_bits":"000001000010"},{"start":"044000","end":"044FFF","country":"Ghana","prefix_bits":"000001000100"},{"start":"046000","end":"046FFF","country":"Guinea","prefix_bits":"000001000110"},{"start":"048000","end":"0487FF","country":"Guinea-Bissau","prefix_bits":"0000010010000"},{"start":"04A000","end":"04A7FF","country":"Lesotho","prefix_bits":"0000010010100"},{"start":"04C000","end":"04CFFF","country":"Kenya","prefix_bits":"000001001100"},{"start":"050000","end":"050FFF","country":"Liberia","prefix_bits":"000001010000"},{"start":"054000","end":"054FFF","country":"Madagascar","prefix_bits":"000001010100"},{"start":"058000","end":"058FFF","country":"Malawi","prefix_bits":"000001011000"},{"start":"05A000","end":"05A7FF","country":"Maldives","prefix_bits":"0000010110100"},{"start":"05C000","end":"05CFFF","country":"Mali","prefix_bits":"000001011100"},{"start":"05E000","end":"05E7FF","country":"Mauritania","prefix_bits":"0000010111100"},{"start":"060000","end":"0607FF","country":"Mauritius","prefix_bits":"0000011000000"},{"start":"062000","end":"062FFF","country":"Niger","prefix_bits":"000001100010"},{"start":"064000","end":"064FFF","country":"Nigeria","prefix_bits":"000001100100"},{"start":"068000","end":"068FFF","country":"Uganda","prefix_bits":"000001101000"},{"start":"06A000","end":"06AFFF","country":"Qatar","prefix_bits":"000001101010"},{"start":"06C000","end":"06CFFF","country":"Central African Republic","prefix_bits":"000001101100"},{"start":"06E000","end":"06EFFF","country":"Rwanda","prefix_bits":"000001101110"},{"start":"070000","end":"070FFF","country":"Senegal","prefix_bits":"000001110000"},{"start":"074000","end":"0747FF","country":"Seychelles","prefix_bits":"0000011101000"},{"start":"076000","end":"0767FF","country":"Sierra Leone","prefix_bits":"0000011101100"},{"start":"078000","end":"078FFF","country":"Somalia","prefix_bits":"000001111000"},{"start":"07A000","end":"07A7FF","country":"Eswatini","prefix_bits":"0000011110100"},{"start":"07C000","end":"07CFFF","country":"Sudan","prefix_bits":"000001111100"},{"start":"080000","end":"080FFF","country":"United Republic of Tanzania","prefix_bits":"000010000000"},{"start":"084000","end":"084FFF","country":"Chad","prefix_bits":"000010000100"},{"start":"088000","end":"088FFF","country":"Togo","prefix_bits":"000010001000"},{"start":"08A000","end":"08AFFF","country":"Zambia","prefix_bits":"000010001010"},{"start":"08C000","end":"08CFFF","country":"Democratic Republic of the Congo","prefix_bits":"000010001100"},{"start":"090000","end":"090FFF","country":"Angola","prefix_bits":"000010010000"},{"start":"094000","end":"0947FF","country":"Benin","prefix_bits":"0000100101000"},{"start":"096000","end":"0967FF","country":"Cabo Verde","prefix_bits":"0000100101100"},{"start":"098000","end":"0987FF","country":"Djibouti","prefix_bits":"0000100110000"},{"start":"09A000","end":"09AFFF","country":"Gambia","prefix_bits":"000010011010"},{"start":"09C000","end":"09CFFF","country":"Burkina Faso","prefix_bits":"000010011100"},{"start":"09E000","end":"09E7FF","country":"Sao Tome and Principe","prefix_bits":"0000100111100"},{"start":"0A0000","end":"0A7FFF","country":"Algeria","prefix_bits":"000010100"},{"start":"0A8000","end":"0A8FFF","country":"Bahamas","prefix_bits":"000010101000"},{"start":"0AA000","end":"0AA7FF","country":"Barbados","prefix_bits":"0000101010100"},{"start":"0AB000","end":"0AB7FF","country":"Belize","prefix_bits":"0000101010110"},{"start":"0AC000","end":"0ADFFF","country":"Colombia","prefix_bits":"00001010110"},{"start":"0AE000","end":"0AEFFF","country":"Costa Rica","prefix_bits":"000010101110"},{"start":"0B0000","end":"0B0FFF","country":"Cuba","prefix_bits":"000010110000"},{"start":"0B2000","end":"0B2FFF","country":"El Salvador","prefix_bits":"000010110010"},{"start":"0B4000","end":"0B4FFF","country":"Guatemala","prefix_bits":"000010110100"},{"start":"0B6000","end":"0B6FFF","country":"Guyana","prefix_bits":"000010110110"},{"start":"0B8000","end":"0B8FFF","country":"Haiti","prefix_bits":"000010111000"},{"start":"0BA000","end":"0BAFFF","country":"Honduras","prefix_bits":"000010111010"},{"start":"0BC000","end":"0BC7FF","country":"Saint Vincent and the Grenadines","prefix_bits":"0000101111000"},{"start":"0BE000","end":"0BEFFF","country":"Jamaica","prefix_bits":"000010111110"},{"start":"0C0000","end":"0C0FFF","country":"Nicaragua","prefix_bits":"000011000000"},{"start":"0C2000","end":"0C2FFF","country":"Panama","prefix_bits":"000011000010"},{"start":"0C4000","end":"0C4FFF","country":"Dominican Republic","prefix_bits":"000011000100"},{"start":"0C6000","end":"0C6FFF","country":"Trinidad and Tobago","prefix_bits":"000011000110"},{"start":"0C8000","end":"0C8FFF","country":"Suriname","prefix_bits":"000011001000"},{"start":"0CA000","end":"0CA7FF","country":"Antigua and Barbuda","prefix_bits":"0000110010100"},{"start":"0CC000","end":"0CC7FF","country":"Grenada","prefix_bits":"0000110011000"},{"start":"0D0000","end":"0D7FFF","country":"Mexico","prefix_bits":"000011010"},{"start":"0D8000","end":"0DFFFF","country":"Venezuela (Bolivarian Republic of)","prefix_bits":"000011011"},{"start":"100000","end":"1FFFFF","country":"Russian Federation","prefix_bits":"0001"},{"start":"201000","end":"2017FF","country":"Namibia","prefix_bits":"0010000000010"},{"start":"202000","end":"2027FF","country":"Eritrea","prefix_bits":"0010000000100"},{"start":"300000","end":"33FFFF","country":"Italy","prefix_bits":"001100"},{"start":"340000","end":"37FFFF","country":"Spain","prefix_bits":"001101"},{"start":"380000","end":"3BFFFF","country":"France","prefix_bits":"001110"},{"start":"3C0000","end":"3FFFFF","country":"Germany","prefix_bits":"001111"},{"start":"400000","end":"43FFFF","country":"United Kingdom","prefix_bits":"010000"},{"start":"440000","end":"447FFF","country":"Austria","prefix_bits":"010001000"},{"start":"448000","end":"44FFFF","country":"Belgium","prefix_bits":"010001001"},{"start":"450000","end":"457FFF","country":"Bulgaria","prefix_bits":"010001010"},{"start":"458000","end":"45FFFF","country":"Denmark","prefix_bits":"010001011"},{"start":"460000","end":"467FFF","country":"Finland","prefix_bits":"010001100"},{"start":"468000","end":"46FFFF","country":"Greece","prefix_bits":"010001101"},{"start":"470000","end":"477FFF","country":"Hungary","prefix_bits":"010001110"},{"start":"478000","end":"47FFFF","country":"Norway","prefix_bits":"010001111"},{"start":"480000","end":"487FFF","country":"Netherlands","prefix_bits":"010010000"},{"start":"488000","end":"48FFFF","country":"Poland","prefix_bits":"010010001"},{"start":"490000","end":"497FFF","country":"Portugal","prefix_bits":"010010010"},{"start":"498000","end":"49FFFF","country":"Czechia","prefix_bits":"010010011"},{"start":"4A0000","end":"4A7FFF","country":"Romania","prefix_bits":"010010100"},{"start":"4A8000","end":"4AFFFF","country":"Sweden","prefix_bits":"010010101"},{"start":"4B0000","end":"4B7FFF","country":"Switzerland","prefix_bits":"010010110"},{"start":"4B8000","end":"4BFFFF","country":"Türkiye","prefix_bits":"010010111"},{"start":"4C0000","end":"4C7FFF","country":"Serbia","prefix_bits":"010011000"},{"start":"4C8000","end":"4C87FF","country":"Cyprus","prefix_bits":"0100110010000"},{"start":"4CA000","end":"4CAFFF","country":"Ireland","prefix_bits":"010011001010"},{"start":"4CC000","end":"4CCFFF","country":"Iceland","prefix_bits":"010011001100"},{"start":"4D0000","end":"4D07FF","country":"Luxembourg","prefix_bits":"0100110100000"},{"start":"4D2000","end":"4D27FF","country":"Malta","prefix_bits":"0100110100100"},{"start":"4D4000","end":"4D47FF","country":"Monaco","prefix_bits":"0100110101000"},{"start":"500000","end":"5007FF","country":"San Marino","prefix_bits":"0101000000000"},{"start":"501000","end":"5017FF","country":"Albania","prefix_bits":"0101000000010"},{"start":"501800","end":"501FFF","country":"Croatia","prefix_bits":"0101000000011"},{"start":"502800","end":"502FFF","country":"Latvia","prefix_bits":"0101000000101"},{"start":"503800","end":"503FFF","country":"Lithuania","prefix_bits":"0101000000111"},{"start":"504800","end":"504FFF","country":"Republic of Moldova","prefix_bits":"0101000001001"},{"start":"505800","end":"505FFF","country":"Slovakia","prefix_bits":"0101000001011"},{"start":"506800","end":"506FFF","country":"Slovenia","prefix_bits":"0101000001101"},{"start":"507800","end":"507FFF","country":"Uzbekistan","prefix_bits":"0101000001111"},{"start":"508000","end":"50FFFF","country":"Ukraine","prefix_bits":"010100001"},{"start":"510000","end":"5107FF","country":"Belarus","prefix_bits":"0101000100000"},{"start":"511000","end":"5117FF","country":"Estonia","prefix_bits":"0101000100010"},{"start":"512000","end":"5127FF","country":"North Macedonia","prefix_bits":"0101000100100"},{"start":"513000","end":"5137FF","country":"Bosnia and Herzegovina","prefix_bits":"0101000100110"},{"start":"514000","end":"5147FF","country":"Georgia","prefix_bits":"0101000101000"},{"start":"515000","end":"5157FF","country":"Tajikistan","prefix_bits":"0101000101010"},{"start":"516000","end":"5167FF","country":"Montenegro","prefix_bits":"0101000101100"},{"start":"600000","end":"6007FF","country":"Armenia","prefix_bits":"0110000000000"},{"start":"600800","end":"600FFF","country":"Azerbaijan","prefix_bits":"0110000000001"},{"start":"601000","end":"6017FF","country":"Kyrgyzstan","prefix_bits":"0110000000010"},{"start":"601800","end":"601FFF","country":"Turkmenistan","prefix_bits":"0110000000011"},{"start":"680000","end":"6807FF","country":"Bhutan","prefix_bits":"0110100000000"},{"start":"681000","end":"6817FF","country":"Micronesia (Federated States of)","prefix_bits":"0110100000010"},{"start":"682000","end":"6827FF","country":"Mongolia","prefix_bits":"0110100000100"},{"start":"683000","end":"6837FF","country":"Kazakhstan","prefix_bits":"0110100000110"},{"start":"684000","end":"6847FF","country":"Palau","prefix_bits":"0110100001000"},{"start":"700000","end":"700FFF","country":"Afghanistan","prefix_bits":"011100000000"},{"start":"702000","end":"702FFF","country":"Bangladesh","prefix_bits":"011100000010"},{"start":"704000","end":"704FFF","country":"Myanmar","prefix_bits":"011100000100"},{"start":"706000","end":"706FFF","country":"Kuwait","prefix_bits":"011100000110"},{"start":"708000","end":"708FFF","country":"Lao People’s Democratic Republic","prefix_bits":"011100001000"},{"start":"70A000","end":"70AFFF","country":"Nepal","prefix_bits":"011100001010"},{"start":"70C000","end":"70C7FF","country":"Oman","prefix_bits":"0111000011000"},{"start":"70E000","end":"70EFFF","country":"Cambodia","prefix_bits":"011100001110"},{"start":"710000","end":"717FFF","country":"Saudi Arabia","prefix_bits":"011100010"},{"start":"718000","end":"71FFFF","country":"Republic of Korea","prefix_bits":"011100011"},{"start":"720000","end":"727FFF","country":"Democratic People’s Republic of Korea","prefix_bits":"011100100"},{"start":"728000","end":"72FFFF","country":"Iraq","prefix_bits":"011100101"},{"start":"730000","end":"737FFF","country":"Iran (Islamic Republic of)","prefix_bits":"011100110"},{"start":"738000","end":"73FFFF","country":"Israel","prefix_bits":"011100111"},{"start":"740000","end":"747FFF","country":"Jordan","prefix_bits":"011101000"},{"start":"748000","end":"74FFFF","country":"Lebanon","prefix_bits":"011101001"},{"start":"750000","end":"757FFF","country":"Malaysia","prefix_bits":"011101010"},{"start":"758000","end":"75FFFF","country":"Philippines","prefix_bits":"011101011"},{"start":"760000","end":"767FFF","country":"Pakistan","prefix_bits":"011101100"},{"start":"768000","end":"76FFFF","country":"Singapore","prefix_bits":"011101101"},{"start":"770000","end":"777FFF","country":"Sri Lanka","prefix_bits":"011101110"},{"start":"778000","end":"77FFFF","country":"Syrian Arab Republic","prefix_bits":"011101111"},{"start":"780000","end":"7BFFFF","country":"China","prefix_bits":"011110"},{"start":"7C0000","end":"7FFFFF","country":"Australia","prefix_bits":"011111"},{"start":"800000","end":"83FFFF","country":"India","prefix_bits":"100000"},{"start":"840000","end":"87FFFF","country":"Japan","prefix_bits":"100001"},{"start":"880000","end":"887FFF","country":"Thailand","prefix_bits":"100010000"},{"start":"888000","end":"88FFFF","country":"Viet Nam","prefix_bits":"100010001"},{"start":"890000","end":"890FFF","country":"Yemen","prefix_bits":"100010010000"},{"start":"894000","end":"894FFF","country":"Bahrain","prefix_bits":"100010010100"},{"start":"895000","end":"8957FF","country":"Brunei Darussalam","prefix_bits":"1000100101010"},{"start":"896000","end":"896FFF","country":"United Arab Emirates","prefix_bits":"100010010110"},{"start":"897000","end":"8977FF","country":"Solomon Islands","prefix_bits":"1000100101110"},{"start":"898000","end":"898FFF","country":"Papua New Guinea","prefix_bits":"100010011000"},{"start":"899000","end":"8997FF","country":"ICAO (special use)","note":"Table 9-1 'ICAO2': block allocated for special use in the interest of flight safety","prefix_bits":"1000100110010"},{"start":"8A0000","end":"8A7FFF","country":"Indonesia","prefix_bits":"100010100"},{"start":"900000","end":"9007FF","country":"Marshall Islands","prefix_bits":"1001000000000"},{"start":"901000","end":"9017FF","country":"Cook Islands","prefix_bits":"1001000000010"},{"start":"902000","end":"9027FF","country":"Samoa","prefix_bits":"1001000000100"},{"start":"A00000","end":"AFFFFF","country":"United States","prefix_bits":"1010"},{"start":"C00000","end":"C3FFFF","country":"Canada","prefix_bits":"110000"},{"start":"C80000","end":"C87FFF","country":"New Zealand","prefix_bits":"110010000"},{"start":"C88000","end":"C88FFF","country":"Fiji","prefix_bits":"110010001000"},{"start":"C8A000","end":"C8A7FF","country":"Nauru","prefix_bits":"1100100010100"},{"start":"C8C000","end":"C8C7FF","country":"Saint Lucia","prefix_bits":"1100100011000"},{"start":"C8D000","end":"C8D7FF","country":"Tonga","prefix_bits":"1100100011010"},{"start":"C8E000","end":"C8E7FF","country":"Kiribati","prefix_bits":"1100100011100"},{"start":"C90000","end":"C907FF","country":"Vanuatu","prefix_bits":"1100100100000"},{"start":"C91000","end":"C917FF","country":"Andorra","prefix_bits":"1100100100010"},{"start":"C92000","end":"C927FF","country":"Dominica","prefix_bits":"1100100100100"},{"start":"C93000","end":"C937FF","country":"Saint Kitts and Nevis","prefix_bits":"1100100100110"},{"start":"C94000","end":"C947FF","country":"South Sudan","prefix_bits":"1100100101000"},{"start":"C95000","end":"C957FF","country":"Timor-Leste","prefix_bits":"1100100101010"},{"start":"C97000","end":"C977FF","country":"Tuvalu","prefix_bits":"1100100101110"},{"start":"E00000","end":"E3FFFF","country":"Argentina","prefix_bits":"111000"},{"start":"E40000","end":"E7FFFF","country":"Brazil","prefix_bits":"111001"},{"start":"E80000","end":"E80FFF","country":"Chile","prefix_bits":"111010000000"},{"start":"E84000","end":"E84FFF","country":"Ecuador","prefix_bits":"111010000100"},{"start":"E88000","end":"E88FFF","country":"Paraguay","prefix_bits":"111010001000"},{"start":"E8C000","end":"E8CFFF","country":"Peru","prefix_bits":"111010001100"},{"start":"E90000","end":"E90FFF","country":"Uruguay","prefix_bits":"111010010000"},{"start":"E94000","end":"E94FFF","country":"Bolivia (Plurinational State of)","prefix_bits":"111010010100"},{"start":"F00000","end":"F07FFF","country":"ICAO (temporary addresses)","note":"Table 9-1 'ICAO1': administered by ICAO for temporary aircraft addresses (Appendix section 8)","prefix_bits":"111100000"},{"start":"F09000","end":"F097FF","country":"ICAO (special use)","note":"Table 9-1 'ICAO2': block allocated for special use in the interest of flight safety","prefix_bits":"1111000010010"}]},"n_number":{"source":"FAA deterministic N-number to Mode S address mapping as implemented in FlightAware dump1090 public_html/registrations.js, function n_reg() (https://github.com/flightaware/dump1090/blob/master/public_html/registrations.js; also used in tar1090 and readsb-based maps). Checked against the 'Mode S Code (Base 16 / Hex)' field of the FAA Aircraft Registry (registry.faa.gov).","description":"US civil N-numbers are 'N' followed by 1 to 5 characters: a first digit 1-9, up to 4 more digits (0-9), and optionally a suffix of 1 or 2 letters at the end (the total after N is never more than 5 characters, so a 4-digit number takes at most 1 letter and a 5-digit number takes none). Letters come from a 24-letter alphabet without I and O: ABCDEFGHJKLMNPQRSTUVWXYZ (idx 0-23). All valid N-numbers are put in one depth-first order (at each level: no suffix, then letter suffixes, then the next digit 0-9), and the ICAO address is 0xA00001 plus the position. So N1 = A00001 and N99999 = ADF7C7 (915,399 addresses). Block sizes: a letter-suffix block = 601 (no suffix + 24 x [the letter alone + 24 two-letter suffixes] = 1 + 24*25). Under a 4-digit prefix: 35 (no suffix + 24 single letters + 10 fifth digits). Under a 3-digit prefix: 951 = 601 + 10*35. Under 2 digits: 10,111 = 601 + 10*951. Under 1 digit: 101,711 = 601 + 10*10,111. Encoding: offset = (d1 - 1) * 101,711. For each later digit d at position 2, 3 or 4, add 601 + d*size, where size is 10,111, 951 or 35. A 5th digit d adds 25 + d. A letter suffix after 1-3 digits adds 1 + idx(L1)*25, plus (1 + idx(L2)) if there is a second letter. A single letter after 4 digits adds 1 + idx(L1). Address = 0xA00001 + offset, written as 6 uppercase hex digits. Worked example N12345: 0 + (601 + 2*10111) + (601 + 3*951) + (601 + 4*35) + (25 + 5) = 25,048 = 0x61D8; 0xA00001 + 0x61D8 = A061D9. Example N628TS: (6-1)*101711 = 508,555; '2' -> 601 + 2*10111 = 20,823; '8' -> 601 + 8*951 = 8,209; 'TS' -> 1 + idx(T)=17 * 25 + 1 + idx(S)=16 = 443; total 538,030 = 0x835AE; 0xA00001 + 0x835AE = A835AF. Decoding (hex -> N-number) is the reverse: subtract 0xA00001, then divide by the block sizes in turn. This matches FlightAware's n_reg(); a local implementation of both directions round-trips all 915,399 addresses A00001-ADF7C7 with no errors. Only addresses A00001-ADF7C7 follow this scheme; other addresses in the US block A00000-AFFFFF do not come from N-numbers.","tests":[{"n":"N1A","hex":"A00002","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N1A"},{"n":"N1KE","hex":"A000E8","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N1KE"},{"n":"N100","hex":"A004B3","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N100"},{"n":"N10000","hex":"A00725","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N10000"},{"n":"N12345","hex":"A061D9","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N12345"},{"n":"N172SP","hex":"A12239","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N172SP"},{"n":"N265AL","hex":"A2919B","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N265AL"},{"n":"N3ZW","hex":"A31CF4","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N3ZW"},{"n":"N628TS","hex":"A835AF","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N628TS"},{"n":"N757AF","hex":"AA3410","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N757AF"},{"n":"N98765","hex":"ADC86D","verified_at":"https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=N98765"}]},"notes":["Amendment 92 to Annex 10 Vol III (pages dated 28/11/24) is the current source of the table. Compared with older lists, 54 State blocks and both ICAO2 blocks grew from 1,024 to 2,048 addresses (same start, end moved from ...3FF to ...7FF). Examples: Albania 501000-5017FF (was -5013FF), Luxembourg 4D0000-4D07FF, Malta 4D2000-4D27FF.","Under Amendment 92, Colombia grew from 0AC000-0ACFFF to 0AC000-0ADFFF (8,192 addresses), and Qatar from 06A000-06A3FF to 06A000-06AFFF (4,096).","Seven States had 1,024 blocks starting at ...C00 in older lists and now have a 2,048 block starting at ...800 that contains the old one: Croatia 501800-501FFF (was 501C00-501FFF), Latvia 502800-502FFF, Lithuania 503800-503FFF, Republic of Moldova 504800-504FFF, Slovakia 505800-505FFF, Slovenia 506800-506FFF, Uzbekistan 507800-507FFF.","States in the current table but absent from the 2013 FlightAware list: Andorra C91000-C917FF, Dominica C92000-C927FF, Saint Kitts and Nevis C93000-C937FF, South Sudan C94000-C947FF, Timor-Leste C95000-C957FF and Tuvalu C97000-C977FF. Montenegro is not in the 2002 edition. It is in the FlightAware list as 516000-5163FF and in the current table as 516000-5167FF.","The current table uses new names for some States. Older lists say Cape Verde (now Cabo Verde), Swaziland (Eswatini), The former Yugoslav Republic of Macedonia (North Macedonia), Turkey (Türkiye) and Czech Republic (Czechia). The 2002 edition lists 4C0000-4C7FFF as 'Yugoslavia'; the current table gives it to Serbia.","No start address was given to a different State in any of the cross-check sources. All 196 current ranges match tar1090's flags.js exactly.","ICAO1 (F00000-F07FFF) is ICAO's block for temporary addresses. The ICAO2 blocks (899000-8997FF and F09000-F097FF) are 'allocated for special use in the interest of flight safety'. These are not State allocations.","Addresses outside every listed range are unallocated. The 2002 edition (Appendix 4.3) reserved spare prefixes by region: 00100 AFI, 00101 SAM, 0101 EUR/NAT, 01100 MID, 01101 ASIA, 1001 NAM/PAC, 111011 CAR, and 1011, 1101, 1111 for future use. The Amendment 92 text no longer has this paragraph. Some decoders (e.g. FlightAware flags.js) still label these areas 'Unassigned (region)'. Do not treat them as State allocations.","A range gives the allocating State (State of Registry), not the operator. Military aircraft use addresses from their State's block. A transponder can also be mis-set: wrong, default or temporary addresses are common.","Sub-State splits are not in the ICAO table, so they are left out of the data. tar1090 adds sub-blocks inside the UK range for Bermuda, Cayman Islands, Turks and Caicos Islands, Isle of Man and Guernsey, and 789000-789FFF inside China's range for Hong Kong. These come from community knowledge of those registries' own assignments.","Military ranges: ICAO publishes no list of military sub-ranges. Community lists exist, for example the military-range tables in readsb/tar1090 and the ADS-B Exchange and Mictronics aircraft databases. None are included here as data.","N-number tests: 11 pairs were checked one page at a time against registry.faa.gov on 2026-11-26. All 11 match the 'Mode S Code (Base 16 / Hex)' field, and every aircraft had status 'Valid'. Some other N-numbers tried (N1, N44, N9MJ, N99999, N8888Q, N54321, N123AB, N9ZZ) were 'Reserved' with no Mode S code shown, and N4567X and N7543K were deregistered. These were not used as tests, but the algorithm gives their codes anyway (e.g. N99999 = ADF7C7).","The field prefix_bits on each range is the fixed bit pattern from Table 9-1, most significant bit first. Its length shows the block size: 4 bits = 1,048,576 addresses, 6 = 262,144, 9 = 32,768, 11 = 8,192, 12 = 4,096, 13 = 2,048."]},"registration_squawk.json":{"marks":{"source":{"primary":"ICAO, 'Aircraft Nationality Marks, National Emblems and Common Marks' (supplement to Annex 7), edition dated 1/6/26, https://www.icao.int/sites/default/files/airnavigation/NationalityMarks/Nationality_Marks_en.pdf","primary_archived_copy_used":"https://web.archive.org/web/20261116105759/https://www.icao.int/sites/default/files/airnavigation/NationalityMarks/Nationality_Marks_en.pdf","primary_note":"icao.int returned HTTP 403 to scripted requests; the Internet Archive copy captured 2026-11-16 was read instead. ICAO says it updates this list twice a year (mid-June and mid-December).","crosscheck":"FAA Order JO 7340.2 (Contractions), Chapter 4 Section 1, 'Nationality Marks Arranged Alphanumerically', https://www.faa.gov/air_traffic/publications/atpubs/cnt_html/chap4_section_1.html","format_and_separator":"Separator values come from presentation patterns in Wikipedia's 'List of aircraft registration prefixes' (secondary, not authoritative), https://en.wikipedia.org/wiki/List_of_aircraft_registration_prefixes. null = not documented in the sources checked. Annex 7 itself is not openly published, so the general hyphen rule could not be quoted.","special_cases":["https://www.hkatc.gov.hk/HK_AIP/AIP/GEN/HK_GEN2.1.pdf","https://images.io.gov.mo/bo/i/2003/28/ordem25/01_Schedule.doc","https://law.moj.gov.tw/ENG/LawClass/LawAll.aspx?pcode=K0090006"]},"retrieved":"2026-11-26","items":[{"prefix":"YA","state":"Afghanistan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YA for: Afghanistan"},{"prefix":"ZA","state":"Albania","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"7T","state":"Algeria","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 7T for: Algeria"},{"prefix":"D2","state":"Angola","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists D2 for: Angola"},{"prefix":"V2","state":"Antigua and Barbuda","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V2 for: Antigua and Barbuda"},{"prefix":"LQ","state":"Argentina","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists LQ for: Argentina"},{"prefix":"LV","state":"Argentina","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists LV for: Argentina"},{"prefix":"EK","state":"Armenia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EK for: Armenia"},{"prefix":"VH","state":"Australia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VH for: Australia"},{"prefix":"OE","state":"Austria","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OE for: Austria"},{"prefix":"4K","state":"Azerbaijan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 4K for: Azerbaijan"},{"prefix":"C6","state":"Bahamas","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists C6 for: Bahamas"},{"prefix":"A9C","state":"Bahrain","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A9C for: Bahrain"},{"prefix":"S2","state":"Bangladesh","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists S2 for: Bangladesh"},{"prefix":"8P","state":"Barbados","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 8P for: Barbados"},{"prefix":"EW","state":"Belarus","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EW for: Belarus"},{"prefix":"OO","state":"Belgium","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OO for: Belgium"},{"prefix":"V3","state":"Belize","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V3 for: Belize"},{"prefix":"TY","state":"Benin","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TY for: Benin"},{"prefix":"A5","state":"Bhutan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A5 for: Bhutan"},{"prefix":"CP","state":"Bolivia (Plurinational State of)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CP for: Bolivia (Plurinational State of)"},{"prefix":"E7","state":"Bosnia and Herzegovina","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists E7 for: Bosnia and Herzegovina"},{"prefix":"A2","state":"Botswana","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A2 for: Botswana"},{"prefix":"PP","state":"Brazil","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PP for: Brazil"},{"prefix":"PR","state":"Brazil","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PR for: Brazil"},{"prefix":"PS","state":"Brazil","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PS for: Brazil"},{"prefix":"PT","state":"Brazil","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PT for: Brazil"},{"prefix":"PU","state":"Brazil","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PU for: Brazil"},{"prefix":"V8","state":"Brunei Darussalam","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V8 for: Brunei Darussalam"},{"prefix":"LZ","state":"Bulgaria","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists LZ for: Bulgaria"},{"prefix":"XT","state":"Burkina Faso","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XT for: Burkina Faso"},{"prefix":"9U","state":"Burundi","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9U for: Burundi"},{"prefix":"D4","state":"Cabo Verde","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists D4 for: Cabo Verde"},{"prefix":"XU","state":"Cambodia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XU for: Cambodia"},{"prefix":"TJ","state":"Cameroon","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TJ for: Cameroon"},{"prefix":"C","state":"Canada","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists C for: Canada"},{"prefix":"CF","state":"Canada","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CF for: Canada"},{"prefix":"TL","state":"Central African Republic","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TL for: Central African Republic"},{"prefix":"TT","state":"Chad","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TT for: Chad"},{"prefix":"CC","state":"Chile","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CC for: Chile"},{"prefix":"B","state":"China (including Hong Kong SAR and Macao SAR)","separator":"-","note":"ICAO lists B for China including Hong Kong SAR and Macao SAR. Mainland format per Wikipedia list (secondary): B-0000 to B-9999, and since 2018 letters may appear in the last two positions. Hong Kong: B- followed by three letters starting H, K or L (Hong Kong AIP GEN 2.1). Macao: B- followed by three letters (Macao Air Navigation Regulation, First Schedule). Taiwan also uses B- followed by five digits (Taiwan Regulations of Aircraft Registration, Art. 22); Taiwan is not in the ICAO list. Decode B- by number format: 5 digits = Taiwan; 3 letters starting H/K/L = Hong Kong; other 3 letters (in practice often M) = Macao; 4 characters = mainland China.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists B for: China (including Hong Kong SAR and Macao SAR)"},{"prefix":"HJ","state":"Colombia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HJ for: Colombia"},{"prefix":"HK","state":"Colombia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HK for: Colombia"},{"prefix":"D6","state":"Comoros","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists D6 for: Comoros"},{"prefix":"TN","state":"Congo","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TN for: Congo"},{"prefix":"E5","state":"Cook Islands","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists E5 for: Cook Islands"},{"prefix":"TI","state":"Costa Rica","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TI for: Costa Rica"},{"prefix":"TU","state":"Côte d'Ivoire","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TU for: Côte d'Ivoire"},{"prefix":"9A","state":"Croatia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9A for: Croatia"},{"prefix":"CU","state":"Cuba","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CU for: Cuba"},{"prefix":"5B","state":"Cyprus","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5B for: Cyprus"},{"prefix":"OK","state":"Czechia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OK for: Czechia"},{"prefix":"P","state":"Democratic People's Republic of Korea","separator":"-","note":"ICAO flags this mark as differing from Annex 7 paragraph 3.3 (mark not taken from the State's ITU radio call-sign series).","icao_differs_from_annex7_3_3":true,"crosscheck_faa":"FAA JO 7340.2 lists P for: Democratic People's Republic of Korea"},{"prefix":"9Q","state":"Democratic Republic of the Congo","separator":null,"note":"ICAO and FAA list 9Q for the Democratic Republic of the Congo; Wikipedia's list (secondary) shows 9S and 9T formats instead and notes they do not appear in the ICAO document. Unresolved.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9Q for: Democratic Republic of the Congo"},{"prefix":"OY","state":"Denmark","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OY for: Denmark"},{"prefix":"J2","state":"Djibouti","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists J2 for: Djibouti"},{"prefix":"J7","state":"Dominica","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists J7 for: Dominica"},{"prefix":"HI","state":"Dominican Republic","separator":"","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HI for: Dominican Republic"},{"prefix":"HC","state":"Ecuador","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HC for: Ecuador"},{"prefix":"SU","state":"Egypt","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists SU for: Egypt"},{"prefix":"YS","state":"El Salvador","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YS for: El Salvador"},{"prefix":"3C","state":"Equatorial Guinea","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 3C for: Equatorial Guinea"},{"prefix":"E3","state":"Eritrea","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists E3 for: Eritrea"},{"prefix":"ES","state":"Estonia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ES for: Estonia"},{"prefix":"3DC","state":"Eswatini","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 3DC for: Eswatini"},{"prefix":"ET","state":"Ethiopia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ET for: Ethiopia"},{"prefix":"DQ","state":"Fiji","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists DQ for: Fiji"},{"prefix":"OH","state":"Finland","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OH for: Finland"},{"prefix":"F","state":"France","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists F for: France"},{"prefix":"TR","state":"Gabon","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TR for: Gabon"},{"prefix":"C5","state":"Gambia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists C5 for: Gambia"},{"prefix":"4L","state":"Georgia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 4L for: Georgia"},{"prefix":"D","state":"Germany","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists D for: Germany"},{"prefix":"9G","state":"Ghana","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9G for: Ghana"},{"prefix":"9GR","state":"Ghana","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9GR for: Ghana"},{"prefix":"SX","state":"Greece","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists SX for: Greece"},{"prefix":"J3","state":"Grenada","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists J3 for: Grenada"},{"prefix":"TG","state":"Guatemala","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TG for: Guatemala"},{"prefix":"3X","state":"Guinea","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 3X for: Guinea"},{"prefix":"J5","state":"Guinea-Bissau","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists J5 for: Guinea-Bissau"},{"prefix":"8R","state":"Guyana","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 8R for: Guyana"},{"prefix":"HH","state":"Haiti","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HH for: Haiti"},{"prefix":"HR","state":"Honduras","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HR for: Honduras"},{"prefix":"HA","state":"Hungary","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HA for: Hungary"},{"prefix":"TF","state":"Iceland","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TF for: Iceland"},{"prefix":"VT","state":"India","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VT for: India"},{"prefix":"PK","state":"Indonesia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PK for: Indonesia"},{"prefix":"EP","state":"Iran (Islamic Republic of)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EP for: Iran (Islamic Republic of)"},{"prefix":"YI","state":"Iraq","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YI for: Iraq"},{"prefix":"EI","state":"Ireland","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EI for: Ireland"},{"prefix":"EJ","state":"Ireland","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EJ for: Ireland"},{"prefix":"4X","state":"Israel","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 4X for: Israel"},{"prefix":"4Z","state":"Israel","separator":null,"note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"I","state":"Italy","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists I for: Italy"},{"prefix":"6Y","state":"Jamaica","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 6Y for: Jamaica"},{"prefix":"JA","state":"Japan","separator":"varies","separator_note":"JA0001-JA9999, JA001A-JA999Z, JA01AA-JA99ZZ without hyphen; JA-AAAA-JA-ZZZZ with hyphen (Wikipedia list).","note":"Japanese registrations usually have no hyphen (for example JA8089).","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists JA for: Japan"},{"prefix":"JY","state":"Jordan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists JY for: Jordan"},{"prefix":"UP","state":"Kazakhstan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists UP for: Kazakhstan"},{"prefix":"5Y","state":"Kenya","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5Y for: Kenya"},{"prefix":"9K","state":"Kuwait","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9K for: Kuwait"},{"prefix":"EX","state":"Kyrgyzstan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EX for: Kyrgyzstan"},{"prefix":"RDPL","state":"Lao People's Democratic Republic","separator":"-","note":"ICAO flags this mark as differing from Annex 7 paragraph 3.3.","icao_differs_from_annex7_3_3":true,"crosscheck_faa":"FAA JO 7340.2 lists RDPL for: Lao People's Democratic Republic"},{"prefix":"YL","state":"Latvia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YL for: Latvia"},{"prefix":"OD","state":"Lebanon","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OD for: Lebanon"},{"prefix":"7P","state":"Lesotho","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 7P for: Lesotho"},{"prefix":"A8","state":"Liberia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A8 for: Liberia"},{"prefix":"5A","state":"Libya","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5A for: Libya"},{"prefix":"HB","state":"Liechtenstein","separator":"-","note":"ICAO: 'HB plus national emblem' for both Switzerland and Liechtenstein; the national emblem on the aircraft distinguishes them.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HB for: Liechtenstein; Switzerland"},{"prefix":"LY","state":"Lithuania","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists LY for: Lithuania"},{"prefix":"LX","state":"Luxembourg","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists LX for: Luxembourg"},{"prefix":"5R","state":"Madagascar","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5R for: Madagascar"},{"prefix":"7Q","state":"Malawi","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 7Q for: Malawi"},{"prefix":"9M","state":"Malaysia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9M for: Malaysia"},{"prefix":"8Q","state":"Maldives","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 8Q for: Maldives"},{"prefix":"TZ","state":"Mali","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TZ for: Mali"},{"prefix":"9H","state":"Malta","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9H for: Malta"},{"prefix":"V7","state":"Marshall Islands","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V7 for: Marshall Islands"},{"prefix":"5T","state":"Mauritania","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5T for: Mauritania"},{"prefix":"3B","state":"Mauritius","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 3B for: Mauritius"},{"prefix":"XA","state":"Mexico","separator":"-","note":"ICAO: XA/XB/XC plus national emblem (Mexico).","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XA for: Mexico"},{"prefix":"XB","state":"Mexico","separator":"-","note":"ICAO: XA/XB/XC plus national emblem (Mexico).","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XB for: Mexico"},{"prefix":"XC","state":"Mexico","separator":"-","note":"ICAO: XA/XB/XC plus national emblem (Mexico).","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XC for: Mexico"},{"prefix":"V6","state":"Micronesia (Federated States of)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V6 for: Micronesia (Federated States of)"},{"prefix":"3A","state":"Monaco","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 3A for: Monaco"},{"prefix":"JU","state":"Mongolia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists JU for: Mongolia"},{"prefix":"4O","state":"Montenegro","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 4O for: Montenegro"},{"prefix":"CN","state":"Morocco","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CN for: Morocco"},{"prefix":"C9","state":"Mozambique","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists C9 for: Mozambique"},{"prefix":"XY","state":"Myanmar","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XY for: Myanmar"},{"prefix":"XZ","state":"Myanmar","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XZ for: Myanmar"},{"prefix":"V5","state":"Namibia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V5 for: Namibia"},{"prefix":"C2","state":"Nauru","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists C2 for: Nauru"},{"prefix":"9N","state":"Nepal","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9N for: Nepal"},{"prefix":"PH","state":"Netherlands","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PH for: Netherlands"},{"prefix":"P4","state":"Aruba (Netherlands)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists P4 for: Aruba (Netherlands)"},{"prefix":"PJ","state":"Curaçao (Netherlands)","separator":"-","note":"ICAO: Curaçao and Sint Maarten (Netherlands). The FAA copy still says 'Netherlands Antilles'.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PJ for: Netherlands Antilles (Netherlands)"},{"prefix":"PJ","state":"Sint Maarten (Netherlands)","separator":"-","note":"ICAO: Curaçao and Sint Maarten (Netherlands). The FAA copy still says 'Netherlands Antilles'.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PJ for: Netherlands Antilles (Netherlands)"},{"prefix":"ZK","state":"New Zealand","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZK for: New Zealand"},{"prefix":"ZL","state":"New Zealand","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZL for: New Zealand"},{"prefix":"ZM","state":"New Zealand","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZM for: New Zealand"},{"prefix":"YN","state":"Nicaragua","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YN for: Nicaragua"},{"prefix":"5U","state":"Niger","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5U for: Niger"},{"prefix":"5N","state":"Nigeria","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5N for: Nigeria"},{"prefix":"Z3","state":"North Macedonia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists Z3 for: North Macedonia"},{"prefix":"LN","state":"Norway","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists LN for: Norway"},{"prefix":"A4O","state":"Oman","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A4O for: Oman"},{"prefix":"AP","state":"Pakistan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists AP for: Pakistan"},{"prefix":"T8","state":"Palau","separator":null,"note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists T8 for: Palau"},{"prefix":"HP","state":"Panama","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HP for: Panama"},{"prefix":"P2","state":"Papua New Guinea","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists P2 for: Papua New Guinea"},{"prefix":"ZP","state":"Paraguay","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"OB","state":"Peru","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OB for: Peru"},{"prefix":"RP","state":"Philippines","separator":"-","note":"ICAO flags this mark as differing from Annex 7 paragraph 3.3.","icao_differs_from_annex7_3_3":true,"crosscheck_faa":"FAA JO 7340.2 lists RP for: Philippines"},{"prefix":"SP","state":"Poland","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists SP for: Poland"},{"prefix":"CR","state":"Portugal","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CR for: Portugal"},{"prefix":"CS","state":"Portugal","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CS for: Portugal"},{"prefix":"A7","state":"Qatar","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A7 for: Qatar"},{"prefix":"HL","state":"Republic of Korea","separator":"","note":"No hyphen (HL7xxx style, per Wikipedia list).","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HL for: Republic of Korea"},{"prefix":"ER","state":"Republic of Moldova","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ER for: Republic of Moldova"},{"prefix":"YR","state":"Romania","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YR for: Romania"},{"prefix":"RA","state":"Russian Federation","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists RA for: Russian Federation"},{"prefix":"9XR","state":"Rwanda","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9XR for: Rwanda"},{"prefix":"V4","state":"Saint Kitts and Nevis","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists V4 for: Saint Kitts and Nevis"},{"prefix":"J6","state":"Saint Lucia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists J6 for: Saint Lucia"},{"prefix":"J8","state":"Saint Vincent and the Grenadines","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists J8 for: Saint Vincent and the Grenadines"},{"prefix":"5W","state":"Samoa","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5W for: Samoa"},{"prefix":"T7","state":"San Marino","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists T7 for: San Marino"},{"prefix":"S9","state":"Sao Tome and Principe","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists S9 for: Sao Tome and Principe"},{"prefix":"HZ","state":"Saudi Arabia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HZ for: Saudi Arabia"},{"prefix":"6V","state":"Senegal","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 6V for: Senegal"},{"prefix":"6W","state":"Senegal","separator":null,"note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 6W for: Senegal"},{"prefix":"YU","state":"Serbia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YU for: Serbia"},{"prefix":"S7","state":"Seychelles","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists S7 for: Seychelles"},{"prefix":"9L","state":"Sierra Leone","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9L for: Sierra Leone"},{"prefix":"9V","state":"Singapore","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9V for: Singapore"},{"prefix":"OM","state":"Slovakia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists OM for: Slovakia"},{"prefix":"S5","state":"Slovenia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists S5 for: Slovenia"},{"prefix":"H4","state":"Solomon Islands","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists H4 for: Solomon Islands"},{"prefix":"6O","state":"Somalia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 6O for: Somalia"},{"prefix":"ZS","state":"South Africa","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZS for: South Africa"},{"prefix":"ZT","state":"South Africa","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZT for: South Africa"},{"prefix":"ZU","state":"South Africa","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZU for: South Africa"},{"prefix":"Z8","state":"South Sudan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"EC","state":"Spain","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EC for: Spain"},{"prefix":"4R","state":"Sri Lanka","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 4R for: Sri Lanka"},{"prefix":"ST","state":"Sudan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ST for: Sudan"},{"prefix":"PZ","state":"Suriname","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists PZ for: Suriname"},{"prefix":"SE","state":"Sweden","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists SE for: Sweden"},{"prefix":"HB","state":"Switzerland","separator":"-","note":"ICAO: 'HB plus national emblem' for both Switzerland and Liechtenstein; the national emblem on the aircraft distinguishes them.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HB for: Liechtenstein; Switzerland"},{"prefix":"YK","state":"Syrian Arab Republic","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YK for: Syrian Arab Republic"},{"prefix":"EY","state":"Tajikistan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EY for: Tajikistan"},{"prefix":"HS","state":"Thailand","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists HS for: Thailand"},{"prefix":"5V","state":"Togo","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5V for: Togo"},{"prefix":"A3","state":"Tonga","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A3 for: Tonga"},{"prefix":"9Y","state":"Trinidad and Tobago","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9Y for: Trinidad and Tobago"},{"prefix":"TS","state":"Tunisia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TS for: Tunisia"},{"prefix":"TC","state":"Türkiye","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists TC for: Turkey"},{"prefix":"EZ","state":"Turkmenistan","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists EZ for: Turkmenistan"},{"prefix":"5X","state":"Uganda","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5X for: Uganda"},{"prefix":"UR","state":"Ukraine","separator":"varies","separator_note":"UR-AAA and UR-AAAA with hyphen; UR10000-UR99999 without (Wikipedia list).","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists UR for: Ukraine"},{"prefix":"A6","state":"United Arab Emirates","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists A6 for: United Arab Emirates"},{"prefix":"G","state":"United Kingdom","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists G for: United Kingdom"},{"prefix":"VP-A","state":"Anguilla (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-A for: Anguilla (United Kingdom)"},{"prefix":"2","state":"Bailiwick of Guernsey (United Kingdom)","separator":"-","note":"Guernsey uses the single digit 2 followed by a hyphen (2-AAAA per Wikipedia list).","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 2 for: Bailiwick of Guernsey (United Kingdom)"},{"prefix":"VP-B","state":"Bermuda (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-B for: Bermuda (United Kingdom)"},{"prefix":"VQ-B","state":"Bermuda (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VQ-B for: Bermuda (United Kingdom)"},{"prefix":"VP-C","state":"Cayman Islands (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-C for: Cayman Islands (United Kingdom)"},{"prefix":"VQ-C","state":"Cayman Islands (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"VP-F","state":"Falkland Islands (Malvinas) (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-F for: Falkland Islands (Malvinas) (United Kingdom)"},{"prefix":"VP-G","state":"Gibraltar (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-G for: Gibraltar (United Kingdom)"},{"prefix":"ZD-A","state":"Gibraltar (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"ZD-B","state":"Gibraltar (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"ZD-C","state":"Gibraltar (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"ZD-D","state":"Gibraltar (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"ZD-E","state":"Gibraltar (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"M","state":"Isle of Man (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists M for: Isle of Man (United Kingdom)"},{"prefix":"ZJ","state":"Jersey (United Kingdom)","separator":null,"note":"ICAO (1/6/26) still lists ZJ for Jersey; Wikipedia's list places ZJ under retired allocations (2015-2022). Unresolved.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists ZJ for: Jersey (United Kingdom)"},{"prefix":"VP-M","state":"Montserrat (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-M for: Montserrat (United Kingdom)"},{"prefix":"VQ-H","state":"St. Helena/Ascension (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VQ-H for: St. Helena/Ascension (United Kingdom)"},{"prefix":"VQ-T","state":"Turks and Caicos (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VQ-T for: Turks and Caicos (United Kingdom)"},{"prefix":"VP-L","state":"Virgin Islands (United Kingdom)","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists VP-L for: Virgin Islands (United Kingdom)"},{"prefix":"5H","state":"United Republic of Tanzania","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 5H for: United Republic of Tanzania"},{"prefix":"N","state":"United States","separator":"","note":"No hyphen: N followed by the registration number (e.g. N12345). Format per Wikipedia list: N1 to N99999, also with up to two trailing letters.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists N for: United States"},{"prefix":"CX","state":"Uruguay","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists CX for: Uruguay"},{"prefix":"UK","state":"Uzbekistan","separator":"","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists UK for: Uzbekistan"},{"prefix":"YJ","state":"Vanuatu","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YJ for: Vanuatu"},{"prefix":"YV","state":"Venezuela (Bolivarian Republic of)","separator":"","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists YV for: Venezuela (Bolivarian Republic of)"},{"prefix":"XV","state":"Viet Nam","separator":null,"note":"ICAO (1/6/26) and FAA JO 7340.2 both list XV for Viet Nam. Wikipedia's list (secondary) shows Vietnamese aircraft registered VN- (e.g. VN-A100 to VN-A999). Treat VN- as Viet Nam in practice and flag the discrepancy.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists XV for: Vietnam"},{"prefix":"7O","state":"Yemen","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 7O for: Yemen"},{"prefix":"9I","state":"Zambia","separator":null,"note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"9J","state":"Zambia","separator":"-","note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists 9J for: Zambia"},{"prefix":"Z","state":"Zimbabwe","separator":"-","note":"Zimbabwe: ICAO lists Z and Z2. An older FAA copy lists only Z and flags it as differing from Annex 7 paragraph 3.3; the current ICAO list carries no such flag for Zimbabwe.","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"FAA JO 7340.2 lists Z for: Zimbabwe"},{"prefix":"Z2","state":"Zimbabwe","separator":null,"note":"","icao_differs_from_annex7_3_3":false,"crosscheck_faa":"not in FAA JO 7340.2 copy (FAA copy appears older than the ICAO 1/6/26 list)"},{"prefix":"B-H / B-K / B-L","state":"China - Hong Kong SAR","separator":"-","note":"Hong Kong AIP GEN 2.1 para 4.1: nationality mark B, hyphen, three-letter registration mark; first letter H, K or L (HAA-HZZ, KAA-KZZ, LAA-LZZ). Not a separate ICAO prefix: falls under ICAO's B for China.","source":"https://www.hkatc.gov.hk/HK_AIP/AIP/GEN/HK_GEN2.1.pdf","archived":"https://web.archive.org/web/20230601123119/https://www.hkatc.gov.hk/HK_AIP/AIP/GEN/HK_GEN2.1.pdf","not_in_icao_list_as_separate_mark":true},{"prefix":"B (3 letters)","state":"China - Macao SAR","separator":"-","note":"Macao Air Navigation Regulation, First Schedule Part B: mark of origin B, hyphen, group of 3 capital letters assigned by the Civil Aviation Authority. The source does not fix the first letter; Wikipedia's list (secondary) gives B-MAA to B-MZZ. Falls under ICAO's B for China.","source":"https://images.io.gov.mo/bo/i/2003/28/ordem25/01_Schedule.doc","archived":"https://web.archive.org/web/20250421231635/https://images.io.gov.mo/bo/i/2003/28/ordem25/01_Schedule.doc","not_in_icao_list_as_separate_mark":true},{"prefix":"B (5 digits)","state":"Taiwan","separator":"-","note":"Taiwan Regulations of Aircraft Registration (amended 2013-03-20), Art. 22: letter B, a dash, then a 5-digit number. Taiwan is not an ICAO Contracting State and does not appear in the ICAO list.","source":"https://law.moj.gov.tw/ENG/LawClass/LawAll.aspx?pcode=K0090006","archived":"https://web.archive.org/web/20230426060554/https://law.moj.gov.tw/Eng/LawClass/LawAll.aspx?PCode=K0090006","not_in_icao_list_as_separate_mark":true},{"prefix":"4YB","state":"Arab Air Cargo (common mark; established by Jordan and Iraq; State of Registry function: Jordan)","separator":null,"note":"ICAO common mark allocated to an international operating agency, not a national mark. ICAO holds the series 4YA-4YZ for this purpose.","source":"https://www.icao.int/sites/default/files/airnavigation/NationalityMarks/Nationality_Marks_en.pdf","not_in_icao_list_as_separate_mark":false,"common_mark":true,"crosscheck_faa":"FAA JO 7340.2 lists 4YB: Arab Air Cargo (Jordan)"}]},"squawks":{"items":[{"code":"7700","meaning":"Emergency","scope":"worldwide","source":"https://regulatorylibrary.caa.co.uk/923-2012/Content/Regs/03000_SERA13005_SSR_transponder_Mode_A_code_setting.htm","basis":"SERA.13005(a)(1) (UK-retained text of EU Regulation 923/2012): 'select Code 7700 to indicate a state of emergency'. Also in Annex 10 Vol IV code set 2 (7400, 7500, 7600, 7700) per Amendment 92 summary (https://www.caaf.org.fj/wp-content/uploads/2026/07/Summary-of-Amendments_Amendment-92-to-Annex-10Vol-IV.pdf) and FAA AIM 4-1-20 (https://www.faa.gov/air_traffic/publications/atpubs/aim_html/chap4_section_1.html)."},{"code":"7600","meaning":"Radio-communication failure (lost comms)","scope":"worldwide","source":"https://regulatorylibrary.caa.co.uk/923-2012/Content/Regs/03000_SERA13005_SSR_transponder_Mode_A_code_setting.htm","basis":"SERA.13005(a)(2): 'select Code 7600 to indicate a state of radio-communication failure'. Listed in Annex 10 Vol IV code set 2 (https://www.caaf.org.fj/wp-content/uploads/2026/07/Summary-of-Amendments_Amendment-92-to-Annex-10Vol-IV.pdf)."},{"code":"7500","meaning":"Unlawful interference (hijack)","scope":"worldwide","source":"https://www.caaf.org.fj/wp-content/uploads/2026/07/Summary-of-Amendments_Amendment-92-to-Annex-10Vol-IV.pdf","basis":"ICAO Annex 10 Vol IV 2.1.4.2.3 (text reproduced by Civil Aviation Authority of Fiji in its Amendment 92 summary): 'Code 7500 to provide recognition of an aircraft which is being subjected to unlawful interference.' Also SERA.13005(a)(3) (https://regulatorylibrary.caa.co.uk/923-2012/Content/Regs/03000_SERA13005_SSR_transponder_Mode_A_code_setting.htm) and FAA AIM 4-1-20: 'Only nondiscrete Code 7500 will be decoded as the hijack code.'"},{"code":"7400","meaning":"Remotely piloted aircraft system (RPAS/drone) in a lost C2 (command-and-control) link state","scope":"worldwide (new ICAO standard)","source":"https://www.caaf.org.fj/wp-content/uploads/2026/07/Summary-of-Amendments_Amendment-92-to-Annex-10Vol-IV.pdf","basis":"ICAO Annex 10 Vol IV 2.1.4.2.4, added by Amendment 92 (applicable 26 November 2026): 'Code 7400 to provide recognition of a remotely piloted aircraft system (RPAS) in a lost C2 Link state.' Newly applicable; national adoption may lag."},{"code":"2000","meaning":"No code assigned by ATS (default when no ATS instruction on code setting)","scope":"UK and EU SERA airspace (ICAO default unless a competent authority prescribes otherwise)","source":"https://regulatorylibrary.caa.co.uk/923-2012/Content/Regs/03000_SERA13005_SSR_transponder_Mode_A_code_setting.htm","basis":"SERA.13005(b)(2): 'in the absence of ATS instructions related to code setting, select code 2000 or another code as prescribed by the competent authority'. The ICAO PANS-OPS (Doc 8168) wording could not be checked directly (not openly available)."},{"code":"7000","meaning":"Conspicuity code: aircraft not receiving air traffic services (typically VFR)","scope":"UK and EU SERA airspace","source":"https://regulatorylibrary.caa.co.uk/923-2012/Content/Regs/03000_SERA13005_SSR_transponder_Mode_A_code_setting.htm","basis":"SERA.13005(b)(3): 'when not receiving air traffic services, select code 7000 in order to improve the detection of suitably equipped aircraft unless otherwise prescribed by the competent authority'."},{"code":"1200","meaning":"VFR (no other code assigned)","scope":"United States (FAA)","source":"https://www.faa.gov/air_traffic/publications/atpubs/aim_html/chap4_section_1.html","basis":"FAA AIM 4-1-20: 'Unless otherwise instructed by an ATC facility, adjust transponder/ADS-B to reply on Mode 3/A Code 1200 regardless of altitude.'"},{"code":"4000","meaning":"Military aircraft operating VFR or IFR in restricted/warning areas (unless ATC assigns another code)","scope":"United States (FAA)","source":"https://www.faa.gov/air_traffic/publications/atpubs/aim_html/chap4_section_1.html","basis":"FAA AIM 4-1-20: 'Military pilots operating VFR or IFR within restricted/warning areas should adjust their transponders to Code 4000 unless another code has been assigned by ATC.'"},{"code":"7777","meaning":"Reserved for military interceptor operations; civil aircraft should never use it","scope":"United States (FAA)","source":"https://www.faa.gov/air_traffic/publications/atpubs/aim_html/chap4_section_1.html","basis":"FAA AIM 4-1-20: 'Under no circumstances should a pilot of a civil aircraft operate the transponder on Code 7777. This code is reserved for military interceptor operations.'"}]},"notes":["Count: 233 ICAO nationality-mark entries (one per prefix-State pair; Brazil, Mexico, South Africa and others have several), 1 ICAO common mark (4YB) and 3 sub-format entries for Hong Kong, Macao and Taiwan.","Cross-check: 221 of the 233 ICAO prefixes appear in the FAA JO 7340.2 copy with the same State. The 12 missing from FAA (4Z, 9I, VQ-C, Z2, Z8, ZA, ZD-A to ZD-E, ZP) appear to be newer ICAO additions. FAA naming differs in places (Turkey vs Türkiye; PJ as Netherlands Antilles vs Curaçao/Sint Maarten).","ICAO list section 2: Contracting States that have not notified nationality marks: Andorra, Kiribati, Timor-Leste, Tuvalu. Section 3: non-Contracting State that has not notified: Holy See.","Military and other state aircraft: the Chicago Convention, Art. 3, applies only to civil aircraft. Aircraft used in military, customs and police services are 'state aircraft' (ICAO Doc 7300, https://www.icao.int/publications/Documents/7300_9ed.pdf; archived copy read: https://web.archive.org/web/20251209235949/https://www2023.icao.int/publications/Documents/7300_9ed.pdf), so the nationality-mark system does not cover them. Wikipedia (https://en.wikipedia.org/wiki/Aircraft_registration, secondary) notes that most military aircraft use tail codes and serial numbers and are most often not given civil registrations. A serial number on a military aircraft cannot be decoded with this table.","Government-owned non-military aircraft may still carry civil registrations (Wikipedia, secondary).","Squawk caveats: a Mode A code is set by the crew and can be entered by mistake. Codes other than 7500/7600/7700 (and the new 7400) are assigned nationally or regionally, so 1200, 7000, 2000, 4000 and 7777 must be read against the airspace the aircraft is in. ICAO Doc 4444 and Doc 8168 (PANS) are not openly available and were not quoted directly; the worldwide codes rest on the SERA text, which transposes the ICAO provisions, on Annex 10 Vol IV as reproduced by CAA Fiji, and on the FAA AIM.","FAA AIM 4-1-20 also notes that discrete codes 7600-7677 and 7700-7777 trigger special indicators in US automated ATC systems.","Retrieval: all sources read 2026-11-26. ICAO and Hong Kong AIP pages were read from Internet Archive copies (icao.int returned 403; the HK AIP URL now returns 404)."]}}; | |
| // id-decoder: what a ship or aircraft identifier says, with sources and limits. | |
| // Pure functions, no network. Works in the browser and in Node (tests). Data tables are passed in (see data/). | |
| const norm = (s) => String(s || "").trim().toUpperCase().replace(/\s+/g, " "); | |
| const fact = (label, value, source) => ({ label, value, source }); | |
| // ---------------------------------------------------------------- MMSI (ITU-R M.585) | |
| function decodeMMSI(raw, data) { | |
| const s = norm(raw).replace(/^MMSI[:\s]*/, "").replace(/[\s-]/g, ""); | |
| if (!/^\d+$/.test(s)) return null; | |
| const { mid, mmsi } = data; | |
| const out = { type: "MMSI", input: s, title: "MMSI (Maritime Mobile Service Identity)", verdict: "info", facts: [], cautions: [], sources: [mmsi.source_document || mmsi.source] }; | |
| if (s.length !== 9) { | |
| out.verdict = "warn"; | |
| out.facts.push(fact("Format", `${s.length} digits; maritime identities have 9`, mmsi.source_document || mmsi.source)); | |
| if (s === "1193046") out.cautions.push(sign(mmsi, "1193046")); | |
| return out; | |
| } | |
| // most specific prefix first | |
| const formats = [...mmsi.formats].filter((f) => !/12 characters/.test(f.pattern)) | |
| .sort((a, b) => (b.prefix || "").length - (a.prefix || "").length); | |
| let f = formats.find((x) => x.prefix && (x.prefix === s || (x.prefix.length < 9 && s.startsWith(x.prefix)))); | |
| if (!f) f = formats.find((x) => x.prefix === ""); | |
| out.facts.push(fact("Kind of station", `${f.type} (pattern ${f.pattern})`, `${mmsi.version}, ${f.reference}`)); | |
| if (/^Annex 2/.test(f.reference)) out.title = "Maritime identity (ITU-R M.585 Annex 2: a device identity, not an MMSI assignment)"; | |
| if (f.mid_position) { | |
| const code = s.slice(f.mid_position[0], f.mid_position[1]); | |
| const country = mid.mids[code]; | |
| if (country) { | |
| out.facts.push(fact("MID (country digits)", `${code}: ${country}`, mid.source_title || mid.source)); | |
| out.verdict = "ok"; | |
| } else { | |
| out.verdict = "warn"; | |
| out.facts.push(fact("MID (country digits)", `${code}: not allocated to any country or area`, mid.source_title || mid.source)); | |
| out.cautions.push(sign(mmsi, "not allocated")); | |
| } | |
| if (f.prefix === "" && !(+code >= 201 && +code <= 775)) out.cautions.push(sign(mmsi, "201-775")); | |
| if (f.prefix === "" && /^\d{3}0{6}$/.test(s)) { out.verdict = "warn"; out.cautions.push(sign(mmsi, "zeros")); } | |
| } | |
| if (s === "123456789" || s === "987654321") { out.verdict = "warn"; out.cautions.push(sign(mmsi, "123456789")); } | |
| out.cautions.push({ text: "An MMSI is typed into the transponder by its user. A valid number shows how it was formed, not which ship is using it: MMSIs are copied, shared and spoofed. Check the vessel's name, IMO number and call sign together.", source: null }); | |
| return out; | |
| } | |
| function sign(mmsi, key) { | |
| const s = (mmsi.suspicious || []).find((x) => (x.sign + " " + x.detail).includes(key)); | |
| return s ? { text: `${s.sign}. ${s.detail}`, source: (s.sources || [])[0] || null } : { text: key, source: null }; | |
| } | |
| // ---------------------------------------------------------------- IMO ship number (check digit) | |
| function decodeIMO(raw) { | |
| const s = norm(raw).replace(/^IMO[:\s]*/, ""); | |
| if (!/^\d{7}$/.test(s)) return null; | |
| const d = s.split("").map(Number); | |
| const sum = d.slice(0, 6).reduce((t, x, i) => t + x * (7 - i), 0); | |
| const ok = sum % 10 === d[6]; | |
| const src = "IMO check-digit formula, as widely documented (no official IMO text gives it)"; | |
| return { | |
| type: "IMO", input: s, title: "IMO ship identification number", verdict: ok ? "ok" : "warn", sources: [src], | |
| facts: [fact("Check digit", ok ? `valid (digits × 7,6,5,4,3,2 sum to ${sum}; last digit ${d[6]} matches)` : | |
| `INVALID: digits × 7,6,5,4,3,2 sum to ${sum}, so the last digit should be ${sum % 10}, not ${d[6]}`, src)], | |
| cautions: [{ text: ok ? "A valid check digit only means the number is well formed. Look it up in IMO GISIS or Equasis to see which ship it belongs to; ships keep their IMO number for life, through renames and new flags." : | |
| "Genuine IMO ship numbers are expected to pass this check. A failure usually means a typing error or a made-up number, or that this is an IMO company number, which uses a different check.", source: null }], | |
| }; | |
| } | |
| // ---------------------------------------------------------------- Call signs (ITU RR Appendix 42 and Article 19) | |
| const CH = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
| const SYM = "0123456789" + CH; | |
| function callsignIndex(series) { | |
| // every 3-character code in each range -> holder (third character A-Z) | |
| const idx = new Map(); | |
| for (const r of series) { | |
| const [f, t] = [r.from, r.to]; | |
| for (let a = SYM.indexOf(f[0]); a <= SYM.indexOf(t[0]); a++) | |
| for (let b = (a === SYM.indexOf(f[0]) ? SYM.indexOf(f[1]) : 0); b <= (a === SYM.indexOf(t[0]) ? SYM.indexOf(t[1]) : SYM.length - 1); b++) | |
| for (let c = (a === SYM.indexOf(f[0]) && b === SYM.indexOf(f[1]) ? CH.indexOf(f[2]) : 0); | |
| c <= (a === SYM.indexOf(t[0]) && b === SYM.indexOf(t[1]) ? CH.indexOf(t[2]) : 25); c++) { | |
| const k = SYM[a] + SYM[b] + CH[c]; | |
| idx.set(k, [...new Set([...(idx.get(k) || []), r.country])]); | |
| } | |
| } | |
| return idx; | |
| } | |
| const FORMS = [ | |
| [/^[A-Z0-9]{2}[A-Z]{2}$/, "ship station", "two characters and two letters", "No. 19.55"], | |
| [/^[A-Z0-9]{2}[A-Z]{2}[2-9]$/, "ship station", "two characters, two letters and one digit", "No. 19.55"], | |
| [/^[A-Z0-9][A-Z][2-9]\d{3}$/, "ship station", "two characters (the second a letter) and four digits", "No. 19.55"], | |
| [/^[A-Z0-9]{2}[A-Z][2-9]\d{3}$/, "ship station", "two characters, one letter and four digits", "No. 19.55"], | |
| [/^[A-Z0-9]{2}[A-Z]{3}$/, "aircraft station", "two characters and three letters", "No. 19.58"], | |
| ]; | |
| function decodeCallsign(raw, data) { | |
| const s = norm(raw).replace(/^(CALL ?SIGN|CALLSIGN)[:\s]*/, "").replace(/[\s-]/g, ""); | |
| if (!/^[A-Z0-9]{3,7}$/.test(s) || !/[A-Z]/.test(s) || !/^([A-Z]{2}|[A-Z]\d|\d[A-Z])/.test(s)) return null; | |
| const { callsigns, callsignIdx } = data; | |
| const src = "ITU table of international call sign series (Radio Regulations Appendix 42)"; | |
| let holders; | |
| if (CH.includes(s[2])) holders = callsignIdx.get(s.slice(0, 3)) || []; | |
| else holders = [...new Set([...callsignIdx.entries()].filter(([k]) => k.startsWith(s.slice(0, 2))).flatMap(([, v]) => v))]; | |
| let single = false; | |
| if (!holders.length && "BFGIKMNRW2".includes(s[0])) { // RR No. 19.50.1: for these series the first character alone identifies the country | |
| holders = [...new Set([...callsignIdx.entries()].filter(([k]) => k[0] === s[0]).flatMap(([, v]) => v))]; | |
| single = holders.length === 1; | |
| } | |
| const out = { type: "CALLSIGN", input: s, title: "International call sign", verdict: holders.length === 1 ? "ok" : "warn", facts: [], cautions: [], sources: [src] }; | |
| if (!holders.length) out.facts.push(fact("Series", `${s.slice(0, 2)}…: not in the ITU table of allocated call sign series`, src)); | |
| else if (holders.length === 1) out.facts.push(fact("Series allocated to", holders[0] + (single ? ` (for the ${s[0]} series the first character alone identifies the country)` : ""), single ? src + "; Radio Regulations No. 19.50.1" : src)); | |
| else out.facts.push(fact("Series allocated to", `shared ("half series"); the third character decides: ${holders.join(" / ")}`, src)); | |
| const forms = FORMS.filter(([re]) => re.test(s)); | |
| if (forms.length) out.facts.push(fact("Form", forms.map((f) => `${f[2]}: matches ${f[1].startsWith("a") ? "an" : "a"} ${f[1]} call sign`).join("; "), `ITU Radio Regulations, Article 19, ${[...new Set(forms.map((f) => f[3]))].join(", ")}`)); | |
| else out.facts.push(fact("Form", "does not match the ship or aircraft call sign forms in the Radio Regulations (it may be a land station, an amateur or a non-standard sign)", "ITU Radio Regulations, Article 19")); | |
| if (s[0] === "B" && holders.some((h) => /China/.test(h)) && "MNOPQUVWX".includes(s[1])) | |
| out.cautions.push({ text: "The ITU allocates the whole B series to China. In practice, stations in Taiwan use some B series (Wikipedia's 'ITU prefix' article lists BM–BQ and BU–BX). Check the station's own registry entry.", source: "https://en.wikipedia.org/wiki/ITU_prefix" }); | |
| out.cautions.push({ text: "The series shows which country was allocated those letters, not who operates the station now. Look up a ship's call sign in the ITU MARS register.", source: "https://www.itu.int/mmsapp/" }); | |
| return out; | |
| } | |
| // ---------------------------------------------------------------- ICAO 24-bit aircraft addresses (Annex 10 Vol III, Table 9-1) | |
| const LET = "ABCDEFGHJKLMNPQRSTUVWXYZ"; // 24 letters, no I or O (FAA N-numbers) | |
| const NSIZE = [101711, 10111, 951, 35]; // block sizes under 1, 2, 3, 4 leading digits | |
| function nToHex(n) { // "N628TS" -> "A835AF", or null | |
| const s = norm(n).replace(/^N/, ""); | |
| const m = s.match(/^([1-9]\d{0,4})([A-HJ-NP-Z]{0,2})$/); | |
| if (!m || s.length > 5) return null; | |
| const [digits, suf] = [m[1], m[2]]; | |
| if (digits.length === 5 && suf) return null; | |
| if (digits.length === 4 && suf.length > 1) return null; | |
| let off = (+digits[0] - 1) * NSIZE[0]; | |
| for (let i = 1; i < digits.length; i++) off += i < 4 ? 601 + +digits[i] * NSIZE[i] : 25 + +digits[i]; | |
| if (suf) { | |
| if (digits.length === 4) off += 1 + LET.indexOf(suf[0]); | |
| else { off += 1 + LET.indexOf(suf[0]) * 25; if (suf[1]) off += 1 + LET.indexOf(suf[1]); } | |
| } | |
| return (0xA00001 + off).toString(16).toUpperCase().padStart(6, "0"); | |
| } | |
| function hexToN(hex) { // "A835AF" -> "N628TS", or null outside A00001-ADF7C7 | |
| let off = parseInt(hex, 16) - 0xA00001; | |
| if (!(off >= 0 && off <= 0xADF7C7 - 0xA00001)) return null; | |
| let out = "N" + (Math.floor(off / NSIZE[0]) + 1); off %= NSIZE[0]; | |
| for (let level = 1; level <= 4; level++) { | |
| if (off === 0) return out; | |
| if (level < 4) { | |
| if (off <= 600) { // a letter suffix | |
| off -= 1; out += LET[Math.floor(off / 25)]; const r = off % 25; | |
| return r ? out + LET[r - 1] : out; | |
| } | |
| off -= 601; out += Math.floor(off / NSIZE[level]); off %= NSIZE[level]; | |
| } else { | |
| if (off <= 24) return out + LET[off - 1]; // single letter after 4 digits | |
| return out + (off - 25); // fifth digit | |
| } | |
| } | |
| return out; | |
| } | |
| function decodeICAO(raw, data) { | |
| const s = norm(raw).replace(/^(ICAO|HEX|MODE ?S)[:\s]*/, "").replace(/^0X/, ""); | |
| if (!/^[0-9A-F]{6}$/.test(s)) return null; | |
| const b = data.icao.blocks, v = parseInt(s, 16); | |
| const r = b.ranges.find((x) => v >= parseInt(x.start, 16) && v <= parseInt(x.end, 16)); | |
| const src = "ICAO Annex 10, Vol. III, Table 9-1 (to Amendment 92)"; | |
| const out = { type: "ICAO24", input: s, title: "ICAO 24-bit aircraft address (Mode S / ADS-B hex code)", verdict: r ? "ok" : "warn", facts: [], cautions: [], sources: [b.source] }; | |
| if (v === 0 || v === 0xFFFFFF) { out.verdict = "warn"; out.keep = true; out.facts.push(fact("Address", "all zeros or all ones: not a valid aircraft address", src)); } | |
| else if (r) out.facts.push(fact("Allocated to", `${r.country} (block ${r.start}–${r.end})${r.note ? ". " + r.note : ""}`, src)); | |
| else out.facts.push(fact("Allocated to", "no State: this address is outside every block in the ICAO table", src)); | |
| const n = hexToN(s); | |
| if (n) out.facts.push(fact("US registration", `${n} (by the FAA's fixed N-number to address mapping)`, data.icao.n_number.source.split(" (")[0])); | |
| else if (r && /United States/.test(r.country)) out.facts.push(fact("US registration", "none: only A00001–ADF7C7 map to N-numbers", "FAA N-number to Mode S mapping")); | |
| out.cautions.push({ text: "The block shows the State that issued the address (normally the State of registry), not who flies the aircraft. Military aircraft use addresses from their State's block, and transponders can be mis-set: wrong, default and temporary addresses all occur.", source: null }); | |
| if (n) out.cautions.push({ text: `Check the current owner in the FAA registry: registrations are reassigned, and an aircraft keeps its address only while it keeps the N-number.`, source: `https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt=${n}` }); | |
| return out; | |
| } | |
| function decodeNNumber(raw, data) { | |
| const s = norm(raw).replace(/[\s-]/g, ""); | |
| if (!/^N[1-9]/.test(s)) return null; | |
| const hex = nToHex(s); | |
| if (!hex) return { type: "NNUMBER", input: s, title: "US aircraft registration (N-number)", verdict: "warn", sources: [], | |
| facts: [fact("Format", "not a valid US N-number (N, a first digit 1–9, up to 5 characters, letters without I or O, at most 2 letters at the end)", "FAA N-number rules")], cautions: [] }; | |
| const out = decodeICAO(hex, data); | |
| return { ...out, type: "NNUMBER", input: s, title: "US aircraft registration (N-number)", | |
| facts: [fact("ICAO address", `${hex} (by the FAA's fixed N-number to address mapping)`, data.icao.n_number.source.split(" (")[0]), ...out.facts.filter((f) => f.label !== "US registration")] }; | |
| } | |
| // ---------------------------------------------------------------- Aircraft registrations (ICAO nationality marks) | |
| const strip = (x) => x.replace(/[-\s]/g, ""); | |
| const ICAO_MARKS = "ICAO, Aircraft Nationality Marks, National Emblems and Common Marks (1 June 2026)"; | |
| function decodeRegistration(raw, data) { | |
| const s = norm(raw).replace(/^REG(ISTRATION)?[:\s]*/, "").replace(/\s/g, ""); | |
| if (!/^[A-Z0-9][A-Z0-9-]{2,9}$/.test(s) || !/[A-Z]/.test(s)) return null; | |
| const items = data.marks.items.filter((x) => !/[(/]/.test(x.prefix)); | |
| const flat = strip(s), [left, right] = s.includes("-") ? [s.split("-")[0], s.split("-").slice(1).join("")] : [null, null]; | |
| let cand = items.filter((x) => flat.startsWith(strip(x.prefix)) && flat.length > strip(x.prefix).length); | |
| if (left) { // with a hyphen, the part before it is the mark | |
| const exact = cand.filter((x) => strip(x.prefix) === left || (x.prefix.includes("-") && strip(x.prefix) === left + (right || "")[0])); | |
| if (exact.length) cand = exact; | |
| } | |
| const out = { type: "REGISTRATION", input: s, title: "Aircraft registration", verdict: "info", facts: [], cautions: [], sources: [ICAO_MARKS] }; | |
| if (/^VN-?/.test(s)) { | |
| out.verdict = "ok"; | |
| out.facts.push(fact("Nationality mark", "VN: Viet Nam, as used in practice", "Wikipedia, List of aircraft registration prefixes")); | |
| out.cautions.push({ text: "ICAO's list gives XV for Viet Nam, but Vietnamese aircraft are registered VN- in practice.", source: "https://en.wikipedia.org/wiki/List_of_aircraft_registration_prefixes" }); | |
| } else if (!cand.length) { | |
| out.verdict = "warn"; | |
| out.facts.push(fact("Nationality mark", "no ICAO nationality mark matches the start of this registration", ICAO_MARKS)); | |
| return out; | |
| } else { | |
| const best = Math.max(...cand.map((x) => strip(x.prefix).length)); | |
| const hit = cand.filter((x) => strip(x.prefix).length === best); | |
| out.verdict = "ok"; | |
| out.facts.push(fact("Nationality mark", hit.map((x) => `${x.prefix}: ${x.state}`).join("; "), ICAO_MARKS)); | |
| if (hit[0].prefix === "B") { | |
| const rest = s.replace(/^B-?/, ""); | |
| const sub = /^\d{5}$/.test(rest) ? ["Taiwan (B- and five digits)", "Taiwan, Regulations of Aircraft Registration, Art. 22", "https://law.moj.gov.tw/ENG/LawClass/LawAll.aspx?pcode=K0090006"] | |
| : /^[HKL][A-Z]{2}$/.test(rest) ? ["Hong Kong SAR (B- and three letters starting H, K or L)", "Hong Kong AIP GEN 2.1", "https://www.hkatc.gov.hk/HK_AIP/AIP/GEN/HK_GEN2.1.pdf"] | |
| : /^M[A-Z]{2}$/.test(rest) ? ["Macao SAR (B- and three letters; Macao's marks start with M in practice)", "Macao Air Navigation Regulation, First Schedule", "https://images.io.gov.mo/bo/i/2003/28/ordem25/01_Schedule.doc"] | |
| : /^[0-9A-Z]{4}$/.test(rest) ? ["mainland China (B- and four characters)", "Wikipedia, List of aircraft registration prefixes", "https://en.wikipedia.org/wiki/List_of_aircraft_registration_prefixes"] : null; | |
| if (sub) out.facts.push(fact("Format", sub[0], sub[1])); | |
| else { out.verdict = "warn"; out.facts.push(fact("Format", "does not match the mainland China, Hong Kong (B-H, B-K, B-L), Macao (B-M) or Taiwan (B- and five digits) formats", ICAO_MARKS)); } | |
| } | |
| if (hit[0].prefix === "N" && !nToHex(flat)) { out.verdict = "warn"; out.facts.push(fact("Format", "not a valid US N-number (N, a first digit 1–9, up to 5 characters, letters without I or O, at most 2 letters at the end)", "FAA N-number rules")); } | |
| hit.forEach((x) => { if (x.note && x.prefix !== "B") out.cautions.push({ text: x.note, source: x.source || null }); }); | |
| } | |
| out.cautions.push({ text: "The mark shows the State of registry, not the operator or the owner's nationality. Check the national aircraft register for the current owner.", source: null }); | |
| out.cautions.push({ text: "Aircraft used in military, customs and police services are 'state aircraft' under Article 3 of the Chicago Convention, which applies only to civil aircraft, so they may not carry a civil registration at all.", source: "https://www.icao.int/publications/Documents/7300_9ed.pdf" }); | |
| return out; | |
| } | |
| // ---------------------------------------------------------------- Squawk (Mode A) codes | |
| function decodeSquawk(raw, data) { | |
| const s = norm(raw).replace(/^(SQUAWK|MODE ?A)[:\s]*/, ""); | |
| if (!/^[0-7]{4}$/.test(s)) return null; | |
| const hits = data.squawks.items.filter((x) => x.code === s); | |
| const out = { type: "SQUAWK", input: s, title: "Transponder code (squawk, Mode A)", verdict: "info", facts: [], cautions: [], sources: [] }; | |
| if (hits.length) { | |
| hits.forEach((h) => { out.facts.push(fact(h.scope === "worldwide" || /^worldwide/.test(h.scope) ? "Meaning (worldwide)" : `Meaning (${h.scope})`, h.meaning, h.source)); out.sources.push(h.source); }); | |
| if (hits.some((h) => /^worldwide/.test(h.scope))) out.verdict = "warn"; | |
| } else out.facts.push(fact("Meaning", "not one of the codes in this tool's table. Most other codes are assigned by air traffic control for a single flight, but some have national or regional meanings (for example conspicuity codes): check the rules of the airspace", "SERA.13005; FAA AIM 4-1-20")); | |
| out.cautions.push({ text: "The crew sets the code by hand, and a wrong code is sometimes entered by mistake. An emergency code is a reason to check, not proof of an emergency: look for confirmation from the airline, air traffic control or the authorities.", source: null }); | |
| return out; | |
| } | |
| // ---------------------------------------------------------------- try every reading that fits | |
| function decodeAny(raw, data, only = null) { | |
| const s = norm(raw); | |
| if (!s) return []; | |
| const runs = { MMSI: () => decodeMMSI(s, data), IMO: () => decodeIMO(s), ICAO24: () => decodeICAO(s, data), NNUMBER: () => decodeNNumber(s, data), | |
| REGISTRATION: () => decodeRegistration(s, data), CALLSIGN: () => decodeCallsign(s, data), SQUAWK: () => decodeSquawk(s, data) }; | |
| const flat = s.replace(/^(MMSI|IMO|ICAO|HEX|SQUAWK|REG|CALL ?SIGN)[:\s]*/, "").replace(/[\s-]/g, ""); | |
| let order; | |
| if (only) order = [only]; | |
| else if (/^\d{9}$/.test(flat)) order = ["MMSI"]; | |
| else if (/^\d{7}$/.test(flat)) order = /^MMSI/.test(s) ? ["MMSI"] : ["IMO", "MMSI"]; | |
| else if (/^[0-7]{4}$/.test(flat)) order = ["SQUAWK"]; | |
| else if (s.includes("-")) order = ["REGISTRATION"]; // call signs and hex codes have no hyphen | |
| else if (/^[0-9A-F]{6}$/.test(flat) && !/^N[1-9]/.test(flat)) order = ["ICAO24", "REGISTRATION"]; | |
| else if (/^N[1-9]/.test(flat)) order = nToHex(flat) ? ["NNUMBER"] : ["NNUMBER", "CALLSIGN"]; | |
| else order = ["CALLSIGN", "REGISTRATION"]; | |
| const res = order.map((k) => runs[k]()).filter(Boolean); | |
| // with several possible readings, drop the ones that found nothing when another reading worked | |
| return res.length > 1 && res.some((r) => r.verdict !== "warn") ? res.filter((r) => r.verdict !== "warn" || r.keep) : res; | |
| } | |
| // id-decoder page: loads the tables, runs decoder.js in the browser, shows the readings. No network use after loading. | |
| const $ = (id) => document.getElementById(id); | |
| const esc = (s) => String(s ?? "").replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ }[c])); | |
| const link = (s) => /^https?:\/\//.test(s || "") ? `<a href="${esc(s)}" target="_blank" rel="noopener">${esc(s.replace(/^https?:\/\/(www\.)?/, "").split("/")[0])}</a>` : esc(s); | |
| let data = null; | |
| async function load() { | |
| try { | |
| // the bundled page (app.bundle.js) carries the tables inline as ID_DATA; the modular version fetches them | |
| const get = async (f) => (typeof ID_DATA !== "undefined" ? ID_DATA[f] : (await fetch(`data/${f}`)).json()); | |
| const [mid, mmsi, callsigns, icao, rs] = await Promise.all(["mid.json", "mmsi_rules.json", "callsign_series.json", "icao24.json", "registration_squawk.json"].map(get)); | |
| data = { mid, mmsi, callsigns, callsignIdx: callsignIndex(callsigns.series), icao, marks: rs.marks, squawks: rs.squawks }; | |
| $("sources").innerHTML = [ | |
| [`ITU Table of Maritime Identification Digits (${Object.keys(mid.mids).length} MIDs, retrieved ${mid.retrieved})`, mid.source_page || mid.source], | |
| [`Recommendation ITU-R ${mmsi.version}: maritime identities (MMSI formats)`, mmsi.source], | |
| [`ITU table of international call sign series, Radio Regulations Appendix 42 (${callsigns.series.length} ranges, retrieved ${callsigns.retrieved})`, callsigns.source], | |
| [`ICAO Annex 10 Vol. III Table 9-1, allocation of aircraft addresses (${icao.blocks.ranges.length} blocks, to Amendment 92)`, "https://www.bazl.admin.ch/dam/de/sd-web/QQ3WlrAoWJRb/AN10_V3_cons.pdf"], | |
| ["FAA N-number to Mode S address mapping (checked against the FAA Aircraft Registry)", "https://registry.faa.gov/aircraftinquiry/"], | |
| [`ICAO Aircraft Nationality Marks, National Emblems and Common Marks (${rs.marks.items.length} entries)`, "https://www.icao.int/sites/default/files/airnavigation/NationalityMarks/Nationality_Marks_en.pdf"], | |
| ["Squawk codes: EU/UK SERA.13005, ICAO Annex 10 Vol IV (Amendment 92) and FAA AIM 4-1-20", "https://www.faa.gov/air_traffic/publications/atpubs/aim_html/chap4_section_1.html"], | |
| ].map(([t, u]) => `<li>${esc(t)}: ${link(u)}</li>`).join(""); | |
| $("status").textContent = "Ready."; $("status").className = "status ok"; | |
| const q = new URLSearchParams(location.search).get("q"); | |
| if (q) { $("q").value = q; run(); } | |
| } catch (e) { $("status").textContent = "Could not load the tables: " + e.message; $("status").className = "status err"; } | |
| } | |
| function card(r) { | |
| const tone = { ok: "green", warn: "amber", info: "blue" }[r.verdict] || "grey"; | |
| return `<article class="card tone-${tone}"> | |
| <div class="v-title">${esc(r.title)}: <span class="mono">${esc(r.input)}</span></div> | |
| <dl>${r.facts.map((f) => `<dt>${esc(f.label)}</dt><dd>${esc(f.value)}${f.source ? `<span class="src">Source: ${link(f.source)}</span>` : ""}</dd>`).join("")}</dl> | |
| ${r.cautions.length ? `<ul class="cautions">${r.cautions.map((c) => `<li>${esc(c.text)}${c.source ? ` <span class="src">(${link(c.source)})</span>` : ""}</li>`).join("")}</ul>` : ""} | |
| </article>`; | |
| } | |
| function run() { | |
| if (!data) return; | |
| const q = $("q").value.trim(); | |
| if (!q) { $("results").innerHTML = ""; return; } | |
| const res = decodeAny(q, data, $("kind").value || null); | |
| $("results").innerHTML = res.length | |
| ? (res.length > 1 ? `<p class="note">This could be read ${res.length} ways; each is shown below.</p>` : "") + res.map(card).join("") | |
| : `<article class="card tone-grey"><div class="v-title">Not recognised</div><p>“${esc(q)}” doesn't match the format of any identifier this tool decodes${$("kind").value ? " of the type you chose" : ""}. Check for typing errors, or pick the type from the list.</p></article>`; | |
| try { history.replaceState(null, "", "?q=" + encodeURIComponent(q)); } catch (_) { /* not allowed in some sandboxed frames */ } | |
| } | |
| $("form").addEventListener("submit", (e) => { e.preventDefault(); run(); }); | |
| $("kind").addEventListener("change", run); | |
| document.querySelectorAll(".ex").forEach((b) => b.addEventListener("click", () => { $("q").value = b.textContent; $("kind").value = ""; run(); })); | |
| load(); | |
| })(); | |