It starts innocently. A customer sends an angry, rambling email, and you just want help writing a calm reply. So you copy the whole thread into ChatGPT. Only afterwards do you notice what came with it: the customer's full name, their phone number, their home address, and the last four digits of a card in a screenshot you described. Or you paste a server log to ask why a job keeps failing, and halfway down there is a live API key.
Most people have done something like this at least once. AI assistants are so useful, and the chat box feels so private, that it is easy to forget the text is leaving your computer. This guide explains what is risky to paste, why, and a simple workflow that gets you the same help without handing over anyone's personal data.
Why the chat box is not as private as it feels
When you send a message to an AI assistant, the text travels to the provider's servers to be processed. Depending on the provider, your plan and your settings, it may be stored for a while, reviewed for safety or quality, or used to improve future models. Business plans often promise stronger protections than free ones, but in every case the data has left your control.
For your own harmless questions, that is usually fine. It becomes a problem when the text contains information about other people, or secrets that give access to systems:
- Other people's personal data, such as customer names, emails, phone numbers, addresses and identity numbers. You may have a legal duty to protect it under laws like GDPR.
- Financial details, such as card numbers and bank account numbers (IBANs).
- Health or HR information, which is especially sensitive.
- Credentials, such as API keys, passwords, access tokens and JWTs. A leaked key can be used by anyone who sees it.
- Confidential business details, such as unreleased product names, client names and internal server addresses.
The good news: AI rarely needs the real details
Here is the insight that makes this easy. To help you rewrite an email, the assistant does not need to know that the customer is called Priya Sharma and lives on Park Road. It only needs to know there is a customer, what they are upset about, and what you want to say. To debug a log, it needs the structure of the error, not your real key.
So instead of deleting sensitive details, which often breaks the meaning, you replace them with placeholders:
Hi [CUSTOM_1], thanks for your message about order [CUSTOM_2]. We have sent
a replacement to the address on file and will call you on [PHONE_1] to
confirm delivery.The AI reads this perfectly well, writes a great reply using the same placeholders, and you swap the real details back in afterwards. This is called pseudonymization: the data is hidden from the AI, but reversible for you.
A step-by-step workflow
The PII Anonymizer is built around exactly this round trip, and all of it runs in your browser, so the original text is never uploaded to our server.
- Paste your text into the tool, or import a
.txt,.log,.jsonor.csvfile. - Pick a profile. "Everything" catches all supported types. GDPR, HIPAA, PCI-DSS and "Secrets only" switch on the detectors that match each situation.
- Add names yourself. Names of people and companies do not follow a pattern, so they are not detected automatically. Type them into Custom terms, one per line, and they are replaced everywhere.
- Check the highlights. Click Show matches to see every detected item, coloured by severity. Add anything that was missed.
- Copy the anonymized text into ChatGPT, Claude, Gemini or any other assistant.
- Paste the reply into Rehydrate. The placeholders are swapped back to the real values, on your device, ready to use.
The same value always gets the same placeholder, so if a customer's email appears five times it becomes [EMAIL_1] every time, and the AI can still follow the conversation.
What gets detected
The tool recognises the formats that cause the most damage when leaked:
| Type | Examples |
|---|---|
| Contact details | Email addresses, phone numbers |
| Financial | Credit and debit cards (checked with the Luhn algorithm), IBANs |
| Identity numbers | US Social Security numbers, Indian Aadhaar and PAN |
| Technical secrets | API keys from OpenAI, Stripe, GitHub, AWS, Slack and Google; JWT tokens |
| Network details | IP addresses, and optionally URLs and MAC addresses |
| Unknown secrets | Optional high-entropy detection for random-looking tokens |
Card numbers must pass the same checksum that payment systems use, so a long order number is not mistaken for a card. An allowlist lets you keep values visible on purpose, such as your company's public support email.
Choosing how values are replaced
There are four styles, and the choice matters:
- Tokens like
[EMAIL_1]are the clearest and restore most reliably. The best default. - Realistic fakes replace a real email with a believable fake one. Useful when you want the AI to treat the text naturally, for example when testing how a reply reads.
- Labels like
[EMAIL 1]are a softer variation of tokens. - Masks turn every value into solid blocks. This is one-way: because every masked value looks the same, the reply cannot be restored. Use it only when you never need the real values back, such as sharing an example publicly.
Three real situations
Customer support
A support agent pastes a complaint thread with the customer's name added as a custom term. The AI drafts a warm, clear reply addressed to [CUSTOM_1]. The agent rehydrates it, reads it once more and sends it. The customer's details never left the agent's browser.
Debugging a log
A developer's log contains an AWS access key and an internal IP address. With the "Secrets only" profile plus IP detection, they become [SECRET_1] and [IP_1]. The AI spots the real problem, a timeout to a dependency, without ever seeing the key.
Summarising notes
An HR manager wants a summary of interview notes. Candidate names are added as custom terms, and emails and phone numbers are detected automatically. The summary comes back with placeholders, and the manager restores it for the hiring file.
Habits that keep you safe
- Remove secrets even when anonymizing. If a key or password has appeared anywhere it should not have, rotate it. Hiding it from the AI does not undo an earlier leak.
- Keep the restore map private. You can export it as JSON or CSV, but it contains the original values. Store it like the original data, or do not save it at all.
- Review before you paste. Detection is based on patterns, and unusual formats can slip through. A quick look at the highlights takes seconds.
- Check your AI provider's settings. Many offer options to turn off training on your conversations. It is worth knowing what yours are.
- Anonymization is not a compliance certificate. The profiles help you apply sensible rules, but your organisation's policies still apply.
If you are also tidying up your own account security, our guide to creating strong passwords you can remember pairs well with this one, and if you ever need a new secret to replace a leaked one, the Password Generator creates it locally. For documents rather than text, such as a PDF with personal details, the Redact PDF tool can black out what should not be shared.
Use AI freely, share carefully
AI assistants are too useful to avoid, and you do not have to choose between getting help and protecting people's privacy. The habit is simple: before you paste, swap real details for placeholders, and swap them back when the answer arrives. With the PII Anonymizer, that takes less time than reading the reply.



