Free tool

MRZ country codes

The MRZ names nationality and issuing state in three characters. Search by code or by name and see what each one says — including the ones that name no country at all.

The whole table ships with the page and the search runs in your browser: no request is sent and no account is needed.

Type a code (“MEX”), a name (“Mexico”), or part of either.

271 of 271 codes

CodeNameKind
ABWArubaCountry
AFGAfghanistanCountry
AGOAngolaCountry
AIAAnguillaCountry
ALAÅland IslandsCountry
ALBAlbaniaCountry
ANDAndorraCountry
AREUnited Arab EmiratesCountry
ARGArgentinaCountry
ARMArmeniaCountry
ASMAmerican SamoaCountry
ATAAntarcticaCountry
ATFFrench Southern TerritoriesCountry
ATGAntigua & BarbudaCountry
AUSAustraliaCountry
AUTAustriaCountry
AZEAzerbaijanCountry
BDIBurundiCountry
BELBelgiumCountry
BENBeninCountry
BESCaribbean NetherlandsCountry
BFABurkina FasoCountry
BGDBangladeshCountry
BGRBulgariaCountry
BHRBahrainCountry
BHSBahamasCountry
BIHBosnia & HerzegovinaCountry
BLMSt. BarthélemyCountry
BLRBelarusCountry
BLZBelizeCountry
BMUBermudaCountry
BOLBoliviaCountry
BRABrazilCountry
BRBBarbadosCountry
BRNBruneiCountry
BTNBhutanCountry
BVTBouvet IslandCountry
BWABotswanaCountry
CAFCentral African RepublicCountry
CANCanadaCountry
CCKCocos (Keeling) IslandsCountry
CHESwitzerlandCountry
CHLChileCountry
CHNChinaCountry
CIVCôte d’IvoireCountry
CMRCameroonCountry
CODCongo - KinshasaCountry
COGCongo - BrazzavilleCountry
COKCook IslandsCountry
COLColombiaCountry
COMComorosCountry
CPVCape VerdeCountry
CRICosta RicaCountry
CUBCubaCountry
CUWCuraçaoCountry
CXRChristmas IslandCountry
CYMCayman IslandsCountry
CYPCyprusCountry
CZECzechiaCountry
DGermanyCountry
DEUGermanyCountry
DJIDjiboutiCountry
DMADominicaCountry
DNKDenmarkCountry
DOMDominican RepublicCountry
DZAAlgeriaCountry
ECUEcuadorCountry
EGYEgyptCountry
ERIEritreaCountry
ESHWestern SaharaCountry
ESPSpainCountry
ESTEstoniaCountry
ETHEthiopiaCountry
EUEEuropean UnionSpecial code
FINFinlandCountry
FJIFijiCountry
FLKFalkland IslandsCountry
FRAFranceCountry
FROFaroe IslandsCountry
FSMMicronesiaCountry
GABGabonCountry
GBDBritish Overseas Territories CitizenSpecial code
GBNBritish National (Overseas)Special code
GBOBritish Overseas CitizenSpecial code
GBPBritish Protected PersonSpecial code
GBRUnited KingdomCountry
GBSBritish SubjectSpecial code
GEOGeorgiaCountry
GGYGuernseyCountry
GHAGhanaCountry
GIBGibraltarCountry
GINGuineaCountry
GLPGuadeloupeCountry
GMBGambiaCountry
GNBGuinea-BissauCountry
GNQEquatorial GuineaCountry
GRCGreeceCountry
GRDGrenadaCountry
GRLGreenlandCountry
GTMGuatemalaCountry
GUFFrench GuianaCountry
GUMGuamCountry
GUYGuyanaCountry
HKGHong Kong SAR ChinaCountry
HMDHeard & McDonald IslandsCountry
HNDHondurasCountry
HRVCroatiaCountry
HTIHaitiCountry
HUNHungaryCountry
IDNIndonesiaCountry
IMNIsle of ManCountry
INDIndiaCountry
IOTBritish Indian Ocean TerritoryCountry
IRLIrelandCountry
IRNIranCountry
IRQIraqCountry
ISLIcelandCountry
ISRIsraelCountry
ITAItalyCountry
JAMJamaicaCountry
JEYJerseyCountry
JORJordanCountry
JPNJapanCountry
KAZKazakhstanCountry
KENKenyaCountry
KGZKyrgyzstanCountry
KHMCambodiaCountry
KIRKiribatiCountry
KNASt. Kitts & NevisCountry
KORSouth KoreaCountry
KWTKuwaitCountry
LAOLaosCountry
LBNLebanonCountry
LBRLiberiaCountry
LBYLibyaCountry
LCASt. LuciaCountry
LIELiechtensteinCountry
LKASri LankaCountry
LSOLesothoCountry
LTULithuaniaCountry
LUXLuxembourgCountry
LVALatviaCountry
MACMacao SAR ChinaCountry
MAFSt. MartinCountry
MARMoroccoCountry
MCOMonacoCountry
MDAMoldovaCountry
MDGMadagascarCountry
MDVMaldivesCountry
MEXMexicoCountry
MHLMarshall IslandsCountry
MKDNorth MacedoniaCountry
MLIMaliCountry
MLTMaltaCountry
MMRMyanmar (Burma)Country
MNEMontenegroCountry
MNGMongoliaCountry
MNPNorthern Mariana IslandsCountry
MOZMozambiqueCountry
MRTMauritaniaCountry
MSRMontserratCountry
MTQMartiniqueCountry
MUSMauritiusCountry
MWIMalawiCountry
MYSMalaysiaCountry
MYTMayotteCountry
NAMNamibiaCountry
NCLNew CaledoniaCountry
NERNigerCountry
NFKNorfolk IslandCountry
NGANigeriaCountry
NICNicaraguaCountry
NIUNiueCountry
NLDNetherlandsCountry
NORNorwayCountry
NPLNepalCountry
NRUNauruCountry
NZLNew ZealandCountry
OMNOmanCountry
PAKPakistanCountry
PANPanamaCountry
PCNPitcairn IslandsCountry
PERPeruCountry
PHLPhilippinesCountry
PLWPalauCountry
PNGPapua New GuineaCountry
POLPolandCountry
PRIPuerto RicoCountry
PRKNorth KoreaCountry
PRTPortugalCountry
PRYParaguayCountry
PSEPalestinian TerritoriesCountry
PYFFrench PolynesiaCountry
QATQatarCountry
REURéunionCountry
RKSKosovoCountry
ROURomaniaCountry
RUSRussiaCountry
RWARwandaCountry
SAUSaudi ArabiaCountry
SDNSudanCountry
SENSenegalCountry
SGPSingaporeCountry
SGSSouth Georgia & South Sandwich IslandsCountry
SHNSt. HelenaCountry
SJMSvalbard & Jan MayenCountry
SLBSolomon IslandsCountry
SLESierra LeoneCountry
SLVEl SalvadorCountry
SMRSan MarinoCountry
SOMSomaliaCountry
SPMSt. Pierre & MiquelonCountry
SRBSerbiaCountry
SSDSouth SudanCountry
STPSão Tomé & PríncipeCountry
SURSurinameCountry
SVKSlovakiaCountry
SVNSloveniaCountry
SWESwedenCountry
SWZEswatiniCountry
SXMSint MaartenCountry
SYCSeychellesCountry
SYRSyriaCountry
TCATurks & Caicos IslandsCountry
TCDChadCountry
TGOTogoCountry
THAThailandCountry
TJKTajikistanCountry
TKLTokelauCountry
TKMTurkmenistanCountry
TLSTimor-LesteCountry
TONTongaCountry
TTOTrinidad & TobagoCountry
TUNTunisiaCountry
TURTürkiyeCountry
TUVTuvaluCountry
TWNTaiwanCountry
TZATanzaniaCountry
UGAUgandaCountry
UKRUkraineCountry
UMIU.S. Outlying IslandsCountry
UNAUnited Nations specialized agencySpecial code
UNKUNMIK travel document, Kosovo residentSpecial code
UNOUnited Nations OrganizationSpecial code
URYUruguayCountry
USAUnited StatesCountry
UZBUzbekistanCountry
VATVatican CityCountry
VCTSt. Vincent & GrenadinesCountry
VENVenezuelaCountry
VGBBritish Virgin IslandsCountry
VIRU.S. Virgin IslandsCountry
VNMVietnamCountry
VUTVanuatuCountry
WLFWallis & FutunaCountry
WSMSamoaCountry
XBAAfrican Development BankSpecial code
XCCCaribbean Community (CARICOM)Special code
XCOCommon Market for Eastern and Southern Africa (COMESA)Special code
XECEconomic Community of West African States (ECOWAS)Special code
XIMAfrican Export-Import BankSpecial code
XOMSovereign Military Order of MaltaSpecial code
XPOInternational Criminal Police Organization (INTERPOL)Special code
XXAStateless person (1954 Convention)Special code
XXBRefugee (1951 Convention)Special code
XXCRefugee (other than under the 1951 Convention)Special code
XXXPerson of unspecified nationalitySpecial code
YEMYemenCountry
ZAFSouth AfricaCountry
ZMBZambiaCountry
ZWEZimbabweCountry

Why the table is not just a list of countries

ICAO 9303 starts from the ISO 3166-1 alpha-3 codes — MEX, ESP, USA — and then adds a handful of its own, and those are precisely the ones that break a system which only consulted the country list.

A German passport prints “D<<”: the code is a single letter and the remaining two characters are filler. Five codes beginning with GB name not the United Kingdom but classes of British nationality, each carrying different rights. And several codes name no state whatsoever: XXA for a stateless person, XXB and XXC for refugee travel documents, UNO and UNA for United Nations officials, XXX where nationality is unspecified.

A travel document bearing any of those is perfectly valid, and one will reach your desk or your API eventually. It is worth your system being able to display them rather than rejecting them as an unknown country.

The search understands the code and the name in both English and Spanish, along with what a special code means: type “refugee” or “stateless” and the matching codes come back.

Why does a German passport say “D” rather than “DEU”?

Because ICAO kept the single-character code Germany used before the standard. The field is still three characters wide, so it is padded with filler: “D<<”.

What does XXA mean on a travel document?

That its holder is a stateless person within the meaning of the 1954 Convention. XXB and XXC denote refugee travel documents, and XXX an unspecified nationality.

Are these the same as the ISO 3166-1 codes?

Nearly. ISO 3166-1 alpha-3 is the base, and on top of it ICAO adds the special codes in this table. A system using the ISO list alone will not recognise a stateless holder or a United Nations official.

Does the table include countries that no longer exist?

No. These are the codes in current use. An old passport may carry a withdrawn code; if you meet one, it usually belongs to a state that was renamed or ceased to exist.

Need to read nationality from a photo of the passport?

Our API returns the nationality and the issuing state exactly as the document prints them, along with the rest of the data-page fields.