To anonymise data for AI, you remove every detail that could identify a person, directly or in combination, before anything is pasted. That means names and contact details, but also job titles, dates, places and unusual events. This walkthrough goes step by step, then covers where anonymising falls short and when the honest answer is not to use AI for the task.
Deleting a name feels like the job done. It rarely is. "The finance manager in our Inverness office who went on long-term sick leave in spring" names nobody and identifies one person to everyone who works there. Anonymising text for an AI tool is a short process with a few steps people skip, and a final test most people never run.
How to anonymise data for AI, in seven steps
To anonymise data for AI, work through the text in this order. Each step catches something the one before misses.
- Decide whether AI should see this at all.
- Cut everything the task doesn't need.
- Find the direct identifiers.
- Find the indirect ones.
- Replace with consistent labels.
- Generalise what's left.
- Read it as a stranger, then as a colleague.
The sections below walk through each, using one example: Aled, an HR adviser at a care provider in Cardiff, who wants help structuring a summary of a grievance investigation.
Step one: decide whether AI should see it
Before editing anything, check two things. Does your employer's policy allow this kind of material in this tool? And does the task actually need the content, or only its shape?
Aled's task was structure: a clear order for findings, evidence and recommendations. He didn't need the assistant to read the grievance at all. A description of the sections would do. That's the cheapest anonymisation there is: not sending the data.
If the content is health, criminal records or similar special category data, or it's under legal privilege, stop here unless your organisation has approved a tool for exactly that.
Step two: cut what the task doesn't need
Data minimisation means sending only what the task requires. For most writing tasks that's far less than the whole document.
If Aled wanted help with the wording of the recommendations, he needed the recommendations and a one-line summary of the findings. Not the witness statements, not the timeline, not the email chain. Every paragraph you cut is one you don't need to anonymise.
Step three: find the direct identifiers
Direct identifiers point to a person on their own. Go through the text and mark every one:
- names, nicknames, initials and signatures
- email addresses, phone numbers and postal addresses
- employee, customer, case, account or booking numbers
- national insurance numbers, dates of birth, vehicle registrations
- photos, voice recordings and anything with metadata attached
Step four: find the indirect identifiers
Indirect identifiers are the ones people miss. Alone they're harmless. Together they narrow to one person.
| Detail in the original | Why it identifies | Safer version |
|---|
| "the deputy manager at our Barry site" | Usually one person holds that role | "a manager" |
| "aged 58" | Narrows a small team quickly | "an older employee", or leave it out |
| An exact date, such as the day of a meeting | Matches rotas and records | "in the spring", or "on day three" |
| "after her IVF treatment" | Health detail, and unusual | Remove entirely |
| "the only Welsh speaker in the team" | Unique in context | Remove entirely |
The smaller the organisation or community, the fewer details it takes. In a village, a street name and a profession can be enough.
Step five: replace with consistent labels
Swap each person for a neutral label and keep it consistent: Employee A, Manager B, Witness C. Consistency matters because the assistant needs to follow who did what. Don't use labels that hint, like "Employee F" for a woman.
Keep the key that links labels to real people on your own system, never in the chat. Once a key exists, the text is pseudonymised, not anonymised, which has a legal consequence covered below.
Step six: generalise what's left
Exact figures, dates and places become ranges and categories. A salary becomes "a mid-range salary". A date becomes "early in the investigation". A site becomes "one of our locations". Ask of each remaining detail: does the assistant need this to do the task? If not, generalise or cut it.
Aled's finished version read:
I'm drafting the outcome of a workplace grievance investigation. Employee A raised concerns about how Manager B allocated shifts over several months. Two witnesses gave partly conflicting accounts. Suggest a clear structure for the outcome report, with headings for findings, evidence considered and recommendations, and a neutral way to describe conflicting evidence. Don't invent any facts.
Step seven: read it as a stranger, then as a colleague
The test most people skip is the one that matters. Read the text twice.
First as a stranger: could someone with no inside knowledge work out who this is? Then as a colleague: could someone who works with these people? If the second answer is yes, go back to step four.
Where anonymising falls short
Anonymising is a risk reduction, not a guarantee. Be honest about its limits:
- Pseudonymised data is still personal data under UK GDPR, because a key exists. Data protection law still applies to it.
- Free text leaks. A quoted phrase, a writing style or an unusual event can identify someone even with every name gone.
- Small groups are hard. In a team of six, almost any detail narrows it down.
- The account still matters. On Claude, as one example: Consumer chats are used to train models only while the 'Help improve Claude' setting is on; business plans are excluded✓. Training settings don't change whether you were allowed to share the material.
The UK data regulator's guidance on AI is the primary source for the rules, and its status is worth knowing: Structured around accountability and governance, transparency, lawfulness, accuracy and fairness, last updated 15 March 2023. The ICO says that due to changes made by the Data (Use and Access) Act, the guidance is under review and may be subject to change.✓ The AI regulation pages keep the current position with its check date. Our guide on UK GDPR and AI tools goes into the law in more depth.
When not to use AI at all
Some tasks fail every anonymisation test, because the identity is the point. A reference for a named person. A reply to a specific customer's account query. A summary of one patient's history. In those cases, use a tool your employer has approved for that data, or write it yourself. Our guide on when not to use AI covers the wider list, and what not to paste into AI sets out the categories.
Teach me AI teaches this in Data, privacy and your workplace, with scenarios set in your kind of work. On our side, personal details typed into free text are stripped before anything is stored: the same principle, applied to us.
Before you paste
- Does the task need the content, or only its shape?
- Have you cut everything the task doesn't need?
- Are direct and indirect identifiers gone or generalised?
- Is the key kept off the chat?
- Would a colleague still recognise the person?