UK VAT Number Validator

Verify a UK VAT number's check digit with HMRC's mod-97 algorithm.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

UK VAT number validator

Every UK VAT number ends in a self-checking digit, so a single mistyped figure usually makes the whole number fail. This tool verifies that check digit using HMRC’s own weighted mod-97 algorithm — no online lookup — which is exactly what you want for invoice validation, supplier onboarding, or catching a typo before you submit a return.

How it works

The tool strips an optional GB prefix and any spaces, then validates the first 9 digits:

  1. Multiply the first 7 digits by the weights 8, 7, 6, 5, 4, 3, 2 and sum them.
  2. Add the 2-digit check value (digits 8–9) to that weighted sum.
  3. Old style: the total must be divisible by 97.
  4. New style: the total plus 55 must be divisible by 97.

A number passes if it satisfies either scheme — matching HMRC’s behaviour. A 12-digit number is handled as 9 core digits plus a 3-digit branch suffix, with the check applied to the first 9.

Example

Validate GB 123 4567 89 (base 1234567, check 89):

Digit1234567
Weight8765432
Product8141820201814

Weighted base sum = 112. Old style: (112 + 89) = 201, not divisible by 97 → fail. New style: (112 + 89 + 55) = 256, also not divisible by 97. A genuine VAT number whose check value is chosen correctly will make one of those totals land exactly on a multiple of 97 and show Valid check digit.

Privacy: the calculation runs locally with no HMRC lookup, so a pass confirms the number is well-formed — not that the business is registered. Verify registration on the official HMRC service.

Ad placeholder (rectangle)