IS A ZIP CODE PII?

On its own, a ZIP code is usually not enough to identify anyone: most ZIP codes cover thousands of people. It is a quasi-identifier, though, and in combination with a birth date and sex it singles most people out. Inside a person's record it is part of their PII, and HIPAA restricts it to three digits, and only for populous areas, in de-identified health data.

Zero retention: your data never leaves this browser. Verify it yourself in DevTools.

Loading the PII tools.

About this guide

Is a ZIP Code PII Under NIST?

NIST SP 800-122 treats information that is linked or linkable to an individual as PII. A ZIP code in a customer record is linked; a ZIP code in an anonymous survey is linkable if it can be combined with other fields. In the 2pii tier scale, a ZIP code alone is Tier 1, a quasi-identifier. It rises to Tier 2 when the record also holds a birth date and sex.

Why Do ZIP Codes Matter in Combination?

Research by Latanya Sweeney (2000) estimated that about 87% of the US population is likely uniquely identified by five-digit ZIP code, sex, and date of birth. A ZIP code also narrows things on its own in rural areas, where a single ZIP code may cover a small number of households, and with rare attributes such as an unusual job title.

  • Five-digit ZIP plus birth date plus sex: usually identifying.
  • Five-digit ZIP plus a rare attribute: often identifying in small areas.
  • Three-digit ZIP or state alone: low risk in populous areas.

What Is the HIPAA Three-Digit ZIP Rule?

Under the HIPAA Safe Harbor de-identification method, all geographic subdivisions smaller than a state must be removed, including street address, city, county, and ZIP code. The exception is the first three digits of a ZIP code, which may be kept if the geographic area formed by all ZIP codes sharing those three digits has more than 20,000 people. If it has 20,000 or fewer, the three digits must be changed to 000. See HIPAA sources.

How Do GDPR and CCPA Treat ZIP Codes?

  • GDPR: a postal code in a record about an identifiable person is personal data, as is any location information relating to them. See GDPR sources.
  • CCPA/CPRA: postal address is among the listed identifiers, and information that could reasonably be linked with a consumer or household is personal information. Precise geolocation is sensitive personal information; a ZIP code is far less precise. See CCPA sources.
  • State breach laws: a ZIP code alone does not trigger notification. See breach sources.

How Should You Mask a ZIP Code?

  1. Remove ZIP codes the recipient does not need.
  2. Truncate to three digits for regional analysis, and suppress small areas.
  3. Avoid sharing five-digit ZIP codes together with full birth dates and sex.
  4. Check aggregate tables for small cells, such as a count of one person in a ZIP code.

The PII scanner finds ZIP codes as part of a street address, such as "123 Main Street, Springfield, IL 62701", not as standalone five-digit numbers, because most five-digit numbers in text are not ZIP codes. The masking tool's partial style for addresses keeps the state and the first three ZIP digits, in line with the HIPAA approach. For related fields, see is date of birth PII?

Is This Legal Advice?

What Else Is on 2pii?

  • PII scanner: Paste text or open a TXT, CSV, JSON, or Word file and see every SSN, card, email, phone, birth date, address, and labelled name.
  • PII masking tool: Make a masked copy of text: keep the last four digits, replace with labels, or use consistent tokens, per category.
  • PII tier and impact classifier: Pick the data elements and quantity to get a Tier 0-3 rating, an estimated NIST SP 800-122 impact level, and the laws that may apply.
  • What is PII?: The NIST, GDPR, CCPA, and HIPAA definitions side by side, and what "linked" and "linkable" mean.
  • PII examples list: A practitioner list of PII examples sorted into direct identifiers, quasi-identifiers, and sensitive data.
  • PII sensitivity tiers: Public, Internal, Confidential, and Restricted labels mapped to Tier 0-3 and NIST impact levels, with handling rules.
  • PII do's and don'ts: Practical rules for handling PII in email, tickets, logs, test data, spreadsheets, and AI tools.
  • PII laws and regulators: Primary-source links for GLBA, HIPAA, COPPA, FERPA, NY SHIELD, CCPA/CPRA, the state privacy laws, and GDPR, each dated.
  • Is an IP address PII?: When an IP address is personal information under NIST, GDPR, CCPA, and HIPAA, and how to handle it in logs.
  • Is an email address PII?: Why a personal email address is direct PII, how work and role addresses differ, and what that means for logs and lists.
  • Is date of birth PII?: Why a birth date alone is linkable PII, why it becomes identifying with ZIP and sex, and how to mask it.
  • Is a name PII?: Why a full name is PII, when a name alone is low risk, and how context turns a list of names into sensitive data.

Everything is on the 2pii home page. Part of the 2suite.io privacy-first ecosystem.

How Can You Verify That Your Data Never Leaves This Browser?

You do not have to take our word for it. Browser developer tools list every request a page makes, so you can watch 2pii work and confirm that your text is never sent anywhere. The check takes about a minute.

  1. Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
  2. Reload the page and let it finish. You will see the page's own files, its web fonts, and one anonymous page-view request. No text has been opened yet, so none of them can contain your data.
  3. Click the clear icon in the Network tab so that the log is empty.
  4. Open the PII scanner, paste some text or open a file, and download the report.
  5. Look at the Network tab again. It is still empty. Scanning, masking, classifying, and saving made no request at all. The tools also show a live counter, read from your browser's own Resource Timing records, of the requests made since your text was opened. For extra proof, turn on offline mode after the page loads: every tool keeps working.

Text you paste or open is held in this tab's memory, checked by code that is already on the page, and handed back to you as a copy or a download. It is never uploaded, never stored in the browser, and gone when you close the tab. The only other request the site can make is the feedback form, and only when you submit it.

The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint, so even a bug could not send your data elsewhere.

Frequently Asked Questions

Is a ZIP code alone PII?

A ZIP code alone usually does not identify a person, so it is generally treated as a quasi-identifier rather than PII on its own. In a record about a person, it is part of their PII.

Can I keep ZIP codes in HIPAA de-identified data?

Under Safe Harbor you may keep only the first three digits, and only if the area formed by those three digits has more than 20,000 people. Otherwise they must be replaced with 000.

Why is ZIP code plus birth date risky?

Together with sex, five-digit ZIP code and date of birth are estimated to uniquely identify about 87% of the US population, so the combination is directly identifying.

Does the 2pii scanner find standalone ZIP codes?

No. It finds ZIP codes as part of a street address, because standalone five-digit numbers are usually something else, such as order or product numbers.

Was this helpful?