guide · privacy
What Counts as PII in a CSV? Direct & Quasi IDs
Updated November 24, 2026 · 7 min read
direct answer
PII in a CSV includes direct identifiers such as names, emails and phone numbers, plus quasi-identifiers such as postal code, date of birth and location. NIST defines personally identifiable information as information that can identify a person alone or in combination with other information. A file does not need a name column to be identifying, and removing names does not automatically make it anonymous.
Tabular data looks tidy, but each row can be a trail of clues. This guide separates direct identifiers, quasi-identifiers and sensitive attributes, then shows how combinations change the risk.
The three buckets people mix up
A useful review starts by separating identifiers from sensitive facts. Direct identifiers point to a person on their own. Quasi-identifiers are not unique by themselves but become identifying in combination. Sensitive attributes reveal something private about a person even when they do not identify them directly. The categories overlap: a national ID is both an identifier and a sensitive fact.
| Category | Common CSV headers | Why it matters |
|---|---|---|
| Direct identifiers | full_name, email, phone, ssn, passport_number, customer_id | They identify, contact or single out a specific person. |
| Quasi-identifiers | postal_code, date_of_birth, age, gender, city, purchase_date | They narrow the population, especially when several appear in one row. |
| Sensitive attributes | diagnosis, salary, bank_account, ethnicity, disability | They expose private information even if the person's name is absent. |
| Free text | notes, comments, description, message | Personal details can appear anywhere in the text and have no fixed schema. |
Direct identifiers: the obvious columns
Names, email addresses, phone numbers and government-issued identifiers are the first things most people remove. Account and customer IDs also deserve attention: a value such as C-10482 may not reveal a name by itself, but it can join directly to a CRM, billing system or support database. Treat stable personal account IDs as identifying unless you have a specific reason not to.
IP addresses sit in a grey area. They can identify a device, household or organisation and are often treated as personal data when combined with other records. Their value depends on the context, retention period and whether the address is static or shared. A privacy review should still surface them rather than assume they are harmless technical metadata.
Quasi-identifiers: ordinary fields that combine
Quasi-identifiers are the reason a dataset can be identifying without looking identifying. A postal code may cover thousands of people. An age may cover a broad group. An exact birth date narrows the group much further. Put those fields beside gender, city and a rare purchase date, and the row may describe one person.
NISTIR 8053 describes re-identification risk in terms of linkage: an attacker or analyst does not need a name in the released file if they can connect its rows to another dataset. This is why the question is not simply “does this column look personal?” but “what can this column help someone match?”
A combination example
Imagine a CSV with no names, only postal code, exact age, gender and purchase date. In a large city that may still describe many people. In a small town, during a narrow date range, it may describe one. The same columns carry different risk in different datasets. A scanner can flag them for review, but it cannot know the population size or what outside data is available.
Sensitive attributes are not the same as identifiers
A diagnosis, salary, bank account, ethnicity or disability can be deeply sensitive without uniquely identifying anyone. Removing a name does not make those facts safe to publish. In many privacy frameworks they require stronger controls regardless of whether the row is linked to a named person. Keep the distinction clear: identifiability asks “who is this?”, while sensitivity asks “what do we now know about them?”
Does a header settle the question?
Headers are the fastest starting point. date_of_birth gives context that 12/04/1988 cannot provide alone. But headers can be vague, abbreviated or misleading. A column called value may contain email addresses; a column called description may contain names and medical notes. Review both the schema and the cells, and do not assume a clean-looking header means clean data.
Pseudonymised is not the same as anonymous
GDPR Article 4(5) describes pseudonymisation as processing personal data so that it can no longer be attributed to a person without additional information. Replacing names with [REDACTED] or a stable label is usually pseudonymisation when the original or a mapping still exists. Anonymity is a higher bar: the person must not be identifiable by means reasonably likely to be used, taking account of cost, time, available technology and other data.
That distinction matters operationally. A pseudonymised research file may still be personal data and still need access controls, a lawful basis and retention rules. Calling it “anonymous” in a ticket or README does not change the underlying risk.
A practical CSV PII review checklist
- List every header. Mark names, contact details, IDs, locations, dates and free-text fields.
- Scan fixed-format values. Look for emails, phones, cards, IBANs, IP addresses, tokens and credentials.
- Review combinations. Ask whether postal code, birth date, age, gender or rare events could single out a row.
- Sample free text manually. Automated patterns cannot understand every name, address or personal story.
- Decide what to remove. Drop fields that are not needed; redact values when the schema must remain.
- Verify the output. Re-scan it, check row counts and review the remaining columns before sharing.
check the file locally
CSV PII Checker
Load a CSV to flag likely personal-data columns and validated value patterns. Review masked findings, select columns and download a cleaned copy without uploading the file.
Open the CSV PII CheckerKeep the context with the checklist
No list of headers can classify every CSV. A customer export, a clinical trial and a public procurement ledger have different purposes, recipients and risks. Record what you removed, why you kept the remaining fields and who reviewed the result. That documentation is often more valuable than another detector rule.
Sources: NIST, personally identifiable information glossary; NISTIR 8053, De-Identification of Personal Information; GDPR Article 4(1) and 4(5), EUR-Lex; IBM, What is personally identifiable information?
faq
Frequently Asked Questions
The follow-ups that come up when a CSV has no obvious name column.
Is an email address PII in a CSV?
Yes. An email address directly identifies or contacts a specific person and is one of the most reliable PII signals in a spreadsheet. A role address such as [email protected] may identify an organisation rather than an individual, but it can still expose a person's workplace or responsibility.
Can a CSV contain PII without names?
Yes. Account IDs, phone numbers, IP addresses and rare combinations of postal code, birth date, age and location can identify someone without a name column. NIST defines PII as information that can identify an individual alone or in combination with other information.
Are dates of birth always PII?
A date of birth is personal information and becomes especially identifying when combined with a name, address or account ID. In a large, coarse dataset an age band may carry less risk than an exact date, but context and outside data still matter.
Is anonymised CSV data still personal data?
It depends on whether people remain identifiable by means reasonably likely to be used. Replacing names with labels is usually pseudonymisation, especially if a mapping still exists. True anonymisation requires assessing the whole dataset and the risk of linkage with other information.
How do I find PII in a large CSV?
Start with the headers, then scan values for supported fixed formats and review free-text columns manually. A browser-local checker can flag likely columns and show masked evidence without uploading the file, but human review is still needed for unusual identifiers and combinations.
keep reading