Skip to content

Spreadsheets and files

Masking, tokens and their limits ​

Last reviewed: 30 November 2026

In short: masking replaces names and identifiers with placeholders or tokens, so an AI can count, group and compare without seeing the originals. Masked data is not anonymous. Detectors miss values, and amounts, dates and other details can still point to a person. Treat masked data as personal data.

Why it matters ​

There are a few ways to mask a value:

TechniqueWhat the AI seesTrade-off
Remove the columnNothingSafest, but the AI can't use it at all
Placeholder ([masked])That a value existedIt can't group or count by it
Consistent token (CUSTOMER_7F3A9C1B)The same token wherever the same value appearsIt can group, rank and join, and so can anyone else who sees the tokens

The UK ICO defines tokenisation as "replacing sensitive data with unique tokens or identifiers", usable "as a pseudonymisation technique for analysis without revealing the original values."

Pseudonymised data stays personal data:

  • The European Data Protection Board says pseudonymised data that could be attributed to a person with additional information "is to be considered information on an identifiable natural person, and is therefore personal". That "also holds true if pseudonymised data and additional information are not in the hands of the same person."
  • The ICO agrees: "Pseudonymous information is still personal data and the law applies to it."

Two reasons why:

  • Singling out. The ICO says a person is still identifiable if you can "isolate the records that relate to a person from a dataset", even without a name. A token next to "Head of Sales, joined March 2019, salary 142,000" identifies someone at a small company.
  • Linkability. Masked records can be combined with other information. The ICO cites researchers who identified known users' records in the Netflix Prize dataset by comparing it with the Internet Movie Database.

Detection-based masking has a further limit: a value the detector doesn't recognise isn't masked.

What to do ​

ControlOwnerTestEvidence
Decide per column: remove, mask the whole column, or detect values within it. Mask whole columns that are always sensitive (names, account numbers) rather than relying on detection.Data ownerReview the column decisions for a sample file.Column decisions
Measure the detector. Run files with known sensitive values through it, and count what it misses, especially in free-text columns.Data protection leadA test set with a known number of values.Miss count, dated
Look for quasi-identifiers: combinations of job, date, amount, location or rare categories that single someone out.Data protection leadTry to identify three people in a masked sample using only what is left.Exercise notes
Keep token keys secret and separate from the masked data. The EDPB says lookup tables "are personal data since they allow the identification of data subjects" and must be protected.System ownerCheck who can reach the key or mapping.Access list
Don't call masked data anonymous, in documents, contracts or to users.Privacy leadReview user-facing wording.Reviewed wording
Limit who can see masked copies. They are still personal data (Retention and sharing masked copies).Data ownerList who can open or download them.Access list

How to check it ​

Take a real file, mask it, and give it to a colleague who knows the business but not the file. Ask them to name anyone they can. Every success shows a quasi-identifier to deal with.

Limits ​

  • No detector finds everything. The miss rate on your files is the number that matters, not a vendor's average.
  • Consistent tokens are deliberately linkable. That is what makes analysis possible, and also what makes re-identification easier.
  • Deleting the mapping doesn't make data anonymous. The EDPB: the data "can be considered anonymous only if the conditions for anonymity are met."

How Angel handles this ​

How Angel masks:

  • A detector service finds sensitive values and gives each column a class. Columns whose class is sensitive are masked whole; elsewhere, the values the detector finds are masked.
  • A self-serve workspace's protection profile can mask more, never less. For example, health data also masks every date and free-text column.
  • Each masked value becomes a token: the same value always gets the same token within a company, and a different one in another company.
  • Angel keeps no table mapping tokens back to values. Its token key is held outside the database.

The limits:

  • A value the detector misses, in a column not masked whole, is stored and shown as uploaded.
  • By design, Angel leaves some ledger terms readable, such as account titles, public bodies and lenders' names. Account numbers next to them are still masked.
  • Tokens are pseudonyms, not anonymisation. Amounts and dates can still single out a customer to someone who knows the business.

See Angel's security page.

Sources (checked 30 November 2026) ​