Ireland Eircode

An Eircode comprises a three-character routing key plus a four-character unique identifier, with eleven letters that cause readability problems always excluded.

The guide recommends that an Eircode should always be

  • stored as a single string of seven upper case characters in IT systems, e.g. A65F4E2, but
  • presented in upper case as two parts separated by a space, e.g. A65 F4E2 and never A65F4E2.

For this reason, the two naxps below differ only in whether or not the version with a separator space is canonical.

The guide specifies that routing keys are letter-digit-digit or D6W. The naxps below deliberately widen the routing keys accepted to take a letter or digit as the third character on the basis that this accommodates the existing D6W special case and is one possible way Eircode could expand, while keeping the encoded value storage to 31 bits.

As with all postcode systems, a naxp encodes postcodes, but validation is a separate task, in this case typically requiring the Eircode Address File (ECAF).

Tip Click on a (pink) naxp to load it, together with examples, onto the interactive page so you can test it for yourself.

Variant naxp Notes
default [AC-FHKNPRTV-Y]\9[\9AC-FHKNPRTV-Y] \s!! [\9AC-FHKNPRTV-Y]{4} Accepts an Eircode with or without a separator space, e.g. A65 F4E2 or A65F4E2.
Prints with a space, e.g. A65 F4E2.
no-separator [AC-FHKNPRTV-Y]\9[\9AC-FHKNPRTV-Y] \s!? [\9AC-FHKNPRTV-Y]{4} Accepts an Eircode with or without a separator space, e.g. A65 F4E2 or A65F4E2.
Prints without a space, e.g. A65F4E2. (Useful for writing to IT systems.)