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:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 2 | Jurisdictional Prefix | 2 letters | GB for Great Britain or XI for Northern Ireland (Windsor Framework) | GB |
| 3 to 11 | VAT Registration Number | 9 digits | Core entity tax identifier registered with HMRC | 123456789 |
| 12 to 14 | Branch Suffix (Optional) | 3 digits | Extension 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. Remove all whitespace and punctuation characters.
- 2. Validate that the string starts strictly with prefix 'GB' or 'XI'.
- 3. Check that the total length is either 11 characters (base) or 14 characters (with branch suffix).
- 4. Verify that all characters following the prefix are decimal numeric digits.