Free telecom & identity tools
Free tool
United Kingdom National Insurance Number (NINO) Generator & Validator
Generate well-formed test National Insurance numbers that follow HMRC's prefix and suffix rules — a QQ dummy that can never be a real number, or a random allocated-style number — or paste a NINO to check its format.
NINO Generator
Pick the kind of number you need. There is no check digit to calculate — HMRC's rules are purely about which prefixes are allowed.
National Insurance Number Validator
Paste a National Insurance number, with or without spaces, to check it against HMRC's format rules. There is no check digit, so a pass means well-formed, not issued.
Every National Insurance number this tool produces is synthetic test data only. It is not issued by HMRC or DWP and does not belong to any real person. Use it on your own test systems only — and prefer the QQ dummy option for anything that might end up shared, logged or screenshotted.
How a National Insurance number is structured
A National Insurance number is nine characters: two prefix letters, six digits and an optional suffix letter. Taking AB 12 34 56 C as an example:
| Digits | Segment | Meaning |
|---|---|---|
| AB | Prefix | Two letters. Neither may be D, F, I, Q, U or V, and the second is never O. BG, GB, KN, NK, NT, TN and ZZ are never allocated as a pair. |
| 123456 | Number | Six digits. |
| C | Suffix | A, B, C or D. Administrative, and some systems omit it entirely. |
Unlike a CPF, CNPJ or CURP, a NINO carries no check digit — there is no arithmetic that ties the digits together, so validation is entirely a matter of the prefix and suffix rules above. That also means a passing result only tells you a number is well-formed, never that it has actually been issued to anyone.
HMRC's own guidance illustrates the format with QQ 12 34 56 C. QQ is one of the reserved prefixes that is deliberately never allocated, so that example is guaranteed invalid and can never collide with a real person's number — exactly why it is ideal for test fixtures. A well-formed number built from a random allocated-style prefix, by contrast, follows every rule HMRC publishes but is not checked against the specific ranges that have actually been issued, so it could in principle coincide with a real NINO. That risk is why the QQ dummy is the default here.
Why generate test National Insurance numbers?
Any system that touches UK employment or benefits stores National Insurance numbers — payroll engines, HMRC Real Time Information (RTI) submissions, pension and workplace benefits onboarding, and right-to-work or KYC checks. All of them need realistic input to test against.
Using a real person's NINO in a test environment is bad practice and, under UK GDPR, a needless handling of personal data outside its original purpose. Synthetic numbers let you exercise format checks and prefix-rule validation without any real identifier leaving production — and the QQ dummy option guarantees the value can never be mistaken for, or collide with, a real person's number.
