Pseudonymisation under UK GDPR: what it is and how to do it
· Updated
![A pseudonymised prompt that still points to someone Invented AI chat drafting an HMRC appeal with the client as [PERSON_1]: pseudonymised under UK GDPR, yet one detail still identifies her](/guias/en-gb/pseudonymisation-uk-gdpr-penalty-appeal-prompt-labels.webp)
Joaquín Trapero in AI and privacy specialist, and founder of Nonimo.
Most UK offices already pseudonymise something without calling it that: a payroll export with staff codes instead of names, or a prompt where the client has become a label. The UK GDPR has a precise word for that step, and it comes with a condition people tend to skip.
The condition is that the law keeps applying. Whether an AI tool is acceptable is a separate check on the tool itself. This page deals with the data: what pseudonymisation is, who it protects, the techniques the ICO names and the offence that guards the result.
Pseudonymisation swaps identifiers for codes and keeps the key somewhere else. Under Article 4(5) of the UK GDPR, the result is still personal data for whoever holds that key, which is normally you. Only a recipient with no route to the key, or to the person by other means, may hold it as anonymous.
What is pseudonymisation under UK GDPR? One input, two outputs
Article 4(5) defines it as processing so that the data “can no longer be attributed to a specific data subject” without additional information. That information has to be kept separately, under technical and organisational measures. Leave either condition out and, legally, you haven’t pseudonymised anything.
The ICO describes two outputs from one input: the pseudonymised dataset and the additional information. The second worries me more. It lists every person in the file, in clear, so a lookup table on a hidden sheet of the same workbook defeats the point.
The second output can also sit with a supplier. A data privacy vault such as Skyflow holds the originals in a service its vendor runs, so the question of who has the key gets a third name in it.
Pseudonymisation, drawn as the ICO describes it
One record goes in. Two things come out, and they must not live together.
A schematic drawn from the ICO's pseudonymisation guidance and Article 4(5). Ifan Corrow and his membership are invented.
Is pseudonymised data personal data? Ask who holds the key
The ICO answers the question in a heading of its own: pseudonymised data is personal data “in the hands of someone who holds the additional information”. The next sentence is the one that gets quoted less. Shared without that information, it “may be anonymous information” in the recipient’s hands.
So the answer depends on the desk you sit at. From the organisation doing the swapping, the answer is always yes, and a DPIA that says otherwise is wrong. That relative view is also the case for sending labelled requests to a provider instead of running a private LLM yourself.
A processor sits in between. An AI provider on a business contract handles the text for you, so for you it remains personal data and the Article 28 contract still matters. What ChatGPT keeps from business accounts is a separate question from what the text contains.
Who holds the key?
Pick where the pseudonymised file ends up.
Who will hold the pseudonymised file?
Does the processor also receive the key or lookup table?
Could they get the key, or work out who people are by linking what is left with information they hold or can reasonably obtain?
Our reading of the ICO's pseudonymisation guidance and Recital 26, not advice on a particular file. The vocabulary across UK, EU and US regimes is in deidentified vs anonymised data.
Pseudonymisation vs anonymisation: when UK GDPR stops applying
The ICO puts it bluntly: pseudonymisation reduces risk and improves security, but it is “not a way of transforming personal data” so the law stops applying. Anonymisation is the only exit, and it means identification is no longer reasonably likely by anyone.
“Anyone” is wider than it sounds. The ICO’s page on indirect identification asks you to consider a determined person: investigative journalists, estranged partners, stalkers, industrial spies. Keep that list in mind whenever a file concerns one family or one small team. Age, occupation and place of residence together can single someone out.
The same page uses an HR example: application forms split into two folders, one holding random numbers and the other holding names against those numbers. Put together, the applicant is identifiable. Which personal details belong on the redaction list follows from that.
Does the UK GDPR apply?
The highlighted row is where most cleaned files actually sit.
| State of the data | UK GDPR applies? | Example |
|---|---|---|
| Identified | Yes | A complaint letter with the customer's name |
| Pseudonymised, key held by you | Yes | The same letter with labels, lookup on your server |
| Pseudonymised, recipient has no key and no other route | Possibly not, for the recipient only | A coded extract shared with an outside analyst |
| Anonymous | No | Complaint counts by month, too broad to single anyone out |
From Article 4 of the UK GDPR, Recital 26 and the ICO's guidance on pseudonymisation and indirect identification. Examples are ours. Health details make the stakes higher, which our guide to special category data covers.
Public bodies face the same test from another angle when a freedom of information answer could single someone out, which is why councils treat small numbers with suspicion.
Does pseudonymised data include names and addresses?
No. The names and addresses are exactly what moves into the additional information. What stays in the dataset is codes or labels, plus everything that was never a direct identifier in the first place: a job, a town, a date, an amount.
That leftover detail is where pseudonymisation quietly fails. A label instead of a National Insurance number does nothing if the line beside it says the client is the only mobile dog groomer in a small town. If the analysis needs place, keep the postcode district and drop the full code.
Word files add a second layer: an old version of the name may survive in tracked changes and comments, long after the visible text was labelled.
An invented accountancy note, three ways
What leaves the record, where it goes, and what still gives the person away.
Dilys Ankrett, 14 Garrow Street, Wexcombe ZZ6 2KD. Born 31/06/1979. NI number QQ 12 34 56 C. Mobile 07700 900427. Mobile dog groomer, the only one in Wexcombe. Appealing a late filing penalty for 2024-25.
[PERSON_1], [ADDRESS_1] [POSTCODE_1]. Born [DATE_1]. NI number [NI_1]. Mobile [PHONE_1]. Mobile dog groomer, the only one in Wexcombe. Appealing a late filing penalty for 2024-25.
PERSON_1 = Dilys Ankrett · ADDRESS_1 = 14 Garrow Street, Wexcombe · POSTCODE_1 = ZZ6 2KD · NI_1 = QQ 12 34 56 C
All invented: 31 June doesn't exist, QQ is HMRC's specimen prefix, ZZ is not a postcode area and 07700 900427 is in Ofcom's drama range. The highlighted phrase singles her out with every identifier gone. A scanned ID in the same file needs its own treatment, such as a watermarked passport copy.
How to pseudonymise data: hashing, encryption or tokenisation
The ICO’s guidance names three families of technique and attaches a caution to each. Before choosing, it asks you to set your goals, list the risks from insiders and outsiders, and decide who does the work: you, a processor or a joint controller.
It also warns that “an inadequate level of pseudonymisation” doesn’t meet the legal definition. An unsalted hash of an NI number is the example that irritates me most. NI numbers follow one fixed pattern, so an attacker can hash every possible one and compare: the brute force attack the ICO warns about.
Labels in an AI prompt are a form of tokenisation, and developer tools have kept the mapping in different places: LLM Guard kept the real values in a vault apart from the text sent to the model.
Pick a technique
What it does, the ICO's caution, and when it fits.
Hashing: a one-way function turns the identifier into a fixed string. Caution: the ICO tells you to avoid unsalted hashes and outdated functions such as MD5 and SHA-1. Short or predictable identifiers, like dates of birth, can be guessed by brute force. Add a salt, and keep any pepper away from the data. Fits: linking records across datasets without needing the original back.
Encryption: the identifier is scrambled with a key and can be restored with it. Format-preserving encryption keeps the shape, so a sort code still looks like one. Caution: whoever holds the decryption key holds the additional information, so key management decides everything. Fits: data you will need to restore, with proper key management.
Tokenisation: each identifier becomes a random token with no mathematical link to it, and a mapping table records which is which. The ICO's example is a bank linking accounts by token while its IT team holds the table. Caution: the table is the whole secret. Fits: text and prompts, where readable labels matter.
From the ICO's pseudonymisation guidance, the NCSC's advice to salt and hash stored passwords, and OWASP's note that a pepper is stored separately from the database. For API traffic, the same swap can run on a gateway on your own server.
Storing the additional information, and what a breach changes
Most of the ICO’s practical advice concerns the second output, not the swap. Keep the additional information in a distinct location, restrict who can reach it, encrypt it, log access, manage the keys, think about backups and destroy it once nobody needs it.
A lookup table in the same shared drive as the data falls short of the definition, in my view. Write the arrangement down in your DPIA and records of processing, and give it a line in your AI acceptable use policy if prompts are involved.
Breaches are where the effort pays back. Under Article 34, measures making the data unintelligible to outsiders can spare you telling the people affected, though the ICO says you still inform the regulator. Settle whether a pasted client file counts as a breach before it happens.
Is your key kept the way the ICO expects?
Tick what's true today.
0 of 7
Too many gaps. As things stand, the lookup table could travel with the data.
Close to the ICO's list. Fix the remaining boxes before the next share.
Your custody matches the organisational measures the ICO lists.
Drawn from the organisational measures in the ICO's pseudonymisation guidance. For rolling out one way of working across a team, see Nonimo for organisations.
Re-identification under section 171 of the DPA 2018
Section 171 makes it an offence to “knowingly or recklessly” re-identify de-identified personal data without the consent of the controller who de-identified it. Section 171(5) adds a second offence: processing the re-identified data. The ICO’s page describes these as the two offences guarding against unauthorised removal of pseudonymisation.
The Act’s word is “de-identified”: data that can’t be attributed to a person “without more”. The ICO notes it differs from pseudonymisation, as nothing requires the key to be kept apart. For a solicitor’s practice sending coded bundles out, suppliers should hear that undoing your labels is criminal, not only contractual.
The defences are set out below. Consent is the hinge: you are the controller, so you decide who may put the names back, and the AI clause in your engagement letter is a sensible place to say so.
Who commits an offence by putting the names back?
The highlighted row is the case the section was written for.
| Who re-identifies | Position under section 171 |
|---|---|
| A recipient matching your labels to names, without your consent | Offence under 171(1); using the result, 171(5) |
| You, the controller, restoring your own data | No offence: the consent is yours to give |
| Anyone for whom it was necessary to prevent, investigate or detect crime | Defence, 171(3)(a); "investigating" added from 5 February 2026 |
| Someone acting under a law or a court order | Defence, 171(3)(b) |
| A journalist with a reasonable belief it was in the public interest | Defence, 171(4)(c) |
| A researcher testing how well the pseudonymisation works | Defence if the effectiveness testing conditions in section 172 are met, including telling the Information Commission or the controller |
Data Protection Act 2018, sections 171 and 172, as on legislation.gov.uk. The ICO's guidance says the notice should go within 72 hours where feasible. Litigators have extra duties on AI in court documents.
What the Data (Use and Access) Act 2025 changed, and what it didn’t
We searched the Act’s full text on legislation.gov.uk for a new test of when information is personal data. There isn’t one. Article 4(1) still covers an “identified or identifiable natural person”, and Article 4(5) on pseudonymisation is untouched. No relative, holder-by-holder test has been written into UK law.
What the Act did was name pseudonymisation as a safeguard in two new UK GDPR articles, both fully in force since 5 February 2026. I find that telling: Parliament wrote the technique into the rules on reuse and research and left the definition of personal data alone.
The regulator changed shape too. The Information Commission took over the Information Commissioner’s functions on 30 September 2026, and it still publishes guidance under the ICO name. Its pseudonymisation guidance carries a banner saying it is under review after the Act. Firms with EU clients face a different set of rules again.
The 2025 Act and pseudonymised data
The highlighted row is the change people expect that never came.
| Provision | What it says now | In force |
|---|---|---|
| UK GDPR Article 4(1), personal data | Unchanged: identified or identifiable, directly or indirectly | No change |
| UK GDPR Article 8A(2)(e), reuse for a new purpose | Safeguards such as encryption or pseudonymisation count towards compatibility | 5 February 2026 |
| UK GDPR Article 84C(4), research and statistics | Safeguards must include measures for data minimisation, such as pseudonymisation | 5 February 2026 |
| DPA 2018 section 171(3)(a) and (6)(a) | Crime defence now covers investigating as well as preventing and detecting | 5 February 2026 |
| The regulator | Information Commission replaces the Information Commissioner | 30 September 2026 |
Amendment notes on legislation.gov.uk and the government's commencement page on GOV.UK. Councils using AI rely on the research and reuse rules more than most (AI in local government).
How to prep client text for AI without the names
The ICO’s data minimisation principle comes first: if the task doesn’t need a detail, it goes, not into a label. Labelling is for what the answer depends on, such as who wrote to whom. The order matters to me: delete first, label second.
Then check the file itself. A Word or PDF file can carry an author’s name in its metadata, which no label in the body touches.
A black box drawn over a PDF can leave the text underneath it, readable by anything that extracts text. That is what proper PDF redaction is for.
What's still in your text?
Paste a paragraph before it goes into a prompt.
Runs in your browser and sends nothing. It spots NI numbers, NHS numbers, DVLA driving licence numbers, postcodes, sort codes, passport numbers, UK phones and emails by format. It doesn't detect names, addresses or the details that single someone out.
Settings decide what happens after you paste. Gemini’s data handling depends on the account type you use.
The same goes for Claude’s training settings, which differ between consumer and commercial plans.
Copilot and confidential information gets its own guide. None of those settings changes what the labels left behind in the text.
![Re-identification under section 171 An invented client name, Dilys Ankrett, swapped for [PERSON_1]: putting it back without the controller's consent is a section 171 offence](/guias/en-gb/section-171-re-identification-offence-label.webp)
Holding the additional information yourself when text goes to AI
For prompts, the cleanest arrangement keeps the second output on the computer where the text was written. Nonimo for UK offices replaces names and numbers in the selected text with labels before it reaches the assistant, and puts the originals back in the reply. The record of which label is whom stays on that machine.
In UK GDPR terms, the text you send is still personal data in your hands. That is the honest label for your DPIA, and the reason deleting a conversation later is no substitute: a deleted ChatGPT chat disappears from view while the provider’s copy follows its own timetable.
Insurers ask about this now, so have an answer ready for the AI questions on a proposal form. This is a reading of published law and guidance, not advice on your own dataset.
Where each output lives when you label a prompt
The split the ICO asks for, applied to a chat window.
On your computer
The original text, with names and numbersThe lookup: which label stands for whomPersonal data: every UK GDPR duty appliesSent to the assistant
Text with [PERSON_1] and similar labelsNo key, and no list of who the labels areContext left in the text can still point to someone: read it firstOur summary of how labels and the lookup table are split, set against the two outputs in the ICO's guidance. Labels hide identifiers; they don't remove a detail like "the only one in town".
If a labelled file does leak, the policy wording matters: cyber cover for UK small businesses treats data incidents in quite different ways.
Sources
- ICO, Pseudonymisation: two outputs; personal data for whoever holds the additional information and possibly anonymous for a recipient without it; techniques, attacks, organisational measures, breaches, and the review notice after the 2025 Act.
- ICO, Can we identify an individual indirectly?: combinations of age, occupation and residence; the determined person; the two-folder HR example.
- UK GDPR, Article 4 (legislation.gov.uk): the definitions of personal data in 4(1) and pseudonymisation in 4(5), and the Commission in (A2A).
- Data Protection Act 2018, section 171 (legislation.gov.uk): the re-identification offences, the meaning of de-identified, the defences, and “investigating” inserted from 5 February 2026.
- DSIT, Data (Use and Access) Act 2025: plans for commencement (GOV.UK): most Part 5 changes from 5 February 2026; the Information Commission from 30 September 2026.
- NCSC, Password administration for system owners: salt before hashing, against brute force and rainbow tables.
- OWASP, Password Storage Cheat Sheet: unique salts, and a pepper stored separately from the database.
Accessed 8 November 2026.
Common questions
What is the difference between pseudonymisation and anonymisation?
Pseudonymised data can be relinked; anonymous data cannot, by reasonably likely means. Pseudonymisation keeps a key somewhere, so the UK GDPR still applies to it. Anonymisation takes the person out for good.
Is pseudonymised data considered personal data?
Yes, for whoever holds the key. The ICO adds that a recipient without the additional information may hold it as anonymous information. The organisation that did the swapping never does.
Does GDPR apply if data is anonymous?
No, genuinely anonymous information is outside the UK GDPR. The bar is high: nobody, a determined person included, can identify anyone using means reasonably likely to be used.
Does pseudonymised data still contain names and addresses?
No, those move into the separate key. The dataset keeps codes or labels, plus details like a job, a town or a date, which can still point at one person.
How do you pseudonymise data?
Replace each identifier with a salted hash, an encrypted value or a random token. Then store the key or lookup table apart from the data, with its own access controls.
How should I prep data for AI?
Delete what the task doesn't need, then label what it does. Names, NI numbers and postcodes become labels, and the lookup stays on your own systems, never in the prompt.
Is re-identifying pseudonymised data a crime in the UK?
Yes, if done knowingly or recklessly without the controller's consent. Section 171 of the Data Protection Act 2018 makes it an offence, with defences such as investigating crime.