reference
What Is PII? And How to Redact It
Updated November 23, 2026 · 11 min read
direct answer
PII is any information that can reasonably be used to identify a natural person. That includes names, emails, phone numbers, addresses, dates of birth, ID numbers, card numbers, IP addresses, device identifiers, biometric data, and combinations of ordinary facts that add up to a person — a role, an employer and a rare complaint. To redact it, find the identifiers and replace them with consistent labels such as [EMAIL_1], then read the result once. The Text Anonymizer does the first part in your browser.
The definition in plain English, the eighteen identifiers HIPAA lists, the three words that get confused, the places personal data hides, and five ways to redact compared.
What PII actually means
PII stands for personally identifiable information. It is the common North American abbreviation, and it is the term used in industry, in security engineering and in HIPAA. The European legal term is personal data, and GDPR Article 4(1) defines it as:
“any information relating to an identified or identifiable natural person”
That is the legal wording, and it is harder to apply than it looks. The International Association of Privacy Professionals adds the plain-language version that is more useful when you are deciding what to redact: PII is any data that could reasonably be used to identify a person. Note the word reasonably. It does not mean “could identify a person if you ran a search across every database in the world”, because on that reading a favourite colour would be identifying. It means a person with access to information you would plausibly hold, in a way you would plausibly use.
Two consequences follow from that definition, and they explain most of the practical difficulty.
First, identifiers are not the only personal data. A name is personal data. So is a timestamp plus a log line, because that identifies a session. So is “the only person in the office who works nights”, because it identifies a person with no name in it anywhere. The definition is about identifiability, not about format.
Second, the definition is relative to context. A customer reference like CUST-8842 is not obviously identifying until you learn it maps to one person in your database. A postcode identifies 30,000 people on its own and one person once combined with a surname. This is why redaction is a judgement and not a lookup.
The eighteen identifiers under HIPAA Safe Harbor
The US Department of Health and Human Services gives the most concrete public definition there is, in the Safe Harbor method at 45 CFR 164.514(b)(2). An entity may de-identify protected health information by removing eighteen categories of identifier. The regulation then adds the crucial final condition: the entity must have no actual knowledge that the information remaining could be used alone to identify an individual.
| # | Identifier | What it looks like | Note |
|---|---|---|---|
| 1 | Names | Jane Doe | Includes initials and, generally, family names. |
| 2 | Geographic subdivisions smaller than a state | 221B Baker Street, Cork | State is allowed; street is not. Zip codes have their own rule: the first three digits may remain if the population under 20,000 is known to be zero. |
| 3 | Dates | 15 January 1990 | All elements except the year are removed. Ages over 89 are aggregated into a single category of 90 or older. |
| 4 | Telephone numbers | +1 (415) 555-0132 | Also covers personal and work numbers. |
| 5 | Fax numbers | +1 (415) 555-0199 | Still listed even though fax is rare. |
| 6 | Email addresses | [email protected] | The one that appears in almost every document. |
| 7 | Social Security numbers | 123-45-6789 | Along with the number, the Safe Harbor method treats the name and the number as one identifier. |
| 8 | Medical record numbers | MRN-5540192 | Any number used to identify a record of treatment. |
| 9 | Health plan beneficiary numbers | HP-7781-2290 | Including the plan code, if it identifies the plan. |
| 10 | Account numbers | ACCT-3391022 | Also covers any part that identifies the account holder. |
| 11 | Certificate or licence numbers | DL-4471-9920 | Driving licences, professional licences, serial numbers. |
| 12 | Vehicle identifiers | VIN 1HGCM82633A004352 | Including the licence plate. |
| 13 | Device identifiers and serial numbers | DSC-9931-1182 | Hardware, devices and firmware identifiers. The source of most camera serial numbers. |
| 14 | Web URLs | https://portal.example.com/patients/4421 | Often overlooked, and frequently full of identifiers in the path. |
| 15 | IP addresses | 192.168.1.24 | Identifies a household, an office or a device. |
| 16 | Biometric identifiers | fingerprint, iris, voiceprint | Including a voiceprint used as a credential. |
| 17 | Full-face photographs | a picture of a face | And any comparable image, so an ultrasound counts. |
| 18 | Any other unique identifying number, characteristic or code | a vehicle colour plus a date | The catch-all that makes the list a definition rather than a checklist. |
Read that list and notice something useful: eighteen of the categories are things a machine can recognise, because each has a shape. That is the whole reason software does a decent job on them and a poor job on the twentieth category, which is a rare combination of ordinary facts.
Anonymisation, pseudonymisation, de-identification
Three words that are constantly used as if they were interchangeable. They are not, and the difference has legal consequences.
Pseudonymisation is defined in GDPR Article 4(5): processing so that personal data can no longer be attributed to a specific subject without the use of additional information, provided that additional information is kept separately and is subject to technical and organisational measures. The critical sentence comes next: data that has undergone pseudonymisation is still personal data and remains in scope of the GDPR. Replacing “Jane Doe” with “[CUSTOM_1]” is pseudonymisation, and the data is still subject to every obligation that applied before.
Anonymisation is when the result can no longer be linked to a person by any means reasonably likely to be used. The data has left the GDPR’s scope entirely, because there is no longer a subject. That is a much stronger claim, and it is the one most tools imply when they say “anonymised”.
De-identification is the American vocabulary, and its most concrete form is HIPAA’s Safe Harbor: remove the eighteen categories, and have no actual knowledge that what remains could identify anybody. The other American route is the Expert Determination method, where a statistician assesses the risk in a specific dataset and documents the conclusion.
| Pseudonymisation | Anonymisation | De-identification | |
|---|---|---|---|
| What it means | Identifiers replaced, mapping held separately | No longer linkable to a person by any reasonably likely means | The US term, defined by Safe Harbor or Expert Determination |
| Still personal data? | Yes, explicitly, under GDPR Article 4(5) | No | Depends on the method |
| Who decides | You, under a documented process | A documented risk assessment | Safe Harbor, or an expert assessment |
| Can it be reversed? | Yes, if you keep the mapping | Not by any reasonably likely means | Safe Harbor data is not reversible by design |
| What a tool like this one produces | This is what it produces | Not something a tool can claim for you | Not something a tool can claim for you |
That last row is the honest position, and it is why no browser tool should describe its output as anonymous. This site’s Text Anonymizer produces a pseudonymisation: consistent, reversible-if-you-keep-the-map placeholders. That is genuinely useful and it is honestly labelled.
Where personal data hides when nobody is looking for it
Most of the time people think of PII as the fields on a form. That is the small part. The bigger part is everywhere else:
- File metadata. A PDF’s
/Infodictionary and XMP packet carry the author, the creator tool, the creation and modification dates and sometimes custom keys. A photo carries GPS coordinates, a camera make and model, a body serial number, a timestamp and a lens. Both are removable in the browser — see the PDF Metadata Scrubber and the Photo Metadata Remover — and both are the reason a “redacted” document can still identify its author. - File names.
jane-doe-invoice.pdfdefeats every redaction inside the document. Renaming is free and takes a second. - Screenshots. A picture of a dashboard is full of names, in pixels, where no tool can reach without OCR. The EXIF remover does not read pixels, and it says so.
- Log files. The OWASP Logging Cheat Sheet is direct about this: personal data should not be logged in the first place, and where it must be, it should be pseudonymised at the point of writing. In practice, logs carry user IDs, IP addresses, session tokens and timestamps, and they get pasted into chat windows for debugging. The Email Tracker Detector covers what the other end of a message records.
- URL query strings.
?session=abc123&[email protected]is personal data, and it survives being pasted into a chat. The Suspicious Link Checker will pull those parameters apart and show you which ones carry a name. - Error messages. Stack traces routinely carry the path of a file named after a person, a SQL fragment with an email in it, or a hostname.
- AI prompts. The one that is newest and the one people think about least. A prompt is a transmission to a third party, and it often carries a whole customer record. The guide to anonymizing text for AI prompts covers the round trip in detail.
- CSV headers and column names.
customer_ssnas a header tells you the column holds identifiers, and a column of names is data whatever the column is called. - Git history. An author name and an email address on every commit, for ever, including in commits that were supposed to be removed.
- Slack and email signatures. A signature block is personal data that gets pasted into every message body you copy.
Five ways to redact, compared
There are five practical approaches, and they are not competing for the same job.
| Method | Accuracy | Privacy | Speed | Setup | Best for |
|---|---|---|---|---|---|
| Regular expressions | High on fixed formats, zero on everything else | Excellent — nothing leaves the machine | Instant | None | Emails, phones, cards, IDs, keys, IPs. The backbone of every other method. |
| Keyword or watch list | Perfect on what you list, blind to the rest | Excellent | Instant | You have to type the list | Names, codenames, clients, projects — the things a pattern can never guess. |
| On-device machine learning | Good on names, organisations and places in many languages | Good, but the model download is 30–200 MB | Seconds of warm-up, then fast | A large download, and a WebAssembly runtime | Free-text documents full of names, where a list would be hopeless. |
| Cloud DLP and detection APIs | The best coverage available, with the best models | Poor by construction — your text goes to a vendor | Network round trip | An account, an API key, a budget | Compliance pipelines where the vendor contract is the point. |
| Doing it by hand | Perfect, if you are careful | Perfect | Slow | None | Final review of a short document, and context that no tool can judge. |
The table gives the argument for this site’s approach in one line: regular expressions plus a keyword list cover most of the structured risk, cost nothing, and send nothing anywhere. The machine-learning and cloud approaches add coverage on unstructured names, and both charge for that coverage in bandwidth, in money or in trust. Which one you need depends entirely on what you are redacting and who is allowed to see it.
A seven-step redaction checklist
- Decide what the output is for. A summary for an assistant, a ticket for a colleague, a dataset for a publication. The risk, and how much you must strip, follow from this and nothing else.
- Remove what is not in the text. File names, folder names, the document title, the author field, the EXIF block. A clean document with a revealing file name is a dirty document.
- Run the automatic detectors. These get the structured identifiers: emails, phones, cards, IDs, IBANs, IPs, URLs, tokens and keys.
- Add the names by hand. People, employers, clients, projects, product codenames, anything with meaning inside your organisation. This is the step that no automation replaces, and it is where most real leakage happens.
- Read the output once, as prose. Ask whether a sentence identifies somebody without naming them. Rewrite it if it does.
- Decide whether it needs to be reversible. If you will need the real values back, keep the mapping somewhere safe and outside the document. If you do not, prefer a hashed token, which cannot be reversed at all.
- Record what you did. Which detectors ran, what you added by hand, who reviewed it and when. For anything regulated, this is the documented process that turns a scrub into compliance.
What redaction does not do
It does not remove context. It does not remove confidentiality — a contract with no personal data in it is still a contract. It does not reach pixels, so text inside an image needs OCR and then needs redacting again. It does not fix a badly designed system that puts the person’s name in the thing you are sharing. And it does not certify anything: the Safe Harbor list, the Expert Determination assessment and the GDPR risk assessment are all documents you produce, not outputs you receive from a tool.
Related reading
- The Text Anonymizer — free, zero uploads, no model download, works offline
- How to Use the Text Anonymizer (Step by Step)
- How to Anonymize Text Before You Paste It Into AI
- CSV PII Checker — scan and redact likely personal data in a CSV locally
- What Counts as PII in a CSV? Direct and Quasi-Identifiers
- How to Remove PII From a CSV Without Uploading It
- Privacy Policy Requirements: the 12-point GDPR checklist
- Privacy Policy Audit Checklist: 27 checks in 10 minutes
- PDF Metadata Scrubber — the identifiers in a file’s properties
- How to Remove Metadata from a PDF
- Photo Metadata Remover — GPS, camera serial, timestamps
- How to Remove EXIF Data from Photos
- What Is EXIF Data? What Your Photos Reveal
- Email Tracker Detector
- Suspicious Link Checker — the identifiers hiding in a URL
- All privacy tools
Sources: GDPR Article 4(1) on personal data, Article 4(5) on pseudonymisation, and Article 32 on the security of processing (EUR-Lex); the European Data Protection Board, Guidelines 01/2015 on Pseudonymisation, 21 January 2016; HIPAA 45 CFR §164.514(b)(1)–(2), the Safe Harbor method and its eighteen identifier categories (eCFR); NIST Special Publication 800-188, De-Identifying Government Data Sets; the IAPP definition of personally identifiable information; OWASP, Logging Cheat Sheet, on personal data leaking into logs; ISO 7064 MOD 97-2 for IBAN check digits and the ANSI C.4 Luhn algorithm for card validation.
faq
Frequently Asked Questions
The definition, the eighteen identifiers, the three words that get confused, and what no tool covers.
What does PII stand for?
Personally Identifiable Information. It is the common North American abbreviation. The European legal term is personal data, which GDPR Article 4(1) defines as any information relating to an identified or identifiable natural person. The IAPP’s definition adds the plain-language idea of any data that could reasonably be used to identify a person, and that plain-language version is usually the more useful one when you are deciding what to redact.
What are the 18 HIPAA Safe Harbor identifiers?
Names; geographic subdivisions smaller than a state; all elements of dates except the year, and ages over 89; telephone numbers; fax numbers; email addresses; Social Security numbers; medical record numbers; health plan beneficiary numbers; account numbers; certificate or licence numbers; vehicle identifiers and serial numbers; device identifiers and serial numbers; web URLs; IP addresses; biometric identifiers; full-face photographs; and any other unique identifying number, characteristic or code. The regulation also says the covered entity has no actual knowledge that the remaining information could be used alone to identify an individual.
What is the difference between anonymisation and pseudonymisation?
GDPR Article 4(5) defines pseudonymisation as replacing identifiers with others, provided the mapping can be kept separately and is subject to technical and organisational measures. The same article says data that has undergone pseudonymisation is still personal data and still in scope. Anonymisation means the result can no longer be linked back to a person by any means reasonably likely to be used. So replacing a name with a code is pseudonymisation, and it keeps the data in scope. That distinction is the whole point, and it is the one most redaction tools blur.
Is a company name personal information?
On its own, usually not, because a company is not a natural person. But an employee or a client name is personal data, and the combination of a company with a role and a detail is often identifying in practice. Treat a company name as sensitive when it appears next to a person, because that is what narrows the person down.
What about IP addresses and URLs?
Both are on HIPAA’s list of eighteen identifiers, and both are routinely treated as personal data in practice. An IP address can identify a household or an office, and a URL can carry a session token, a user id, a search query or a path with a name in it. They are not as obviously identifying as a name, which is exactly why they get left behind.
Is my email address personal information?
Yes. It is on HIPAA’s list, it identifies a natural person in most cases, and it is one of the two identifiers you will find in almost every document: the email address and the phone number. A work email address also reveals your employer, which is a second piece of personal data in the same string.
Does removing metadata remove personal data?
No. Metadata is one place personal data hides, and stripping it is worth doing, but a file also carries personal data in its page text, its caption, its file name and its version history. Scrub the metadata, then read the text. The PDF Metadata Scrubber and the Photo Metadata Remover on this site handle the first part; the Text Anonymizer handles the second.
What does a redaction tool not cover?
Context. A sentence like the only customer in Cork who bought a red doorbell in March identifies a person with no personal data in it at all. Also text inside images and scanned documents, and anything you did not think to include. No tool covers context, and no tool covers the part of the document you forgot was there. Read the output once.