Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

PII Detector

Paste any text, log or file and instantly find personal data: emails, phone numbers, credit cards, ID numbers, IP addresses and leaked API keys. Redact it with one click. Everything runs in your browser.

  • 100% free
  • No Signup
  • Nothing uploaded

Scans as you type. Your text never leaves your browser. Up to 2 MB.

Exposure level Nothing found Paste some text to scan it.
Items found 0 No personal data detected yet.

Findings

TypeFoundConfidenceLineWhy it was flaggedAction
Nothing to show yet.

Redacted text

Tip: click a highlighted item, or the Ignore button, to remove a false positive from the redacted text. The CSV report only contains masked values.

ADVERTISEMENT
Demo Ad 728 x 90

How to find personal data in text

1Paste or upload

Add an email, log, chat export, spreadsheet text or any file up to 2 MB.

2Review the findings

See every email, phone, card, ID and secret with its confidence and the reason it was flagged.

3Redact and copy

Pick a redaction style, ignore false positives, then copy or download the safe version.

PII DETECTION GUIDE

PII Detector – Find and Redact Personal Data, Emails, Phone Numbers, Credit Cards and API Keys Online

Our free online PII detector scans any text, log file or document for personally identifiable information (PII) in seconds. Paste your content or upload a file and the tool finds email addresses, phone numbers, credit card numbers, IBANs, Social Security numbers, Pakistan CNIC numbers, Aadhaar and PAN numbers, passport numbers, dates of birth, IP and MAC addresses, GPS coordinates, crypto wallets, passwords and leaked API keys. Each result shows a confidence level and the exact reason it was flagged, and one click turns the text into a safe, redacted copy. Because the whole PII scanner runs inside your browser, nothing you paste is uploaded, stored or sent to a third-party API. That makes it a practical way to check a support ticket before you share it, clean a server log before you attach it to a bug report, anonymize a dataset sample, or make sure no secret key is hiding in a prompt you are about to send to an AI assistant.

Detect PII in Text

Scan emails, chat exports, logs, JSON, CSV and code for 29 kinds of sensitive data across contact details, financial data, government IDs, network identifiers and secrets. Results update live as you type.

Checksum-Verified Results

Card numbers must pass the Luhn check, IBANs the mod-97 check, Aadhaar the Verhoeff check and Bitcoin addresses their checksum. That keeps random digits from being reported as sensitive data.

Redact Sensitive Data

Replace what was found with labels, numbered placeholders, partial masks or solid blocks. Download the redacted text and a masked CSV report, or ignore a false positive with one click.

How to Detect PII in Text Online

You do not need a data loss prevention suite or a script to find personal data in a piece of text. Follow these steps to run a quick personal information scan.

  1. Add your content: Paste text into the box, or use Upload file for .txt, .csv, .json, .log, .md, .xml, .yml, .env and similar text files up to 2 MB. Try Load sample to see every detector in action with fake data.
  2. Choose what to look for: Keep all six categories on, or turn off groups you do not need. Open Choose individual types to switch single detectors such as IP addresses or names on or off.
  3. Set the confidence level: Use All to see everything, Medium+ to hide weak guesses, or High only to keep just the items that passed a checksum or a strict format check.
  4. Review each finding: The findings table lists the type, the value, the confidence, the line number and the reason. Switch to the Highlighted tab to see the matches in place.
  5. Redact and export: Pick Label, Numbered, Mask or Block, ignore any false positive, then copy the redacted text or download it as a .txt file. The CSV report lists masked values only.

The scan is repeated every time the text, the selected types or the confidence level changes, so you can fine-tune the result and watch the redacted output update immediately.

What Is PII (Personally Identifiable Information)?

Personally identifiable information is any data that can be used to identify a specific person, either on its own or when combined with other details. Direct identifiers point to one person straight away: a full name, a national ID number, a passport number, an email address, a phone number or a face photo. Indirect identifiers, sometimes called quasi-identifiers, only identify someone when they are combined, for example a date of birth plus a postcode plus a job title. A good PII detection tool focuses on the identifiers that follow a recognizable pattern, because those are the ones a program can find reliably.

The terms used by different laws are not identical. In the United States, "PII" is the common phrase in security guidance, while the California Consumer Privacy Act uses "personal information". The EU General Data Protection Regulation (GDPR) uses the broader term "personal data", which covers any information relating to an identified or identifiable person, including online identifiers such as an IP address. Health rules such as HIPAA talk about protected health information (PHI) and list 18 identifiers, among them names, dates, phone numbers, email addresses, Social Security numbers, account numbers and IP addresses. A PII finder is useful for all of these, even though the legal definition you need to follow depends on your country and your industry.

Types of Sensitive Data This PII Scanner Finds

The detector groups its checks into six categories. The table shows what each detector looks for and how the result is verified, so you know how far to trust a finding.

CategoryWhat it findsHow it is verifiedConfidence
Contact detailsEmail addresses; phone numbers in US/Canada, Pakistan, India, UK and international +country-code formatsStrict address and number layouts, plus phone labels such as "Tel:" or "Mobile:"High to medium
FinancialCredit and debit cards, IBANs, Bitcoin and Ethereum-style wallet addressesLuhn check and card brand rules, ISO 13616 country lengths with mod-97, Base58Check and Bech32 checksumsHigh (medium for Ethereum-style)
IDs and identityUS Social Security numbers, Pakistan CNIC, India Aadhaar and PAN, UK National Insurance numbers, passport numbers, dates of birthIssuing rules, Verhoeff checksum, province codes, or a nearby label such as "DOB" or "Passport No"High to medium
Network and locationIPv4 and IPv6 addresses, MAC addresses, GPS coordinate pairsValid octets and ranges, IPv6 parsing, precise decimal coordinatesMedium to low
Secrets and keysAWS, GitHub, Google, Stripe, Slack and AI API keys; JWTs; private key blocks; passwords in URLs; password, secret and token assignments; Bearer tokensKnown key prefixes and lengths, decodable JWT header, placeholder filteringHigh to medium
Names and addressesCapitalised names after a title such as Mr, Dr or Prof; street and house addressesPattern only, so results are marked low confidenceLow

How PII Detection Works: Patterns, Checksums and Context

Simple regex-based PII scanners flag every long number as a credit card and every string with an at-sign as an email. This tool goes a step further by combining three techniques. First, a pattern describes what the data looks like, such as five digits, a hyphen, seven digits, a hyphen and one digit for a Pakistan CNIC. Second, a validation step checks the rules hidden inside the number: the Luhn algorithm, invented by IBM engineer Hans Peter Luhn, catches mistyped or invented card numbers; the mod-97 test from ISO 7064 validates every IBAN; the Verhoeff algorithm, used for the last digit of an Aadhaar number, catches common transcription errors; and Bitcoin addresses carry a built-in checksum. Third, context helps with identifiers that have no checksum. A nine-digit number next to the words "Social Security number" is far more likely to be an SSN than the same digits in a tracking code, so the confidence is raised when a label such as SSN, CNIC, Aadhaar, DOB, passport or phone sits right before the value.

The result is an honest confidence score on every finding:

  • High: A checksum passed or a strict, unusual format matched, for example a Luhn-valid Visa number, a valid IBAN, an AWS access key beginning with AKIA, or an email address.
  • Medium: The layout matches but nothing could be verified, such as a Social Security number layout without a label, a public IP address or a password assignment.
  • Low: The text only resembles personal data, such as a private IP address, a street address or a name after a title. Review these by eye.

Redaction Styles: Label, Numbered, Mask and Block

Finding personal data is only half of the job. The other half is replacing it in a way that still lets the text be used. The PII redaction tool offers four styles, and the best choice depends on where the redacted text is going.

StyleExample outputBest for
LabelContact [EMAIL] or [PHONE]Sharing text with colleagues, vendors, forums or AI assistants while keeping it readable
Numbered[EMAIL_1] wrote to [EMAIL_2]Conversations and logs where you still need to tell which person or value is which
Mask**** **** **** 1111, a***@e***.comSupport screens and reports where the last four digits help staff confirm an item
Block████████Documents where even the length or format of the value should not be visible

Keep in mind that numbered placeholders are pseudonymization, not anonymization. The same value always receives the same number, which keeps the text analyzable but means a determined reader could still link the entries together. Under the GDPR, pseudonymized data is still considered personal data, so use Label or Block when you want the strongest removal. The Mask style keeps only the last four characters, which is in line with the common payment-card display rule of showing no more than the first six and last four digits.

Why You Should Remove PII Before Sharing Text

Personal data ends up in places it should not be far more often than people expect. A customer pastes a card number into a chat window, a developer copies a stack trace that contains a user email, or a spreadsheet export is attached to a public bug report. Running a quick PII check before you send, post or upload anything is a low-effort habit that prevents most of these incidents.

  • AI chatbots and prompts: Text sent to an online AI assistant leaves your device. Redact names, emails, ID numbers and keys first, and your prompt keeps its meaning without exposing anyone.
  • Support tickets and emails: Customer messages often contain phone numbers, addresses and card details. Redact them before forwarding a ticket to another team or an outside vendor.
  • Server logs and error reports: Logs regularly capture IP addresses, session tokens, email addresses and URLs with passwords. Clean them before pasting into GitHub issues, Stack Overflow questions or a support request.
  • Datasets and test data: Before you share a CSV or JSON sample with a contractor or use production data in a test environment, check that it does not include real people.
  • Source code and config files: A .env file or a connection string can contain live credentials. Scan code snippets for API keys, tokens and passwords before you commit or publish them.
  • Documents, contracts and CVs: Anonymize resumes, contracts and case notes for training, research or review when the names and ID numbers are not needed.

PII, GDPR, HIPAA, CCPA and PCI DSS

Handling personal data carefully is a legal duty in many places. The GDPR applies to organizations that process the personal data of people in the European Union and allows fines of up to 20 million euros or 4 percent of global annual turnover for the most serious breaches. It also requires most personal data breaches to be reported to the supervisory authority within 72 hours. The California Consumer Privacy Act, as amended by the CPRA, gives California residents rights over the personal information businesses collect, and similar laws now exist in many US states. HIPAA protects health information in the United States and sets a de-identification standard that removes 18 types of identifiers, including names, dates, phone numbers, email addresses, Social Security numbers and IP addresses. The Payment Card Industry Data Security Standard (PCI DSS) requires card numbers to be protected wherever they are stored and displayed. India's Digital Personal Data Protection Act, 2023 and data protection rules in other countries add further obligations.

A PII detector helps with data minimization, which is the idea behind all of these rules: only keep and share the personal data you actually need. It is a practical aid, not a compliance guarantee, and nothing on this page is legal advice. If you work with regulated data, follow your organization's policies and speak to your privacy or legal team.

Found an API Key or Password? What to Do Next

If the scanner flags an AWS key, a GitHub token, a Stripe secret key, a private key block or a password inside a URL, treat it as exposed the moment it was pasted anywhere outside a secret manager. Deleting the text is not enough, because the value may already be in a chat history, a git commit, a log or a backup.

  1. Revoke and rotate: Disable the key in the provider's dashboard and create a new one. This is the only step that really closes the exposure.
  2. Check for misuse: Review the provider's access logs and billing for activity you do not recognize.
  3. Remove it from the source: Delete the secret from the code or document, and clean git history if it was committed. Remember that forks and clones keep their own copy.
  4. Move secrets out of code: Use environment variables or a secrets manager, and add .env files to .gitignore.
  5. Add automated scanning: Use secret scanning in your repository host or a pre-commit hook so the next leak is caught before it is published.

Note that a Stripe publishable key (pk_) and a JWT payload are meant to be readable by the client, so a finding of that kind is not always an emergency. A Stripe secret key (sk_live_), a private key or a database password always is.

Identity Number Formats Explained: CNIC, SSN, Aadhaar, PAN and NINO

Government ID numbers follow fixed layouts, which is what makes them detectable. A Pakistan CNIC has 13 digits written as 12345-1234567-1, where the first digit of the first block is a province or region code and the last digit shows gender, odd for male and even for female. A US Social Security number is nine digits in the form 123-45-6789 and, under the issuing rules, never starts with 000, 666 or 9, never has 00 in the middle and never ends in 0000. An Indian Aadhaar number has 12 digits, usually shown in three groups of four, starting with a digit from 2 to 9, and its last digit is a Verhoeff check digit. An Indian PAN has ten characters in the pattern AAAAA9999A, where the fourth letter shows the type of holder, for example P for an individual. A UK National Insurance number is two letters, six digits and a final letter from A to D, and it does not use certain letter combinations.

Because only some of these formats include a checksum, the tool marks a matching layout as medium confidence and raises it to high when a clear label such as "SSN" or "Aadhaar" appears next to it, or when a checksum passes.

Best Practices for Handling Personal Data

  • Collect less: The safest personal data is the data you never stored. Remove columns and fields you do not need.
  • Redact at the source: Clean text before it is copied into tickets, chats, wikis and AI tools, not after it has spread.
  • Review the result: Automatic detection finds patterns, not meaning. Read the redacted output once before you share it.
  • Use the right style: Choose Label or Block for outside sharing and Numbered when you still need to follow who is who.
  • Test with fake data: Use the sample text, or invented values, when you build or demonstrate a workflow.
  • Rotate leaked secrets: Replacing a key is always safer than hoping nobody saw it.
  • Redact files properly: A black box drawn over text in a PDF or image does not always remove the text underneath. Redact the text itself, then export a fresh file.

Limits of Automatic PII Detection

No pattern-based scanner finds everything, and this one does not claim to. It does not recognize free-text names, nicknames, employers, medical details, home addresses written in an unusual way, or information in images and scanned documents, because that needs machine learning and a different kind of tool. It can also flag a harmless value, for example a test card number, a product code that happens to match a format, or a version number that looks like an IP address. Use the confidence level, the reason shown for each finding and the Ignore button to deal with those cases. Finally, remember that the redacted text is only as good as the review you give it: always read through the output before it goes anywhere public.

Popular Searches Related to PII Detection

  • PII detector online
  • free PII scanner
  • detect PII in text
  • personally identifiable information finder
  • find personal data in text
  • sensitive data scanner
  • redact personal information online
  • PII redaction tool
  • text anonymizer
  • data masking tool
  • remove PII from text
  • de-identify text
  • email address finder in text
  • phone number detector
  • credit card number detector
  • Luhn algorithm checker
  • IBAN validator
  • SSN detector
  • CNIC number checker
  • Aadhaar number validator
  • API key leak detector
  • secret scanner online
  • find passwords in text
  • JWT token detector
  • log file sanitizer
  • GDPR PII checker
  • HIPAA identifiers checker
  • PCI DSS card data finder
  • data loss prevention tool
  • redact before sending to ChatGPT
  • sensitive data discovery
  • privacy tool no upload

Free PII Detector Online

This free PII detector makes it easy to find and redact personal data before you share it. Paste your text, check the confidence-rated findings, choose a redaction style and copy a clean version, all without signup and without your text leaving the browser. Use it as a quick first check for emails, logs, tickets, datasets and code, and combine it with your organization's privacy policies for anything regulated or high-risk.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About the PII Detector

Find answers to common questions about what counts as PII, how the detector works, what it can and cannot find, and how to redact data safely.

What is PII and what counts as personally identifiable information?

PII is any information that can identify a specific person, on its own or combined with other data. Common examples are a name, email address, phone number, home address, national ID or Social Security number, passport number, date of birth, bank or card number and IP address. Laws such as the GDPR, CCPA and HIPAA use slightly different terms and lists, so check the definition that applies to you.

How does this PII detector find personal data?

It combines pattern matching with validation. A pattern finds text that looks like an email, card number or ID, and then a check confirms it: the Luhn test for cards, mod-97 for IBANs, the Verhoeff checksum for Aadhaar, issuing rules for Social Security numbers and known prefixes for API keys. Nearby labels such as "DOB" or "Passport No" raise the confidence, and every result shows its reason.

Is it safe to paste sensitive text into this tool?

The scan runs entirely in your browser with JavaScript, so the text you paste is not sent to our servers or to any third-party API. Even so, it is good practice to avoid shared or untrusted computers and to review the redacted output before you use it. If you only want to try the tool, click Load sample, which contains invented data.

Does the PII detector find names and addresses?

Only in a limited way. It flags capitalised names that follow a title such as Mr, Mrs, Dr or Prof, and street or house addresses with a recognizable layout, and it marks both as low confidence. Finding ordinary names in free text needs machine learning and still produces errors, so this tool focuses on identifiers with a clear format and checksum. Review names and addresses manually.

Why was a number flagged as a credit card, or why was mine not detected?

A number is reported as a card only when it has 13 to 19 digits and passes the Luhn checksum, which also means well-known test numbers such as 4111 1111 1111 1111 are flagged. A number that fails the checksum, for example because of a typo, is ignored on purpose to avoid false alarms. If a real card is not flagged, check for a missing digit, and use the Ignore button if a harmless number is flagged.

Which redaction style should I use: label, numbered, mask or block?

Use Label, such as [EMAIL], for most sharing because it keeps the text readable. Choose Numbered, such as [EMAIL_1], when you must tell values apart in a conversation or log, remembering that it is pseudonymization and not full anonymization. Mask keeps the last four characters, which suits support screens and reports, and Block hides both the value and its format.

Is using this tool enough to comply with GDPR, HIPAA or PCI DSS?

No. It is a convenient helper for spotting and removing common identifiers, but it cannot find every kind of personal data, and compliance depends on your policies, contracts and processes as a whole. Treat the result as a first check, review it yourself, and speak to your privacy or legal team for regulated data. Nothing here is legal advice.

ADVERTISEMENT
Demo Ad 320 x 50

All Tools, One Place

Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.

Explore All Tools →