Free guide

How to anonymise data for AI: a step-by-step walkthrough

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.

Verified 6 Oct 2026 2 live tool facts · How this is maintained


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.

  1. Decide whether AI should see this at all.
  2. Cut everything the task doesn't need.
  3. Find the direct identifiers.
  4. Find the indirect ones.
  5. Replace with consistent labels.
  6. Generalise what's left.
  7. 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:

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 originalWhy it identifiesSafer 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 meetingMatches rotas and records"in the spring", or "on day three"
"after her IVF treatment"Health detail, and unusualRemove entirely
"the only Welsh speaker in the team"Unique in contextRemove 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:

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

Common questions

Is replacing names with initials enough?

Usually not. Initials, combined with a job title, a team or a date, often point to one person for anyone who knows the organisation. Replace names with neutral labels like Person A, then look at what else in the text narrows it down, and generalise or remove those details too.

Can I anonymise data for AI using an AI tool?

Not with the tool you're trying to protect the data from. Pasting the original into a chatbot so it can strip the names has already shared the names. Some organisations have approved redaction tools that run inside their own systems; ask your IT or data protection lead whether you have one.

Is pseudonymised data still personal data?

Yes, under UK GDPR. If you or anyone else holds a key that links Person A back to a real name, the data can still identify someone, so data protection law still applies. Only data that can no longer identify anyone, by any means reasonably likely to be used, falls outside it.

What if the task needs the personal details to work?

Then anonymising isn't the answer. A letter to a named customer about their account, or a summary of one person's medical history, depends on exactly the details you'd remove. Use an approved work tool if your employer provides one, or do the task without AI.

Go deeper

Modules that teach this properly

More on this

Practical AI skills

Every guide on this topic →

Next step

Find out where you actually stand

A short placement assessment scores you across five skill areas and builds a path through our 18 released modules, skipping whatever you already know. No card needed.

Find your level
When this changes

The facts on this page are re-checked on a schedule. One email a month says what moved in AI tools and the rules, and what it means for you.

Once a month. We’ll email you a link to confirm, and every issue has a one-click unsubscribe. How we use your address.