Skip to main content
Skip to main content

UK EORI CDS / XI Validator

Validate compliance of GB/XI prefixes and 9 or 12-digit extensions for post-Brexit UK EORI.

How does UK EORI CDS / XI validation work?

Validation sanitizes the input by removing spaces and hyphens, checks if the prefix corresponds to GB (Great Britain) or XI (Northern Ireland), and confirms the presence of 9 or 12 numeric digits required by HMRC.

Ensures full compliance with the Customs Declaration Service (CDS) and the Northern Ireland Windsor Framework.

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 about Validation

Does this tool check against the official HMRC database?
No. Validation is purely algorithmic and structural without querying confidential UK government databases.
What is the difference between 9 and 12-digit EORI?
The 9-digit format corresponds to the operator's base VAT number; the 12-digit format appends 3 digits for local branch identification.