Zip and Country Codes


Code Country Index Format Regular Expression
AF Afghanistan NNNN ^([1-3][0-9]|[4][0-3])([1-9]{1}[0-9]{1}|[0]{1}[1-9])$
AX Aland Islands NNNNN (CC-NNNNN from abroad) ^[0-9]{5}$|^AX-[0-9]{5}$
AL Albania NNNN ^[0-9]{4}$
DZ Algeria NNNNN ^([0][1-9]|[1-3][0-9]|[4][0-8])[0-9]{3}$
AS American Samoa NNNNN (optionally NNNNN-NNNN or NNNNN-NNNNNN) ^[0-9]{5}([-][0-9]{4}|[-][0-9]{6})?$
AD Andorra CCNNN ^[Aa][Dd][0-9]{3}$
AO Angola no codes
AI Anguilla AI-2640 ^[Aa][Ii]-2640$
AQ Antarctica no codes
AG Antigua and Barbuda no codes
AR Argentina NNNN ^([ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjklmnpqrstuvwxyz])[0-9]{4}[A-Za-z]{3}$
AM Armenia NNNN ^[0-9]{4}$
AW Aruba no codes
AC Ascension island AAAANAA one code: ASCN 1ZZ ^[Aa][Ss][Cc][Nn] 1[Zz]{2}$
AU Australia NNNN ^[0-9]{4}$
AT Austria NNNN ^[0-9]{4}$
AZ Azerbaijan CCNNNN ^[Aa][Zz][0-9]{4}$
BS Bahamas no codes
BH Bahrain NNN or NNNN ^(1(0[1-9]|[1-9][0-9]|[01][0-9]{2}|2(0[0-9]|1[0-6]))|[2-9][0-9]{2})$
BD Bangladesh NNNN ^[0-9]{4}$
BB Barbados CCNNNNN ^[Bb][Bb]10000$
BY Belarus NNNNNN ^[0-9]{6}$
BE Belgium NNNN ^[0-9]{4}$
BZ Belize no codes
BJ Benin no codes
BM Bermuda AA ^[0-9]{4}$|^[A-Za-z]{2}[0-9]{2}$
BT Bhutan NNNNN ^[0-9]{5}$
BO Bolivia NNNN ^[0-9]{4}$
BQ Bonaire, Sint Eustatius and Saba no codes
BA Bosnia and Herzegovina NNNNN ^[0-9]{5}$
BW Botswana no codes
BV Bouvet Island no codes
BR Brazil NNNNN (NNNNN-NNN) ^[0-9]{5}-[0-9]{3}$
IO British Indian Ocean Territory AAAANAA one code: BBND 1ZZ ^[Bb]{2}[Nn][Dd] 1[Zz]{2}$
VG British Virgin Islands CCNNNN ^[Vv][Gg]11([1-5][0-9]|60)$
BN Brunei AANNNN ^[A-Za-z]{2}[0-9]{4}$
BG Bulgaria NNNN ^[0-9]{4}$
BF Burkina Faso no codes
BI Burundi no codes ^[Bb][Ii][Q]{2} 1[Zz]{2}$
KH Cambodia NNNNN ^[0-9]{5}$
CM Cameroon
CA Canada ANA NAN (^[AaBbCcEeGgHhJjKkLlMmNnPpRrSsTtVvXxYy]{1}\\d{1}[A-Za-z]{1} *\\d{1}[A-Za-z]{1}\\d{1}$)|[Bb]{2}[0-9]{5}
IC Canary Islands no codes
CV Cape Verde NNNN ^[0-9]{4}$
KY Cayman Islands CCN-NNNN ^[Kk][Yy][0-9]-[0-9]{4}$
CF Central African Republic no codes
EA Ceuta and Melilla no codes
TD Chad NNNNN ^[0-9]{5}$
CL Chile NNNNNNN (NNN-NNNN) ^([0-9]{7}|[0-9]{3}-[0-9]{4})$
CN China NNNNNN ^[0-9]{6}$
CX Christmas Island NNNN ^[0-9]{4}$
CP Clipperton Island no codes
CC Cocos (Keeling) Island NNNN ^[0-9]{4}$
CO Colombia NNNNNN ^[0-9]{6}$
KM Comoros no codes
CG Congo (Brazzaville) no codes
CD Congo, Democratic Republic no codes
CK Cook Islands no codes
CR Costa Rica NNNNN (NNNN until 2007) ^[0-9]{5}$
CI Cote d'Ivoire (Ivory Coast) no codes
HR Croatia NNNNN ^[0-9]{5}$
CU Cuba NNNNN ^[0-9]{5}$
CW Curacao no codes
CY Cyprus NNNN ^[0-9]{4}$
CZ Czech Republic NNNNN (NNN NN) ^([0-9]{5}|[0-9]{3} [0-9]{2})$
DK Denmark NNNN ^[0-9]{4}$
DG Diego Garcia no codes
DJ Djibouti no codes
DM Dominica no codes
DO Dominican Republic NNNNN ^[0-9]{5}$
TL East Timor no codes
EC Ecuador NNNNNN ^[0-9]{6}$
EG Egypt NNNNN ^[0-9]{5}$
SV El Salvador 1101 ^01101$
GQ Equatorial Guinea no codes
ER Eritrea no codes
EE Estonia NNNNN ^[0-9]{5}$
ET Ethiopia NNNN ^[0-9]{4}$
EU European Union no codes
FK Falkland Islands AAAANAA one code: FIQQ 1ZZ ^[Ff][Ii][Q]{2} 1[Zz]{2}$
FO Faroe Islands NNN ^[0-9]{3}$
FJ Fiji no codes
FI Finland NNNNN ^[0-9]{5}$
FR France NNNNN ^[0-9]{5}$
GF French Guiana 973NN ^973([0-8][0-9]|90)$
PF French Polynesia 987NN ^987([0-8][0-9]|90)$
TF French Southern and Antarctic Territories no codes
GA Gabon NN [city name] NN ^[0-9]{2}[A-Za-z]{1
GM Gambia no codes
GE Georgia NNNN ^[0-9]{4}$
DE Germany NN, NNNN, NNNNN ^[0-9]{5}$
GH Ghana no codes
GI Gibraltar GX11 1AA ^[Gg][Xx]11 1[Aa]{2}$
GR Greece NNN NN ^[0-9]{3} [0-9]{2}$
GL Greenland NNNN ^[0-9]{4}$
GD Grenada no codes
GP Guadeloupe 971NN ^971([0-8][0-9]|90)$
GU Guam NNNNN ^969([12][0-9]|3[0-2])$
GT Guatemala NNNNN ^[0-9]{5}$
GG Guernsey AAN NAA, AANN NAA ^[Gg][Yy]([0-9][0-9]? [0-9][A-Za-z]{2})$
GN Guinea no codes
GW Guinea Bissau NNNN ^[0-9]{4}$
GY Guyana no codes
HT Haiti NNNN ^[0-9]{4}$
HM Heard and McDonald Islands NNNN ^[0-9]{4}$
HN Honduras NNNNN ^[0-9]{5}$
HK Hong Kong no codes
HU Hungary NNNN ^[0-9]{5}$
IS Iceland NNN ^[0-9]{3}$
IN India NNNNNN ^[0-9]{6}|[0-9]{3} [0-9]{3}$
ID Indonesia NNNNN ^[0-9]{5}$
IR Iran NNNNN-NNNNN ^[0-9]{5}-[0-9]{5}$
IQ Iraq NNNNN ^[0-9]{5}$
IE Ireland no codes
IM Isle of Man CCN NAA, CCNN NAA ^[Ii][Mm][0-9][0-9]? [0-9][A-Za-z]{2}$
IL Israel NNNNNNN ^[0-9]{7}$
IT Italy NNNNN ^[0-9]{5}$
JM Jamaica NN ^[0-9]{2}$
JP Japan NNNNNNN (NNN-NNNN) ^[0-9]{3}[-]?[0-9]{4}$
JE Jersey CCN NAA ^[Jj][Ee][0-9] [0-9][A-Za-z]{2}$
JO Jordan NNNNN ^[0-9]{5}$
KZ Kazakhstan NNNNNN ^[0-9]{6}$
KE Kenya NNNNN ^[0-9]{5}$
KI Kiribati no codes
KP Korea, North no codes
KW Kuwait NNNNN ^[0-9]{5}$
KG Kyrgyzstan NNNNNN ^[0-9]{6}$
LA Laos NNNNN ^[0-9]{5}$
LV Latvia CC-NNNN ^[Ll][Vv]-[0-9]{4}$
LB Lebanon NNNN NNNN ^[0-9]{4} [0-9]{4}$
LS Lesotho NNN ^[0-9]{3}$
LR Liberia NNNN ^[0-9]{4}$
LY Libya NNNNN ^[0-9]{5}$
LI Liechtenstein NNNN ^94(8[5-9]|9[0-8])$
LT Lithuania CC-NNNNN ^[Ll][Tt]-[0-9]{5}$
LU Luxembourg NNNN ^[0-9]{4}$
MO Macau no codes
MK Macedonia NNNN ^[0-9]{4}$
MG Madagascar NNN ^[0-9]{3}$
MW Malawi no codes
MY Malaysia NNNNN ^[0-9]{5}$
MV Maldives NNNN, NNNNN ^[0-9]{4}|[0-9]{5}$
ML Mali no codes
MT Malta AAANNNN (AAA NNNN) ^[A-Za-z]{3}[ ]?[0-9]{4}$
MH Marshall Islands NNNNN ^969(6[0-9]|70)$
MQ Martinique NNNNN ^972([0-8][0-9]|90)$
MR Mauritania no codes
MU Mauritius NNNNN ^[0-9]{5}$
YT Mayotte NNNNN ^976([0-8][0-9]|90)$
MX Mexico NNNNN ^[0-9]{5}$
FM Micronesia NNNNN or NNNNN-NNNN ^9694[1-4](-[0-9]{4})?$
MD Moldova CCNNNN (CC-NNNN) ^[Mm][Dd]-[0-9]{4}$
MC Monaco NNNNN ^980[0-9]{2}$
MN Mongolia NNNNN ^[0-9]{5}$
CS Montenegro no codes
ME Montenegro NNNNN ^[0-9]{5}$
MS Montserrat MSR 1110-1350 ^[Mm][Ss][Rr] 1110-1350$
MA Morocco NNNNN ^[0-9]{5}$
MZ Mozambique NNNN ^[0-9]{4}$
MM Myanmar NNNNN ^[0-9]{5}$
NA Namibia NNNNN ^9[0-2][0-9]{2}$
NR Nauru no codes
NP Nepal NNNNN ^[0-9]{5}$
NL Netherlands NNNN ^[0-9]{4}$
AN Netherlands Antilles no codes
NC New Caledonia 988NN ^988([0-8][0-9]|90)$
NZ New Zealand NNNN ^[0-9]{4}$
NI Nicaragua NNNNN ^[0-9]{5}$
NE Niger NNNN ^[0-9]{4}$
NG Nigeria NNNNNN ^[0-9]{6}$
NU Niue no codes
NF Norfolk Island NNNN ^[0-9]{4}$
MP Northern Mariana Islands NNNNN ^9695[0-2]$
NO Norway NNNN ^[0-9]{4}$
OM Oman NNN ^[0-9]{3}$
QO Outlying Oceania no codes
PK Pakistan NNNNN ^[0-9]{5}$
PW Palau NNNNN ^96940$
PS Palestine NNN ^[0-9]{3}$
PA Panama NNNNNN ^[0-9]{6}$
PG Papua New Guinea NNN ^[0-9]{3}$
PY Paraguay NNNN ^[0-9]{4}$
PE Peru NNNNN ^[0-9]{5}$
PH Philippines NNNN ^[0-9]{4}$
PN Pitcairn Islands AAAANAA one code: PCRN 1ZZ ^[Pp][Cc][Rr][Nn] 1[Zz]{2}$
PL Poland NNNNN (NN-NNN) ^[0-9]{2}[-]?[0-9]{3}$
PT Portugal NNNN ^[0-9]{4}$
PR Puerto Rico NNNNN ^00[679][0-9]{2}$
QA Qatar no codes
RE Reunion 974NN ^974([0-8][0-9]|90)$
RO Romania NNNNNN ^[0-9]{6}$
RU Russia NNNNNN ^[0-9]{6}$
RW Rwanda no codes
BL Saint Barthelemy 97133 ^97133$
SH Saint Helena STHL 1ZZ or TDCU 1ZZ ^([Tt][Dd][Cc][Uu]|[Ss][Tt][Hh][Ll]) 1[Zz]{2}$
KN Saint Kitts and Nevis no codes
LC Saint Lucia no codes
MF Saint Martin 97150 ^97150$
PM Saint Pierre and Miquelon 97500 ^97500$
VC Saint Vincent and the Grenadines CCNNNN ^[Vv][Cc][0-9]{4}$
WS Samoa no codes
SM San Marino 4789N ^4789[0-9]$
ST Sao Tome and Principe no codes
SA Saudi Arabia NNNNN for PO Boxes. NNNNN-NNNN for home delivery. ^[0-9]{5}(-[0-9]{4})?$
SN Senegal NNNNN ^[0-9]{5}$
RS Serbia NNNNN ^[0-9]{5}$
SC Seychelles no codes
SL Sierra Leone no codes
SG Singapore NN, NNNN, NNNNNN ^[0-9]{6}$
SX Sint Maarten no codes
SK Slovakia NNNNN (NNN NN) ^[0-9]{3}[ ]?[0-9]{2}$
SI Slovenia NNNN (CC-NNNN) ^([Ss][Ii]-)?[0-9]{4}$
SB Solomon Islands no codes
SO Somalia AA ^[A-Za-z]{2}$
ZA South Africa NNNN ^[0-9]{4}$
GS South Georgia and the South Sandwich Islands SIQQ 1ZZ ^[Ss][Ii][Qq]{2} 1[Zz]{2}$
KR South Korea NNNNNN (NNN-NNN) ^[0-9]{3}[-]?[0-9]{3}$
SS South Sudan no codes
ES Spain NNNNN ^([0][1-9]|[1-4][0-9]|[5][0-2])[0-9]{3}$
LK Sri Lanka NNNNN ^[0-9]{5}$
SD Sudan NNNNN ^[0-9]{5}$
SR Suriname no codes
SJ Svalbard and Jan Mayen NNNN ^[0-9]{4}$
SZ Swaziland ANNN ^[A-Za-z][0-9]{3}$
SE Sweden NNNNN (NNN NN) ^[0-9]{3}[ ]?[0-9]{2}$
CH Switzerland NNNN ^[0-9]{4}$
SY Syria no codes
TW Taiwan NNNNN ^[0-9]{5}$
TJ Tajikistan NNNNNN ^[0-9]{6}$
TZ Tanzania no codes
TH Thailand NNNNN ^[0-9]{5}$
TG Togo no codes
TK Tokelau no codes
TO Tonga no codes
TT Trinidad and Tobago NNNNNN ^[0-9]{6}$
TA Tristan da Cunha no codes
TN Tunisia NNNN ^[0-9]{4}$
TR Turkey NNNNN ^[0-9]{5}$
TM Turkmenistan NNNNNN ^[0-9]{6}$
TC Turks and Caicos Islands TKCA 1ZZ ^[Tt][Kk][Cc][Aa] 1[Zz]{2}$
TV Tuvalu no codes
UM U.S. Minor Outlying Islands no codes
VI U.S. Virgin Islands NNNNN ^008([0][1-9]|[1-4][0-9]|[5][0-1])$
UG Uganda no codes
UA Ukraine NNNNN ^[0-9]{5}$
AE United Arab Emirates no codes
GB United Kingdom A[A]N[A/N] ^[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}$
US United States NNNNN (optionally NNNNN-NNNN) [0-9]{5}|[0-9]{9}|(^[AaBbCcEeGgHhJjKkLlMmNnPpRrSsTtVvXxYy]{1}\\d{1}[A-Za-z]{1} *\\d{1}[A-Za-z]{1}\\d{1}$)|[Bb]{2}[0-9]{5}
UY Uruguay NNNNN ^[0-9]{5}$
UZ Uzbekistan NNN NNN ^[0-9]{3} [0-9]{3}$
VU Vanuatu no codes
VA Vatican 120 ^00120$
VE Venezuela NNNN or NNNN A ^[0-9]{4}( [A-Za-z])?$
VN Vietnam NNNNNN ^[0-9]{6}$
WF Wallis and Futuna 986NN ^986([0-8][0-9]|90)$
EH Western Sahara no codes
YE Yemen no codes
ZM Zambia NNNNN ^[0-9]{5}$
ZW Zimbabwe no codes