Two-digit postcode regions The main two digits of a Spanish postal code discover the province or autonomous metropolis it belongs to. The figures were assigned to your 50 provinces of Spain ordered alphabetically at the time of implementation.[one] The official names of some of the provinces have because changed, possibly to your regional language