UK National Insurance Number generator (for testing)

Generate National Insurance Numbers in the AA 99 99 99 A format for testing forms and systems. Fictitious test data, not real NINOs.

What the generator produces

The generator creates fictional National Insurance number test values in the standard two-letter, six-digit and final-letter structure, such as QQ 12 34 56 C. Spaces can be included or removed to test both common input styles.

The prefix rules exclude letters and combinations that are not normally used in the NINO format. A correctly shaped value is still test data: it is not issued by the UK government and must not be used as a real person's identifier.

Useful validation cases

  • Test form masks with and without spaces.
  • Confirm that lowercase input is normalized or rejected as intended.
  • Check minimum and maximum field length rules.
  • Use several generated values to exercise imports, fixtures and automated tests.

Format-valid is not government-issued

This tool validates the shape of test data, not whether a number belongs to someone. If you need to find your own National Insurance number, use the official GOV.UK service instead.

Frequently asked questions

Are these real National Insurance numbers?
No. They are fictional values for software tests, examples and form validation.
What NINO format does the tool use?
Two prefix letters, six digits and a final suffix letter, optionally displayed with spaces.
Can I use a generated value for employment or tax?
No. Only a number issued to you through official UK channels can be used for real services.