United Kingdom · GB

The UK VAT number (GB)

Nine digits issued by HMRC, checked against one register only: HMRC's own. VIES stopped answering for Great Britain at Brexit, and the free HMRC lookup that replaced it for many was withdrawn in February 2025.

Format: GB + 9 digits (also 12 digits, or GD/HA + 3)

Example: GB220430231

Issued by: HM Revenue & Customs (HMRC).

The format

HMRC calls it the VAT registration number, or VRN. Four shapes exist:

  • GB + 9 digitsThe standard form, by far the most common.
  • GB + 12 digitsA branch of a group or division registration: the 9-digit number plus a 3-digit branch code.
  • GBGD + 3 digitsGovernment departments, numbered below 500.
  • GBHA + 3 digitsHealth authorities, numbered 500 and above.

The last two digits of the nine are a check. Multiply the first seven by 8, 7, 6, 5, 4, 3 and 2, add the last two read as one number: the total is a multiple of 97. Numbers issued since 2010 use a second variant, where the total plus 55 is the multiple of 97, so a validator has to accept both. A number that passes neither was mistyped.

Formatting varies on invoices (GB 220 4302 31 is the usual grouping) but only the digits count.

VIES no longer answers for GB

Until the end of 2020, a GB number was checked in VIES like any member state's. Since 1 January 2021 it is not: VIES answers an error for every GB number, valid or not. The only register that knows whether a GB number is live is HMRC's.

Northern Ireland is the exception. Under the Windsor Framework, businesses moving goods between Northern Ireland and the EU use an XI number, and XI numbers are still in VIES. The digits are usually the same as the GB number; the prefix is not interchangeable.

Finding the business behind a number

HMRC, Check a UK VAT number

HMRC answers one VRN at a time with the registered name and address of the business, and only for numbers currently registered. Version 1 of that API was open to anyone; it was removed on 17 February 2025. Version 2 is the same lookup behind OAuth: an application registered on the HMRC Developer Hub, tested in a sandbox, and production credentials granted after a review of about two weeks.

The verified check

Asked on behalf of a VAT-registered business, with its own VRN, HMRC also returns a consultation number: the reference that proves the check was made on that day, the counterpart of the one VIES issues for EU numbers.

Companies House

Companies House is free, complete and has an API, and it is keyed by company number. The VRN is issued by HMRC to the business, not to the company, and nothing published connects the two: a sole trader or a partnership has a VRN and no company number at all.

UK-specific pitfalls

  • VIES says nothing about GB. A GB number "rejected by VIES" says nothing about the number.
  • A cancelled number looks like a typo. HMRC answers 404 for both a number that was never issued and one whose registration was cancelled.
  • No legal form, no company number. HMRC returns a name and free address lines, nothing more. The town is whichever line comes last.
  • GD and HA numbers are not looked up. The API accepts nine or twelve digits only.
  • Anything built before February 2025 on the open API has stopped working. Version 1 answers no more.

One API, one response shape

Vatlas turns a business tax number into a company record: legal name, national identifier, legal form, status and address. United Kingdom: the same call and the same response as for every other country covered.

meta.source names the register that answered (SIRENE, ARES, VIES…) and meta.sourceDate the day it said so: the publication date of the file for a register we import, the day of the call for one we query live. The shape of the response never changes from one country to the next.

Try it on your own numbers. An email address is all it takes to create an account, with 100 requests a month and a working key in about a minute.

Get a free key Read the documentation

Frequently asked

The UK VAT number in short

How many digits does a UK VAT number have?

Nine after the GB prefix, or twelve for a branch. Government departments and health authorities have GD or HA plus three digits.

Can I check a UK VAT number in VIES?

No, not since 1 January 2021. Only Northern Ireland's XI numbers are still in VIES.

Is there still a free HMRC VAT number checker?

The web form on GOV.UK remains, for one number at a time by hand. The open API behind it was withdrawn in February 2025; version 2 needs a registered application.

Is the VAT number the Companies House number?

No. The VRN is issued by HMRC, the company number by Companies House, and neither can be derived from the other.

What is a consultation number?

The reference HMRC issues for a verified check, made on behalf of a VAT-registered business. It proves the number was checked on that date.

VAT numbers in other countries

Last updated 19 October 2026.

Creating a key takes a minute

100 requests a month for free, no card required. 5,000 a month for 29 € excl. VAT when you outgrow it.