Skip to content
Sırdaş

Check the k-anonymity of a CSV or Excel file

How many rows stand alone by age, ZIP code, sex or city, and what to generalise. No value is shown and the table is never uploaded.

Sent to servers: 0 BNothing left your device

About this tool

Removing the name and the ID from a table does not make it anonymous. If only one row is “female, 34, ZIP 02139”, anyone who knows that about a person finds their row. k-anonymity measures exactly that: how many rows share each combination of those columns.

Columns are recognised by their header (age, sex, ZIP code, city, date of birth, diagnosis…) or by the shape of their values. The report gives columns and counts, never the values of a small group, and works out how much it improves if you generalise as suggested.

How it works

  1. 01

    Drop the CSV or Excel file, with a header row.

  2. 02

    Check the level, the smallest group (k) and the columns that leave most rows alone.

  3. 03

    Apply the suggestions in your spreadsheet and check again.

Questions

What k is enough?
This uses k = 5: every combination has to appear in at least five rows. It is a common threshold, not a rule; whatever regulation applies to you may ask for another.
Why doesn't it show me the unique rows?
Because the report is meant to be shared, and repeating the unique row would give it away. It says which columns isolate it and how many there are.

Worth reading first

More tools