PII Redactor for Emails, Phones and IDs
Find and hide personal data such as email addresses, phone numbers, bank accounts, card numbers and national ID numbers, with checksum checks that reduce false alarms.
Automatically find and hide emails, phone numbers, card numbers, IDs, IP addresses, passwords and API keys in your text before you share it or paste it into an AI chatbot. Everything runs in your browser.
Paste text to begin.
Choose Numbered placeholders as the style, redact your text, paste it into your AI tool, then paste the AI's reply here. Placeholders such as [EMAIL_1] are swapped back to your original values on your device.
Add an email, log, ticket, document or chat. You can also open a text file.
Pick the data types and the replacement style. Add names to hide in the list.
Check the highlighted items, then copy or download the redacted text.
Need to share a document, a log file or a support ticket without exposing personal data? This free sensitive text redactor scans your text and automatically finds email addresses, phone numbers, credit and debit card numbers, IBAN bank accounts, national ID numbers, IP addresses, passwords, API keys and access tokens, then hides them in one click. It is a fast, online PII redaction tool for removing personally identifiable information from text before you email it, post it in a forum, send it to a customer support agent, hand it to a contractor or paste it into an AI chatbot such as ChatGPT, Claude or Gemini. You can replace each item with a clear label, a numbered placeholder, a partial mask, black blocks or nothing at all, and you can even restore the original values later in an AI reply. Everything happens inside your browser, so your text is never uploaded to a server, never logged and never stored. There is no signup, no installation and no limit on how many texts you can redact.
Find and hide personal data such as email addresses, phone numbers, bank accounts, card numbers and national ID numbers, with checksum checks that reduce false alarms.
Use numbered placeholders so an AI tool can still understand your text, then restore the real values in the AI's reply without sending them anywhere.
Hide API keys, access tokens, JWTs, passwords, private key blocks and IP addresses before you share logs, configs or error messages with a support team or a public forum.
Redacting text with this tool takes less than a minute, and you do not need to write any patterns yourself. Follow these steps for a safe result.
Redaction means removing or hiding sensitive parts of a document so that the rest can be shared safely. A text redactor does this for plain text. PII stands for personally identifiable information, which is any data that can identify a person on its own or when combined with other data. Typical examples are a full name, an email address, a phone number, a home address, a national ID number, a bank account or card number, an IP address, a date of birth and online account identifiers.
Not all sensitive data is personal. Passwords, API keys, access tokens, private keys and internal addresses are secrets that can give an attacker access to systems. A good redaction tool covers both groups, because both cause damage when they leak by accident. Pasting a log file with a live API key into a public forum, or sending a customer list with phone numbers to the wrong person, are everyday mistakes that a quick redaction step prevents.
The tool combines pattern matching with checksum validation, so it finds real data and avoids marking random numbers. The table shows each type and how it is checked.
| Data type | Examples | How it is detected |
|---|---|---|
| Email addresses | name@example.com | Standard email pattern |
| Phone numbers | +44 20 7946 0958, (415) 555-2671, 0300-1234567 | International, US and Pakistani mobile formats with a digit-count check |
| Credit and debit cards | 4111 1111 1111 1111 | 13 to 19 digits that pass the Luhn checksum |
| Bank accounts (IBAN) | GB82 WEST 1234 5698 7654 32 | Country format and the mod-97 checksum |
| US Social Security numbers | 123-45-6789 | Standard format, invalid number ranges excluded |
| Pakistan CNIC numbers | 42101-1234567-1 | The 5-7-1 digit format |
| IP addresses | 192.168.1.10, 2001:db8::1 | IPv4 range check and IPv6 structure check |
| API keys, tokens and passwords | AWS keys, GitHub tokens, Stripe keys, Google API keys, Slack tokens, JWTs, Bearer and Basic tokens, private key blocks, password= values | Known key prefixes and key and value patterns |
| Web links, MAC addresses, dates | https://example.com, 00:1A:2B:3C:4D:5E, 09/11/2026 | Optional types, off by default |
| Names and custom words | Any word or phrase you add | Whole-word match, with optional case matching |
The right style depends on what you will do with the text afterwards.
AI chatbots are useful for summarizing emails, debugging logs, rewriting documents and analyzing data, but whatever you paste into an online AI service leaves your device. Depending on the service and your settings, it may be stored, reviewed or used to improve the service. The safest habit is to remove personal data and secrets before you paste.
Here is a workflow that keeps the AI useful while keeping your data private. Paste your text and choose Numbered placeholders. Copy the redacted text into your AI tool and ask your question. When the AI replies using placeholders such as [EMAIL_1] or [PERSON_1], paste its reply into the restore box on this page, and the real values are put back locally in your browser. The AI never sees the original data, and you still get a complete, ready-to-use answer.
Developers and support teams share text all the time: stack traces, server logs, configuration files, cURL commands, chat transcripts and bug reports. These often contain things that should never be public, including access keys, bearer tokens, database passwords, internal IP addresses and customer emails. This redactor recognizes common key formats, such as AWS access keys, GitHub tokens, Stripe and Google API keys, Slack tokens and JWTs, as well as lines like password=, api_key: and Authorization: Bearer. It hides the secret value and leaves the rest of the line readable, so your helper can still see what you were doing.
If a real secret was already pasted somewhere public, redaction cannot undo that. Treat the secret as exposed, revoke it and create a new one. You can generate new random values with the Secure Random Generator.
These terms are often mixed up. Redaction hides or removes parts of a text. Masking replaces part of a value with symbols while keeping some of it visible. Pseudonymization replaces identifiers with substitutes, such as [EMAIL_1], while a separate key can still link them back to the original. Anonymization means data can no longer be linked to a person by anyone, which is much harder to achieve than it sounds, because combinations of ordinary details can still point to someone.
Numbered placeholders with a restore key are a form of pseudonymization, and under privacy laws such as the GDPR pseudonymized data can still count as personal data. This tool helps you reduce what you share, but it is a helper and not legal advice, and it does not by itself make your work compliant with any law or standard.
Automatic detection is fast, but it is not perfect, and you should always review the result before sharing. Names, home addresses, job titles, medical details, case numbers and other context-specific information are hard to recognize with patterns. That is why this tool lets you add your own names and words. Unusual number formats, typos and data split across lines can also be missed, and a random number that happens to look like a phone number can be marked by mistake.
This tool works on text only. It does not redact PDFs, images, screenshots, scanned pages or file metadata. For those, use a proper PDF or image redaction tool that permanently removes the underlying content, because drawing a black box over text in a PDF often leaves the hidden text underneath.
Customer support teams use it to share tickets with engineers without exposing customer details. Developers and DevOps engineers use it to clean logs, stack traces and configuration before asking for help. HR, finance and operations staff use it before sending documents to external parties. Freelancers and consultants use it to remove client data from examples and case studies. Researchers and students use it to prepare text for analysis. Everyday users use it to make an email or chat safe to post online or paste into an AI assistant.
The tool scans your text with a set of carefully built patterns, then validates many of the matches before it accepts them. Card numbers must pass the Luhn checksum, IBANs must pass the mod-97 check, IPv6 addresses must have a valid structure, and phone numbers must have a realistic number of digits. If two matches overlap, such as an email address inside a web link, the earliest and longest match wins, so you never get half-redacted fragments. Your custom words are matched as whole words, so hiding Ann does not damage the word Annual.
All of this runs in JavaScript inside your own browser tab. There are no network requests with your text, no server logs and no third-party service. The mapping used for the restore feature lives only in your browser memory and disappears when you clear the page or close the tab.
No. Your text is processed locally and never leaves your device. It is not uploaded, saved in cookies or local storage, or visible to us. Even so, treat your device with care: shared computers, browser extensions and clipboard history tools can see what you paste and copy, so clear your clipboard and close the tab when you are done with sensitive material.
This free text redaction tool works on desktop and mobile in any modern browser. You do not need an account, a download or a payment. Redact as many texts as you like. For more privacy and security tools, try the Secure Random Generator for tokens and keys, the File Hash Checker to verify downloads, the Password Generator and the PIN Generator.
Find answers to common questions about redacting personal data, API keys and secrets from text, and about using redaction before AI tools.
A sensitive text redactor is a tool that finds personal and confidential information in text, such as emails, phone numbers, card numbers and API keys, and hides it so the text can be shared more safely.
Paste your text into the tool, choose which data types to hide, add any names or words you want removed, pick a replacement style and copy the redacted result. Review it once before you share it.
No. Your text is processed entirely in your browser. It is not uploaded, sent to a third party or stored.
Yes. It is completely free, with no signup, no limits and no watermark.
Email addresses, phone numbers, credit and debit card numbers, IBAN bank accounts, US Social Security numbers, Pakistan CNIC numbers, IP addresses, MAC addresses, web links, dates, passwords, API keys, tokens, JWTs and private key blocks. You can also add your own names and words.
No. Names, street addresses and similar information have no fixed pattern, so they are not found automatically. Add them to the custom list and the tool hides every occurrence.
It checks the Luhn checksum and the card length, and it only accepts numbers that start with a valid card digit. Most random digit strings fail this check, although a few can still pass by chance.
Yes. Use Numbered placeholders so the AI can still follow the text, then paste the AI reply into the restore box to put your real values back on your device.
When you use Numbered placeholders, the tool remembers the mapping between placeholders such as [EMAIL_1] and your original values in your browser memory. Paste a reply that contains those placeholders into the restore box and they are replaced with the originals.
Labels, masks, blocks and removal do not give each item a unique identifier, so there is no way to know which original value belongs to which spot. Choose Numbered placeholders if you want to restore.
No. It works on text only. For PDFs and images use a dedicated tool that permanently removes the underlying content, because simply covering text with a black box can leave the original text underneath.
Yes. It recognizes common key formats such as AWS, GitHub, Stripe, Google and Slack keys, JWTs and Bearer tokens, plus lines such as password= and api_key:, and hides the secret value while leaving the rest of the line.
No. Redaction only protects text you share from now on. If a real secret was exposed, revoke it and create a new one.
Redaction hides or removes parts of a text. Masking keeps part of a value visible, such as the last four digits of a card. Anonymization means the data can no longer be linked to a person, which is much harder to achieve than simple redaction.
No. It helps you reduce the personal data you share, but it is a helper, not legal advice, and it does not guarantee compliance with any law or standard. Pseudonymized data can still count as personal data.
Yes. Click Open text file to load a plain text file such as a log, CSV, JSON, Markdown or configuration file. It is read on your device and never uploaded.
Up to 200,000 characters at a time. For longer documents, redact them in parts.
A card such as 4111 1111 1111 1111 becomes **** **** **** 1111, and an email such as name@example.com becomes n***@e***.com. Other items are replaced with asterisks.
Yes. Every data type has a checkbox. Web links, MAC addresses and dates are off by default because they are often harmless and common in normal text.
Automatic pattern detection is not perfect. Unusual formats can be missed, and numbers that look like another type can be marked by mistake. Always review the Detected items view before sharing.
No. It exists only in your browser memory while the page is open, and it is cleared when you press Clear all or close the tab.
Yes. It works in modern browsers on phones, tablets and computers.
Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.
Explore All Tools →