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.
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.
Scans as you type. Your text never leaves your browser. Up to 2 MB.
| Type | Found | Confidence | Line | Why it was flagged | Action |
|---|---|---|---|---|---|
| Nothing to show yet. | |||||
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.
Add an email, log, chat export, spreadsheet text or any file up to 2 MB.
See every email, phone, card, ID and secret with its confidence and the reason it was flagged.
Pick a redaction style, ignore false positives, then copy or download the safe version.
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.
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.
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.
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.
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.
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.
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.
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.
| Category | What it finds | How it is verified | Confidence |
|---|---|---|---|
| Contact details | Email addresses; phone numbers in US/Canada, Pakistan, India, UK and international +country-code formats | Strict address and number layouts, plus phone labels such as "Tel:" or "Mobile:" | High to medium |
| Financial | Credit and debit cards, IBANs, Bitcoin and Ethereum-style wallet addresses | Luhn check and card brand rules, ISO 13616 country lengths with mod-97, Base58Check and Bech32 checksums | High (medium for Ethereum-style) |
| IDs and identity | US Social Security numbers, Pakistan CNIC, India Aadhaar and PAN, UK National Insurance numbers, passport numbers, dates of birth | Issuing rules, Verhoeff checksum, province codes, or a nearby label such as "DOB" or "Passport No" | High to medium |
| Network and location | IPv4 and IPv6 addresses, MAC addresses, GPS coordinate pairs | Valid octets and ranges, IPv6 parsing, precise decimal coordinates | Medium to low |
| Secrets and keys | AWS, GitHub, Google, Stripe, Slack and AI API keys; JWTs; private key blocks; passwords in URLs; password, secret and token assignments; Bearer tokens | Known key prefixes and lengths, decodable JWT header, placeholder filtering | High to medium |
| Names and addresses | Capitalised names after a title such as Mr, Dr or Prof; street and house addresses | Pattern only, so results are marked low confidence | Low |
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:
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.
| Style | Example output | Best for |
|---|---|---|
| Label | Contact [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***.com | Support 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.
Explore All Tools →