Is a National Insurance number personal data? Yes, redact it
· Updated

Joaquín Trapero in AI and privacy specialist, and founder of Nonimo.
“Your National Insurance number is personal data: true or false?” reads like a training quiz, and it’s how most people who land here phrase it. The answer is true: the number points at one person for life, so data protection law treats it as seriously as a name.
Below are the quiz, the follow-up questions people search for straight afterwards, and then the practical bit: getting the number out of a payslip or an export before it goes anywhere near an AI tool.
True: your National Insurance number is personal data. Under the UK GDPR an identification number makes a person identifiable, with or without a name beside it. It isn't special category data, and GOV.UK says to share it only with organisations that need it. An AI tool never does.
Your National Insurance number is personal data: true or false?
Article 4(1) of the UK GDPR says a person is identifiable by reference to an identifier, and the second example it gives is an identification number. Section 3 of the Data Protection Act 2018 says the same about living individuals.
The regulator is blunter. The ICO’s guidance on identifying someone indirectly names the national insurance number, next to a passport number and a car registration, as information that can single one person out from others. Business.gov.uk lists it too.
The trick questions after it are the ones I find more useful for a team, because they decide what happens to a payslip. What the law means for the tools themselves is in our guide to GDPR compliant AI tools in the UK.
Four statements about NI numbers
Pick an answer to see the reason.
1 of 4. Your National Insurance number is personal data.
True. An identification number is one of the identifiers named in Article 4(1) UK GDPR and section 3 of the 2018 Act.
2 of 4. With the name cut off, an NI number on its own is anonymous.
False. The number is the identifier. The ICO lists it among details that single a person out, and DWP and HMRC share one record of which number belongs to whom.
3 of 4. A National Insurance number is special category data.
False. The special categories are things like health, ethnic origin and union membership. A union deduction on the same payslip is one, though: see special category data and AI.
4 of 4. It's fine to give your NI number to anyone who asks politely.
Answers from UK GDPR Article 4, DPA 2018 section 3, DWP's personal information charter, GOV.UK and two pieces of guidance from the Information Commission (still the ICO on its own site): indirect identification and special category data.
Is a National Insurance number confidential? Who GOV.UK says may need it
“Confidential” isn’t a legal label here, but GOV.UK gets close. Its page on your National Insurance number says that, to prevent identity fraud, you shouldn’t share it with anyone who does not need it. Then it names the organisations that may.
DWP’s personal information charter explains why that matters for decades, not days. It keeps basic details such as your name, date of birth and address for as long as your National Insurance number exists, and the number stays the same for life.
That list is shorter than most people expect. Anything outside it deserves a “why?”, and the same goes for the other numbers in a personnel file, from a passport copy to a driving licence.
Who may need your National Insurance number
GOV.UK's list, grouped. The highlighted row is everyone else.
| Who | When GOV.UK says they may need it |
|---|---|
| HMRC and your employer | Listed without a condition |
| Department for Work and Pensions | If you claim state benefits; in Northern Ireland, the Department for Social Development |
| Your local council | If you claim Housing Benefit; in Northern Ireland, the Housing Executive |
| Electoral Registration Officers | To check your identity when you register to vote |
| Student Loans Company | If you apply for a student loan |
| Pension and ISA providers, authorised investment firms | For a personal or stakeholder pension, an ISA, or buying and selling investments |
| Selling platforms and cryptoasset services | If they are required to report to HMRC |
| Veterans UK | Listed without a condition |
| Anyone else, an AI chatbot included | Not on the list |
GOV.UK, "Your National Insurance number". GOV.UK still names the Department for Social Development; DWP's own charter names the Department for Communities. The driving licence number has its own rules.
Why would someone ask for your NI number, and can you refuse?
Most requests are routine. An employer needs the number to report your pay to HMRC, and GOV.UK adds that you can start work before your number arrives if you can prove your right to work in the UK.
Outside GOV.UK’s list, nothing in that guidance obliges you to hand it over. Asking why is reasonable, and so is offering another way to prove who you are. Councils ask for it on Housing Benefit claims, which is why our page on AI for councils treats it as a field to strip.
An unexpected text or email asking for it gets no reply from me. HMRC won’t even give people their own number over the phone or on webchat, which tells you how the number is meant to travel.
Who is asking for your NI number?
Pick the closest match.
The request comes from…
Based on GOV.UK's list of organisations that may need the number, and its pages on applying for and finding one. Our reading, not legal advice.
How are National Insurance numbers generated? Prefix, digits and the final letter
HMRC’s National Insurance Manual sets the shape at page NIM39110: two letters, six numbers and a final letter, which is always A, B, C or D. Its example, QQ 12 34 56 A, comes with a warning not to use it as a real number.
On allocation, the manual says a prefix is chosen and used until all its numbers have gone, then another one, not necessarily the next alphabetically. Nothing there links the prefix to your year of birth, whatever the related searches suggest.
The final letter is pure history. It dates from contribution cards returned through the year: A meant March, B June, C September, D December. A D at the end of yours says nothing about you, and I rather like that a filing habit from the card era still sits on every payslip.
Anatomy of a National Insurance number
HMRC's specimen format, pulled apart.
A schematic, not a real number: Q is never used in a prefix. Rules from HMRC NIM39110; pairs as the GOV.UK Design System shows them. O is never the second letter, and BG, GB, KN, NK, NT, TN and ZZ are not used.
Some references look like NI numbers without being one, and they belong in the same redaction sweep. The table shows the ones HMRC names, and which personal data to redact covers the rest of a tax file.
Lookalikes HMRC lists in NIM39110
The highlighted row is the only one tied to a date of birth.
| Reference | What it was or is |
|---|---|
| TRN, format 11 a1 11 11 | Temporary Reference Number: lets someone pay tax and contributions, but is not a NINO |
| OO prefix | Temporary tax credit administration |
| FY prefix | Previously used for Attendance Allowance claims |
| NC prefix | Dummy stakeholder pension identifier built from date of birth and gender; not used since 2005-06 |
| PP999999P | Past pension scheme reporting; PP itself is a valid prefix |
| PZ and PY | Old Inland Revenue tax-only cases, not used since August 2002 |
| TN | Temporary numbers employers may no longer use |
HMRC, National Insurance Manual, NIM39110.
How do I know my NI number is correct? Check the shape first
GOV.UK lists where your own number is printed: a payslip, a P60, letters about tax, pensions or benefits, the HMRC app, your personal tax account, and Apple or Google Wallet if you saved it there. Compare those, and you have your answer.
If you hold numbers for other people, the quick test is the shape: two letters HMRC allows, six digits, then A to D. The checker below applies those rules to pasted text, which is handy before a payroll CSV leaves the building.
Don’t make up a “harmless” sample number for testing either. The GOV.UK Design System warns that one obvious-looking example, with an AB prefix, belongs to a real person, and tells designers to use QQ 12 34 56 C instead.
What's in this payslip line?
Replace the made-up line with your own text.
Runs in your browser and sends nothing. It flags the usual ID and account numbers, NI numbers included; names and street addresses are yours to check. The line is invented, and its numbers belong to no one.
What happens if someone has your National Insurance number?
GOV.UK’s reason for keeping the number close is identity fraud. The number is useful to a fraudster because government records tie it to your name, address and date of birth, and a payslip often prints the number right beside your name and address.
nidirect, the Northern Ireland government site, says to shred anything with National Insurance details and report suspected identity theft at once; its reporting link goes to Action Fraud. A business that leaks numbers also pays to handle it, and UK cyber policies differ on what they cover.
In an office, the copy worries me more than the bin. A payslip pasted into a chatbot is a copy nobody controls. If that has already happened, our guide on whether pasting client data into ChatGPT is a breach helps you decide what comes next.
Why a leaked NI number lasts longer than a leaked password
What you can fix afterwards, and what you can't.
A leaked password
Changed in a minuteOpens one accountOld copies stop workingA leaked NI number
Stays the same for lifeKept with your basic details while it existsEvery old copy stays validGOV.UK (the number never changes) and DWP's personal information charter. How a copy escapes through software is in AI data leakage.
Redacting a National Insurance number from a payslip, P60 or HR export
Search for the labels first: National Insurance, NI No, NINO. Then search for the shape, with and without spaces, because numbers typed by hand rarely follow GOV.UK’s neat pairs.
A black box drawn over a PDF is the shortcut I’d ban outright. The text stays underneath and comes back with copy and paste. Where else the number hides depends on the document, as the panels below show, and an Excel file is the worst for hiding it.
Where the number sits, document by document
Pick the document in front of you.
In the header, beside the name and tax code, and sometimes repeated on every page. Redact the copy, then search the result for the number. For a PDF payslip use real PDF redaction.
In the employee details box, with the employer's PAYE reference nearby. If it's a Word template, comments and tracked changes can keep a deleted number alive: see redacting in Word.
In a reference line under the address, or in the first sentence. Copy only what the letter asks you to do and by when, and leave the header behind. File properties can carry names too: remove the metadata.
In a column of its own, headed NINO or NI No. Delete the whole column rather than editing cells, and check for hidden columns that travel with the file. Our Excel guide shows how.
Anywhere on the page, and unsearchable. A chatbot keeps an uploaded image like any other file, as our guide to photo uploads explains. Retype the part you need instead.
Payslip, P60 and letters from GOV.UK's list of where the number appears; the rest from ordinary office paperwork.
A search pattern for the shape
Paste it into any editor with regular expression search, such as LibreOffice, Notepad++ or Visual Studio Code.
[A-Z]{2} ?[0-9]{2} ?[0-9]{2} ?[0-9]{2} ?[A-D]
Deliberately loose: it also finds HMRC's specimen and some lookalikes from the table above, which you'd want gone anyway. Switch on case-insensitive search for numbers typed in lower case.
Is a redacted NI number anonymous? Pseudonymised data under UK GDPR
Usually not. Swap the number for a label, keep a note of which label is which person, and Article 4(5) of the UK GDPR calls that pseudonymisation. The file stays personal data while the lookup table exists, as our guide to pseudonymisation under the UK GDPR explains.
For an AI query that’s the version you want, because the answer has to come back to a real employee. We ran the test on 1 October 2026: an invented payroll query, run through the Nonimo app, with the government’s specimen number in it.
Leave the tax code in. 1257L describes an allowance, not a person, and the answer about her pay depends on it. Accountants can see the same thing on a client file on our page for accountants.
The payroll query before and after
What the AI receives, with the list of labels kept on the computer.
Employee: Mrs Jane Bloggs. NI number: QQ 12 34 56 C. Date of birth: 30/02/1978. Email: jane.bloggs@example.com. Tax code: 1257L. Mrs Jane Bloggs asks why her September pay is lower than her August pay.
Employee: [PERSON_1]. NI number: [REFERENCE_1]. Date of birth: [BIRTH_DATE_1]. Email: [EMAIL_1]. Tax code: 1257L. [PERSON_1] asks why her September pay is lower than her August pay.
Our test with the Nonimo app, 1 October 2026. Invented query: 30 February never existed, and the NI number is the government's specimen. The tax code stayed because it identifies no one.
Solicitors, payroll bureaux and councils that hold NI numbers
Some offices hold a handful of numbers; others hold thousands. For a solicitor, paragraph 6.3 of the SRA Code of Conduct says you keep clients’ affairs confidential, and an NI number in an employment or divorce file is part of those affairs.
The SRA’s warning notice on misuse of AI, published on 17 August 2026, lists confidential client information entered into public AI tools among the problems it has seen. Our page for solicitors shows the redaction on a client file.
A payroll bureau usually processes employees’ details for its clients, so the export is someone else’s data in its hands. Where payroll software calls a model by itself, a gateway on your own server can take the number out before the request leaves.
Where NI numbers pile up
The highlighted row has a regulator watching AI use specifically.
| Office | Where the numbers arrive | What sits on top of data protection |
|---|---|---|
| Solicitors | Payslips and pension letters in employment, family and injury files | SRA Code paragraph 6.3; tell clients in the engagement letter |
| Payroll bureaux and accountants | Every payroll run, P60 and Self Assessment file | The client's instructions on what the data is for |
| HR teams | Starter details and pension enrolment | Payroll and HMRC reporting as the purpose |
| Councils | Housing Benefit claims | Public sector rules in AI in local government |
SRA Code of Conduct for Solicitors and the SRA warning notice of 17 August 2026; the councils row from GOV.UK's list. The other rows describe ordinary practice.
![The NI number's final letter HMRC's specimen National Insurance number QQ 12 34 56 A shown as [NI_1]; its final letter dates from old contribution cards](/guias/en-gb/national-insurance-number-suffix-letter-label.webp)
Taking NI numbers out of AI prompts without slowing payroll down
By hand works for one letter and one question. It falls apart on the fortieth payslip of the month, which is exactly when someone pastes the original “just this once”. For a bureau, I’d make the label swap part of the routine, not a judgement call each time.
If your team uses Copilot inside Microsoft 365, the same applies to everything you ask it to read, and what Copilot can see is worth five minutes. This page explains the rules in general; for a decision about one file, ask whoever runs data protection in your organisation.
Nonimo for UK offices swaps each National Insurance number on a payslip or export for a label on your own computer, then puts it back in the AI’s answer. The payroll question goes out; the number stays at your desk.
Two ways to keep the number out
Choose by how many documents you handle.
By hand
- Fine for one document and one question
- Search the labels, then the shape
- You keep the label list in a note of your own
- Headers and footers are easy to miss
With the Nonimo app
- Labels replace the number on your computer
- The same person keeps the same label
- Each detail is marked on screen for you to check
- The real number returns in the AI's reply
How the labels stay on your machine is on our security page.
Sources
- UK GDPR, Article 4: an identification number as an identifier in 4(1); pseudonymisation in 4(5); the Information Commission defined in (A2A).
- Data Protection Act 2018, section 3: an identifiable living individual, by reference to an identifier such as an identification number.
- HMRC, National Insurance Manual, NIM39110: format, prefix allocation and exclusions, the suffix and contribution cards, the TRN and administrative prefixes.
- GOV.UK, Your National Insurance number: same for life; do not share it with anyone who does not need it; the organisations that may.
- DWP, Personal information charter (GOV.UK): basic information kept as long as the number exists; the Customer Information System shared with HMRC.
- DCMS, Information Commission succeeds the ICO as UK’s data protection regulator (GOV.UK news): the regulator’s new name from 30 September 2026.
- GOV.UK, Find your National Insurance number and Apply for a National Insurance number: where the number is printed; not given by phone or webchat; starting work before it arrives.
- GOV.UK Design System, National Insurance numbers: numbers spaced in pairs; use QQ 12 34 56 C, as an AB example belongs to a real person.
- Business.gov.uk, Data protection in your business: identifying numbers like the National Insurance number are personal data.
- nidirect, Protect your identity: shred anything with National Insurance details; report suspected identity theft.
- ICO, Can we identify an individual indirectly?: the national insurance number listed as information that can single a person out.
- ICO, Special category data: the list of special categories.
- SRA, Code of Conduct for Solicitors: paragraph 6.3 on client confidentiality.
- SRA, Misuse of AI warning notice, 17 August 2026: confidential client information entered into public AI tools.
- Nonimo, own test, 1 October 2026: the payroll query above.
Accessed 8 November 2026.
Related guides
Common questions
What happens if someone has my National Insurance number?
They could try to use it for identity fraud. That is the reason GOV.UK gives for sharing it only with those who need it. If you suspect misuse, report it; nidirect's reporting page points to Action Fraud.
Can I refuse to give my National Insurance number?
Yes, to anyone outside GOV.UK's list of organisations that may need it. Your employer, HMRC, DWP and your pension or ISA provider are on it. A letting agent or a gym is not.
Why would someone ask for my National Insurance number?
Usually to report something about you to HMRC or DWP. Employers need it for payroll, councils for Housing Benefit, and Electoral Registration Officers to check your identity when you register to vote.
What does the D at the end of my National Insurance number mean?
Nothing about you today. HMRC says the suffix dates from contribution cards: D meant the card went back in December, A in March, B in June and C in September.
Does the National Insurance number prefix show your year of birth?
No. HMRC's manual says a prefix is chosen and used until its numbers run out, then another is picked, not necessarily the next in the alphabet.
How do I know my National Insurance number is correct?
Compare it with your payslip, P60 or the HMRC app. A valid one has two letters, six digits and a final A, B, C or D, with no D, F, I, Q, U or V in the first two letters.
Can HMRC tell me my National Insurance number over the phone?
No, not by phone or webchat. GOV.UK says you can download a letter showing it from the HMRC app or your personal tax account instead.