Skip to main content
Skip to main content

UK EORI CDS / XI Generator

Generate and format United Kingdom EORI numbers (GB and XI Northern Ireland) for HMRC Customs Declaration Service (CDS).

Waiting for generation...

About UK EORI CDS / XI

The EORI (Economic Operators Registration and Identification) number is issued by HM Revenue & Customs (HMRC) for businesses undertaking customs declarations via the Customs Declaration Service (CDS).

Under the Northern Ireland Protocol (Windsor Framework), HMRC regulates two official prefixes: GB (for Great Britain) and XI (for Northern Ireland operators trading with the EU), followed by 9 or 12 digits.

Anatomy & Structure of UK EORI

The post-Brexit EORI customs identifier has a structure regulated by HMRC:

PositionFieldLengthMeaning & RuleExample
1 to 2Jurisdictional Prefix2 lettersGB for Great Britain or XI for Northern Ireland (Windsor Framework)GB
3 to 11VAT Registration Number9 digitsCore entity tax identifier registered with HMRC123456789
12 to 14Branch Suffix (Optional)3 digitsExtension for local branches or subdivisions (usually 000)000

EORI CDS Validation Algorithm

EORI integrity validation by CDS follows official HMRC guidelines:

EORI = (GB | XI) + (9 or 12 digits)
  1. 1. Remove all whitespace and punctuation characters.
  2. 2. Validate that the string starts strictly with prefix 'GB' or 'XI'.
  3. 3. Check that the total length is either 11 characters (base) or 14 characters (with branch suffix).
  4. 4. Verify that all characters following the prefix are decimal numeric digits.

Frequently Asked Questions (FAQ)