Afghanistan
9999
Every country structures its codes differently — numeric or alphanumeric, spaced, dashed or plain. Below is the pattern for 160 countries and territories, with a worked example, the postal operator and how many codes exist. Use the A–Z index to jump straight to one.
9 = digit · A = letter · X = letter or digit
These format guides are free. For the complete, standardised dataset behind any country — every code, enriched and updated — get the full database.