MASK PII

Make a masked copy of any text before it goes into a ticket, a chat, a log excerpt, test data, or an AI prompt. Choose per category whether to keep the last four digits, replace everything, write a label such as [EMAIL], or use consistent tokens so the masked text still makes sense.

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

Loading the PII tools.

About the PII masking tool

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. Paste some text into the PII masking tool above, or open a file, and download the result.
  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.

Which Masking Styles Can You Use?

  • Partial keeps just enough to recognize the value: the last four digits of an SSN, card, account, or phone number (***-**-1234, **** **** **** 4242), the first letter and domain of an email (j*******@example.com), the year of a birth date (**/**/1985), the state and first three ZIP digits of an address, the first two parts of an IP address, and the initials of a name.
  • Full replaces every letter and digit and keeps punctuation, so the shape stays (***-**-****).
  • Label replaces the value with its category, such as [SSN] or [EMAIL].
  • Token writes a numbered placeholder, such as [EMAIL-1]. The same value always gets the same token, even when it is written differently (a phone number with or without dashes), so a masked conversation or log still shows who is who.

The mask character can be an asterisk, a capital X, or a bullet.

When Should You Use Tokens Instead of Asterisks?

Tokens are the best choice when the masked text will be read for meaning. A support thread, an incident timeline, or a prompt to an AI assistant often depends on knowing that the same customer or the same card appears several times. Asterisks hide that; tokens keep it without keeping the value.

Partial masking is best for audit evidence and tickets where an analyst may need to match a record by its last four digits. Labels are best for documentation and examples, where the category matters and the identity does not.

Is Masking the Same as De-Identification?

Not by itself. Masking hides the values the scanner finds. De-identification is a stronger claim: that nobody can reasonably re-identify the people in the data, which depends on everything left in the text, including details the scanner cannot see. HIPAA, for example, recognizes only Safe Harbor (removing 18 kinds of identifiers) and Expert Determination as de-identification methods.

Use the masker to reduce exposure in everyday sharing. For a formal de-identification, review the whole data set against the method your law or policy requires, and see the HIPAA sources in the laws directory.

How Do You Mask a Document Instead of Text?

  1. For a Word document, open the .docx here: the masker reads its text and gives you a masked plain-text copy.
  2. For a PDF or an image, or when the shared file must stay a document, use 2redact, which permanently removes the content from the file itself.
  3. For a CSV export, open it here to mask values in place: the commas and columns stay where they are, so the masked file still opens as a table.

Whichever route you take, read the result before sending it. Masking only covers what the detectors found.

What Does the Masker Not Change?

Your original text or file is never modified. The masker builds a new string in the tab's memory, and nothing is written to your disk unless you press Download. Values the scanner did not detect, such as an unlabelled name in a sentence, stay as they are, which is why the count of masked values is shown above the output.

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 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 ZIP code PII?: When a ZIP code is PII, the HIPAA three-digit ZIP rule, and the combinations that make it identifying.
  • 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.

Frequently Asked Questions

Does masking change my original file?

No. The masker makes a new copy in your browser tab. The original text or file is not modified, and nothing is saved unless you download the copy.

What does the token style do?

It replaces each value with a numbered placeholder such as [EMAIL-1], and the same value always gets the same token, so the masked text still shows which records match.

Can I mask some categories and not others?

Yes. Each category found in the text has its own on/off switch and style, so you can, for example, keep phone numbers and mask everything else.

Can it mask a PDF?

No. 2pii works on text. For PDFs and images, use 2redact, which permanently redacts the document in your browser.

Is a masked copy safe to share publicly?

Not automatically. It hides what the detectors found, but unlabelled names, free-text details, and context can still identify people. Read it first.

Was this helpful?