← All posts
November 27, 2026

How to Mask Client Data for AI Without Losing the Thread

Hiding client names from an AI is the easy part. Keeping the AI useful while you do it is the part most people miss.

AI privacysmall businessclient dataaccounting firmsAI training
How to Mask Client Data for AI Without Losing the Thread

Every accounting firm I talk to asks the same question first: "What happens to my client data?" The honest answer is that you should mask client data for AI before a single file leaves your office. But this week I learned that hiding the names is only half the job. The other half is making sure the AI can still follow the story.

Why masking client data for AI matters

When you paste a tax return into a chat window, you are sending names, Social Security numbers, addresses and account numbers to someone else's computer. Most owners know this. Many do it anyway, because the work is easier with AI than without it.

Masking fixes that. You swap every private detail for a code before the file goes out. The AI does its work on the coded version. When the answer comes back, you swap the codes back to the real values on your own machine.

We built a small offline app that does exactly this. It has one rule I will not bend: it never connects to the internet. The masking and the keys to undo it both stay on your own computer.

The problem with a new code every time

The first version gave each private detail a fresh code in every batch. That kept things private. It also broke something important.

Say you mask a client's return in March. The client's name becomes one code. In April you mask a follow-up letter for the same client. The name gets a brand-new code. To the AI, those are now two different people.

That does not matter for a one-off question. It matters a lot if you want an AI assistant to work on a client over time, with notes, past files and context. A new code each month means the assistant can never connect the dots.

What does a company codebook actually change?

So we added a codebook: one per firm, kept on your own drive. The rule is simple:

  • The same real value always gets the same code, across every batch and every month.
  • A code is never reused for a different person.
  • If the shared codebook can't be reached, masking stops instead of quietly guessing.

On 8 real tax returns run through the new version, nothing private could be read in any output file. Across two separate sessions, 204 code-and-value pairs came out identical. That is the whole point: the AI sees the same client wearing the same mask, every time.

Two people must never share a code

Consistency creates a new risk. If you try too hard to match names, you can merge two different people into one. That is worse than a leak, because the AI's answer could put one client's details into another client's file.

So every matching rule was written to fail in the safe direction:

  • "A. Yusupova" only joins "Amina Yusupova" when exactly one person fits.
  • A list of two first names is never treated as one person.
  • Later files only search for full names of two or more words.

That last rule came from a simple example. Imagine a client named Bill Price. If the app searched for every single word, it would mask "bill" and "price" in every invoice you ever wrote. So single words are never searched. The cost is that a few ordinary words sometimes get masked by mistake. I accept that trade. Over-masking is annoying. Under-masking is a breach.

What this means for your firm

You don't need our app to use the lesson. Ask any privacy tool three questions before you trust it:

  1. Does it ever send my data anywhere? The answer should be no.
  2. Will the same client get the same code next month? If not, your AI will forget who they are.
  3. When it is unsure, which way does it fail? It should hide too much, never too little.

Privacy and usefulness are not opposites, but you have to design for both on purpose.

If you are starting to use AI with client files, begin by asking how your tool handles the same client twice. That one question tells you most of what you need to know.

How I can help · Never Behind

Corporate AI training and coaching for owners and their teams.

  1. 1Free ConsultationWhere AI can help, where your data is at risk
  2. 2Team trainingOne live session, up to 15 people
  3. 3Monthly coachingWe build it on your real work
Free ConsultationAI Operations Opportunity and Risk CheckFor companies and their leadership teams

Every week you wait, your team loses more hours to busywork, and client files may be going into free chatbots.

Next 5 teams only

Team training$1,500$2,500

Monthly coaching$600/mofrom $900/mo

Cancel the coaching anytime.