Money and Finance

UK National Insurance Numbers: The Format Rules and Banned Prefixes

How a NINO is built, which letters and prefixes are never used, what a TN number means and how to check a number you were given.

Saizul Amin
Saizul Amin23 Oct 2026 · 3 min read
UK National Insurance Numbers: The Format Rules and Banned Prefixes

UK National Insurance Number Format

A National Insurance number is the personal reference for tax and benefits in the UK. Employers ask for it on day one, and landlords, banks and agencies often ask for it too. The UK NINO Format Validator shows whether a number follows the rules.

The shape

A NINO has two letters, six digits and a final letter. It is usually written with spaces: AB 12 34 56 C. The two letters are the prefix, the digits are the serial and the final letter is the suffix, which was once a quarter marker and is now always A, B, C or D. The number stays with a person for life.

Banned letters and prefixes

The first letter cannot be D, F, I, Q, U or V. The second letter cannot be D, F, I, O, Q, U or V. In addition, the prefixes BG, GB, KN, NK, NT, TN and ZZ are not allocated. The reason for the letter rules is to avoid confusion with similar characters and with other identifiers. The validator rejects numbers that break these rules and says whether the problem is a letter or a blocked prefix.

Temporary numbers

A number that starts with TN is a temporary reference used by some employers when a new starter has no NINO yet. It is not a real National Insurance number, and it should be replaced as soon as possible. Employers can ask the worker to apply for a number or to find it on a payslip, a P60 or in their personal tax account.

No check digit

There is no calculation that proves a NINO is real. The format rules are the only test available, so a correct format shows only that the number could exist. A number that passes can still be invented. Employers must make other checks, such as the person's right to work documents, and they can use the HMRC verification process if a name and a number do not match.

Using the validator

Paste one number per line. The tool removes spaces, makes letters capital and checks the length, the pattern, the letters, the blocked prefixes and the suffix. A valid number is shown in the standard spacing. The sample shows valid and invalid lines.

A worked example

AB123456C passes. BG123456A fails because BG is not allocated. DA123456C fails because D cannot be the first letter. QQ123456C fails because Q cannot be a prefix letter. AB123456E fails because the suffix must be A, B, C or D. AB12345 fails because it is too short.

Why format checks matter

Mistyped numbers lead to problems with tax codes, pension auto-enrolment and benefit claims. Catching an obvious typo when the form is filled in costs a few seconds, and fixing it later can take weeks. For payroll software, validating the format on entry is standard practice.

Where to find your number

Look at a payslip, a P45 or P60, a letter about tax or benefits, or your personal tax account on GOV.UK. You can also use the HMRC app. If you have never had a number, apply through the official service; do not buy a number from anyone.

Privacy

A NINO is personal data. Share it only with people who need it, and avoid posting it. This tool runs in your browser and keeps nothing.

Limits

This is a format check and not legal advice.

For employers and agents

If a new starter cannot give a number, you can still pay them using the HMRC process for employees without a NINO, and the person should apply for one. Do not make up a number or use a temporary one beyond the first payroll steps. Landlords and agents who record tenants should use the same check and keep the number only where the law lets them.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages