Skip to contentRedact PII for your data. Get a quote

Coverage · United Kingdom

UK National Insurance number redaction

OpenAnonymizer finds the UK National Insurance number in text and replaces it with a placeholder when its official label confirms it. It runs on a CPU, with no GPU and no API calls.

At a glance

Country
United Kingdom GB
Format
National Insurance number
Placeholder
UK_NINO1Each distinct value gets its own number: UK_NINO_1, UK_NINO_2, and so on.
How it is confirmed
LabelOfficial label
Used for
Recording National Insurance contributions and tax in the UK; employers and HMRC use it for every worker.

About the National Insurance number

The number is two letters, six digits and a final letter from A to D, often written in pairs: QQ 12 34 56 C.

The QQ prefix is never issued, which is why HMRC uses QQ 12 34 56 C as its example.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
National Insurance number: QQ 12 34 56 C
Out
National Insurance number: UK_NINO1

How OpenAnonymizer handles it

Confirmed by its label. The library does not verify a check digit for this format, even where one exists. The number is masked when its official label is in the text, in the local language and script.

  • It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
  • Every package ships every detector, so this format is covered in each of them.
  • It covers 34 languages.
How a match is decided