Data Anonymizer for CSV

Load a CSV, let the tool detect emails, phones, names, identifiers, dates and postcodes, choose a method for each column, check k-anonymity on quasi-identifiers and download a safer file, without uploading anything.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Load the CSV

    Any delimiter.

  2. 2
    Review detected columns

    Change methods.

  3. 3
    Set N and the salt

    Keep the salt secret.

  4. 4
    Mark quasi-identifiers

    And target k.

  5. 5
    Anonymise

    Check k and groups.

  6. 6
    Download the safer CSV

    Check free text.

About this tool

Analysts, developers and researchers often need realistic data that does not expose real people: to share with a contractor, load into a test system or publish. Deleting the name column is not enough; in a famous study, birth date, sex and ZIP code alone identified about 87 % of Americans. This tool processes CSV files entirely in your browser. It detects columns that look like personal data, suggests a method for each, from masking and salted hashing to consistent fake names and generalising ages into ranges, and then measures k-anonymity: the size of the smallest group of rows that share the same quasi-identifiers. Small groups can be removed before you download.

Who this is for

Data analysts, software testers, researchers, HR and customer teams sharing extracts, and anyone who must send data outside the organisation.

Methods per column

- **Keep** or **Remove column**. - **Replace with [removed]** for addresses and free text. - **Mask:** keep only the last N characters, such as ********78 for a phone. - **Hash:** salted SHA-256, truncated; the same value always gives the same hash, so records can still be joined. - **Consistent fake value:** a realistic fake name, email or phone derived from the salt, the same each time. - **Generalise:** numbers into ranges (37 → 30-39), dates to year or year-month, codes to a prefix (SW1A 1AA → SW1…). - **Noise:** change numbers by up to N percent.

k-anonymity

Mark the columns an outsider could know or look up, such as age, postcode, gender or job title, as quasi-identifiers. A dataset is k-anonymous when every combination of them appears at least k times. The tool shows k, the number of groups and how many rows sit in groups smaller than your target, and can remove those rows. Generalise more, for example wider age bands or shorter postcodes, to raise k without losing rows.

Pseudonymised or anonymous?

Under GDPR, data that can be re-identified with extra information, such as the salt, is pseudonymised and still personal data. Truly anonymous data needs aggregation or generalisation strong enough that no one can be singled out. Keep the salt secret or discard it.

Test data tip

Use the same salt for related files so customer IDs still match across tables.

Common mistakes

- Hashing small value sets, such as phone numbers, without a secret salt: they can be reversed by brute force. - Forgetting free-text columns, which often contain names and contact details. - Ignoring combinations of harmless-looking columns.

Limits

k-anonymity does not protect against every attack (for example, everyone in a group sharing the same sensitive value). Get advice for high-risk data. This is not legal advice.

Worked example

12,000 customer rows: names and emails faked, phones masked, ages in 10-year bands, postcodes to 3 characters; k rises from 1 to 7 after removing 94 rows.

Quick facts

Frequently asked questions

Is my CSV uploaded?

No. It is processed in your browser and downloaded back to you.

What is k-anonymity?

Every combination of quasi-identifiers appears at least k times in the data.

Is hashed data anonymous?

Usually not; with the salt or a small value set it can be re-identified.

What is a quasi-identifier?

A column such as age or postcode that helps identify someone when combined.

Do fake values stay consistent?

Yes, with the same salt the same input gives the same fake value.

Is my data stored?

Nothing is stored or sent; it stays in this tab until you close it.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages