UK National Insurance Number Validator
Finance & Global IDsValidate a UK National Insurance Number (NIN) format instantly. Checks letter restrictions, reserved prefixes, and suffix rules — entirely in your browser.
What is a UK NIN?
A UK National Insurance Number Validator checks whether a NIN follows the exact structural rules HMRC uses when issuing these numbers — the right combination of letters and digits, with several specific exclusions that catch many common typos and invalid numbers immediately. A NIN follows the format two letters, six digits, one letter (for example, AB123456C), but several letter combinations are specifically disallowed by the official numbering scheme.
This validator checks every one of those rules — banned first and second letters, reserved two-letter prefixes, and valid suffix letters — and tells you immediately whether a number is correctly formed. For the equivalent US identifier, see the SSN Validator, and for the Canadian equivalent, see the Canada SIN Validator.
How to use this UK NIN calculator
- Enter the National Insurance Number in the National Insurance Number field, with or without spaces.
- Read the result card to see whether the number passed validation.
- If it failed, check the details or message to see exactly which rule was violated.
- Compare the number against the original document — payslip, P60, or HMRC letter — to find the discrepancy.
- Correct the number and re-check until it passes.
Formula & Methodology
A NIN is validated against four structural rules, checked in sequence: 1. Format: must match exactly 2 letters, 6 digits, 1 letter (spaces stripped first). 2. First letter: must not be D, F, I, Q, U, or V. 3. Second letter: must not be D, F, I, Q, U, V, or O. 4. Prefix: the first two letters together must not be BG, GB, NK, KN, TN, NT, or ZZ. 5. Suffix: the final letter must be A, B, C, or D. Worked example: AB 12 34 56 C → normalised to AB123456C - First letter "A" ✓, second letter "B" ✓, prefix "AB" not reserved ✓, suffix "C" ✓ → valid. Invalid example: GB123456C fails immediately, since "GB" is a reserved prefix.
Frequently Asked Questions