Scrub sensitive data out of any prompt before you paste it into ChatGPT, Claude, or Gemini. Auto-detect and redact names, emails, phone numbers, API keys, credit cards, IPs and more, 100% in your browser, nothing ever uploaded. Rule sets, conversation memory, file mode and leak check.
The AI Prompt Anonymizer finds and masks personally identifiable information (PII) and secrets in your text so you can safely share prompts, logs, and documents with AI assistants and coworkers. Detection and redaction run entirely on your device, your data never touches a server. Save your detector setup as rule sets, keep the same placeholders across a whole conversation, open and download text files, and run a leak check that looks for anything left in the output.
Every prompt you paste into ChatGPT, Claude, or Gemini may be retained, logged, reviewed, or used to improve models, depending on the provider, the plan, and your privacy settings. Consumer apps and business or API plans usually have different defaults, so check your provider's current data controls rather than assuming. If a prompt contains a customer's name, an employee's email, a live API key, or a credit-card number, you've shared sensitive data with a third party, which is a real compliance and security risk. An AI prompt anonymizer reduces that risk at the source: it strips identifiers out of your text before the text leaves your browser, so you keep the productivity of AI without exposing people or secrets.
Features
15 PII & secret categories (email, phone, SSN, credit card, API key, IP, crypto wallet, IBAN & more), 94% recall on our published test set
Three masking modes: reversible [TYPE_n] tokens, solid █ redaction, or realistic fake data
Reversible tokens: paste the AI's reply back and restore your real values
Per-category toggles + custom always-mask terms
Live risk score and entity breakdown
Saved rule sets, conversation memory for multi-message chats, file mode and a leak check on the output
100% client-side: nothing is uploaded or logged, and your text is never stored
ToolNova Pro: batch anonymize up to 50 text files into a ZIP with matching placeholders
ToolNova Pro: your own patterns, such as employee or order IDs, saved in your browser
How to use AI Prompt Anonymizer
1
Paste your prompt or document
Drop in the text you want to share with an AI, a support ticket, error log, contract clause, or draft email. Everything is processed locally in your browser.
2
Review the detected sensitive data
The anonymizer instantly highlights emails, phone numbers, API keys, card numbers, IP addresses and more, with a live risk score and a per-category breakdown. Person names and dates are off by default because they're the noisiest detectors; switch them on when your text contains them.
3
Choose how to mask it
Switch between labeled tokens like [EMAIL_1], solid █ redaction, or realistic fake replacements. Toggle categories on or off and add your own custom terms to always hide.
4
Copy the clean version
Copy the anonymized text and paste it into ChatGPT, Claude, or Gemini. Read it once before you send it: detection is pattern-based, so anything it doesn't recognize (see the coverage table below) is still in the text.
5
Restore the AI's answer (optional)
When the assistant replies using your tokens, paste its response into the Restore tab to swap the placeholders back to your real values automatically.
6
Keep placeholders across a conversation (optional)
Turn on Conversation memory and the same person, email or key gets the same placeholder in every message. New values are added when you copy or download, and replies can be restored even after you clear the box.
7
Reuse your setup and check the output
Save the masking mode, detector switches and custom terms as a rule set. Open a text, CSV, JSON or log file to anonymize it and download it with its file type kept, then read the leak check before you share.
Common use cases
Redact customer names, emails, and order numbers from support tickets before asking AI to draft a reply
Strip API keys, tokens, and IP addresses out of error logs and stack traces before debugging with an LLM
Anonymize contracts, medical notes, or HR documents so you can summarize them without leaking identities
Remove personal data from spreadsheets and CSV snippets before analysis
Sanitize screenshots-turned-text and chat exports before sharing them publicly
Support GDPR data minimization and HIPAA de-identification work when using third-party AI tools (one step in the process, not a compliance guarantee)
The tool runs 15 built-in detector categories, plus any custom terms you add. Card numbers must pass the Luhn checksum and IBANs the ISO 13616 mod-97 check, which keeps those two nearly free of false positives. Phone numbers must look like a phone number (a +country code, an (area) code, or three separated digit groups), so bare order and record IDs aren't flagged. Person names and dates are off by default: names are detected from capitalization, which also catches things like "Quarterly Business Review", so switch them on only when you need them. The table shows the result for each category on our 70-snippet test set (method below). Anything marked not detected needs a custom term or a manual edit.
15 of 18 (missed lowercase, accented, single surnames; 10 false alarms)
Dates
03/14/2026, 2026-02-03, April 2, 2026
No
7 of 7
Not detected
Medical record numbers, passport and driver's license numbers, non-US national IDs, company names
n/a
Add them as custom terms
Reversible by design
Redaction usually destroys information, which is a problem when the AI needs to answer using the very values you masked. Token mode solves that: each unique value maps to a stable placeholder such as [PERSON_1] or [EMAIL_2], and the same value always gets the same token. Paste the assistant's reply into the Restore tab and every token is swapped back to your real data. Only token mode is reversible, because redaction bars and fake data don't map back. By default the token map lives only in this browser tab's memory and is never saved, so restore the reply before you close or reload the page, or edit the original text. If you work over several messages, turn on Conversation memory to keep the map for this tab.
A real conversation with an AI takes many messages, and the model needs to see that [PERSON_1] in message five is the same person as in message one. With Conversation memory on, the tool remembers the placeholder for every value you have masked in this tab. The same value always gets the same placeholder, and new values continue the numbering, so [EMAIL_1] never changes meaning. Values are added when you copy or download the output, or press Add now. The Restore tab then works on the whole conversation, even after you clear the input box, and it also catches placeholders the AI wrote in lower case or without brackets. The memory lives in this tab only (session storage) and disappears when you close it. You can save the mapping to a file and load it later; that file contains your real values, so keep it private.
Rule sets, file mode and the leak check
Rule sets save your masking mode, detector switches and custom terms under a name, so a work setup with your project names and client terms is one click away. Up to 15 are kept in this browser and can be exported and imported as a file. File mode opens a text, log, CSV, JSON, code or similar file of up to 2 MB and downloads the result with its file type kept, for example report.anonymized.csv; nothing leaves your browser. The leak check then looks at the output for any original value that is still in it, and in token and redact modes scans it again with every detector, telling you when something was left because a detector is switched off. It is a second pair of eyes, not a guarantee, so read the output once before you share it.
Private by default, free forever
There is no upload, no account, and no server call anywhere in the anonymizer. All detection and masking happens in JavaScript on your device, so once the page has loaded it keeps working offline and leaves nothing behind when you close the tab. It's also instant: you get live results as you type with no rate limits. Detection is pattern-based rather than an AI model, so the results are predictable and repeatable, but it only finds what it has a pattern for.
Here is a real round trip, with Person names switched on. Everything the tool recognized became a token, and the AI answered using those tokens without ever seeing the real values. Notice what's left: the word "her" and the fact that this is a customer complaint about an API key. Pronouns and context aren't PII patterns, which is why the next sections matter.
Step
Text
1. Your original
Customer Sarah Johnson (sarah.johnson@example.com) says API key sk-proj-abc1234567890XYZlmnopQRS stopped working from 192.168.14.22. Call her on +1 (415) 555-0198.
2. What you paste into the AI
Customer [PERSON_1] ([EMAIL_1]) says API key [API_KEY_1] stopped working from [IP_1]. Call her on [PHONE_1].
3. The AI's reply
Hi [PERSON_1], we've revoked [API_KEY_1] and whitelisted [IP_1]. We'll confirm at [EMAIL_1].
4. After Restore
Hi Sarah Johnson, we've revoked sk-proj-abc1234567890XYZlmnopQRS and whitelisted 192.168.14.22. We'll confirm at sarah.johnson@example.com.
Anonymization vs. pseudonymization: what GDPR and HIPAA expect
These words are often used as if they mean the same thing, but legally they don't. Under the GDPR (Article 4(5) and Recital 26), data you can re-identify with extra information, such as this tool's token map, is pseudonymized, and pseudonymized data is still personal data. Only data that can no longer be linked to a person by reasonable means counts as anonymous and falls outside the GDPR. So reversible token mode reduces what you disclose, but it doesn't take the text out of scope. Solid redaction and fake data remove the direct identifiers for good, though context can still identify someone (see below). HIPAA's Safe Harbor method (45 CFR §164.514(b)) requires removing 18 specific identifier types. This tool covers several of them, including names, addresses, dates, phone numbers, emails, SSNs, URLs and IP addresses, but not medical record numbers, health plan or license numbers, or device serials, so on its own it doesn't produce Safe Harbor–compliant text.
Mode
Reversible?
GDPR status of the output
Best for
Tokens [EMAIL_1]
Yes, in the same tab
Pseudonymized: still personal data
Getting a usable answer you'll restore
Redaction █████
No
Direct identifiers removed; check context
Sharing logs or text publicly
Fake data
No
Direct identifiers removed; check context
Prompts that must read naturally
What PII removal can't hide
Removing names, numbers and addresses doesn't make every text anonymous. Combinations of ordinary details, sometimes called quasi-identifiers, can still point to one person: a job title plus a small office location, a rare medical condition plus a date, or "the only woman on the platform team". No pattern matcher can tell which details make someone unique in your organization. Before you send, reword or generalize anything that would let a colleague guess who the text is about. Say "a senior engineer" rather than "our Lisbon tech lead", and "last spring" rather than an exact date. For repeat names, project codes or client names, add them to the custom always-mask list so they're caught every time.
You don't have to take our word for it. Open this page, then open your browser's developer tools (F12) and go to the Network tab. Paste some text, anonymize it, and restore a reply: no request carries your text anywhere. The only requests you'll see are the page's own analytics and ads, none of which include what you typed. For the strictest test, load the page, turn off Wi-Fi or switch on airplane mode, and use the tool. Detection, masking, copy and restore all keep working, because none of them need a network connection.
We wrote 70 short snippets that look like the text people actually paste: support tickets, error logs, .env files, HR and legal notes, invoices. We labelled all 94 sensitive values by hand, using only fictional values (555 numbers, example.com addresses, documentation test cards and keys). We ran the exact detection code this page uses, with every category switched on, and counted a hit when the tool flagged the right span as the right type. The first run exposed format gaps: the standard US (415) 555-0198 phone format, spaced IBANs, compressed IPv6, and Stripe and Slack keys. We fixed those, then wrote 20 new held-out snippets before running the fixed code on them, so that part of the score isn't tuned to the test. This is a small in-house test, not an independent audit, and your own text will differ, so treat it as a guide and always read the output before sending it.
Test set
Snippets
Labelled values
Found (recall)
Flags that were correct (precision)
Main set (after fixes)
50
67
62 (93%)
87%
Held-out set (untuned)
20
27
26 (96%)
93%
Combined
70
94
88 (94%)
89%
Frequently asked questions
Can I anonymize many files at once?
Yes, with ToolNova Pro. Choose up to 50 text, log, CSV, JSON or code files of up to 2 MB each. They are anonymized with your current settings and downloaded as one ZIP, and a value that appears in several files gets the same placeholder in each. The files are processed in your browser and are not uploaded. Opening one file at a time stays free.
Can I teach it to detect my own ID formats?
Yes, with ToolNova Pro. Add a named pattern such as EMP-##### (# is a digit, @ a letter, * any word characters) or a regular expression, and every match is masked as its own placeholder, for example [EMPLOYEE_ID_1]. Patterns are saved only in your browser. Plain custom terms stay free.
How do I anonymize a prompt before using ChatGPT?
Paste your text into the AI Prompt Anonymizer. It instantly detects names, emails, phone numbers, API keys, credit cards, IPs and more, and replaces them with tokens, redaction bars, or realistic fake data. Copy the clean version and paste that into ChatGPT instead of the original. All of this happens in your browser, nothing is uploaded.
Is my data uploaded to a server?
No. Every detector runs 100% client-side in JavaScript on your own device. There is no API call, no account, and no logging. Once the page has loaded you can disconnect from the internet and the tool still works, and you can confirm this yourself in your browser's Network tab.
What types of sensitive data can it detect?
15 categories: email addresses, phone numbers, US Social Security numbers, credit-card numbers (Luhn-validated), IBANs (mod-97 validated), IPv4/IPv6 and MAC addresses, URLs, crypto wallet addresses (BTC/ETH), API keys and tokens (OpenAI, Anthropic, AWS, Google, GitHub, Stripe, Slack, JWTs), street addresses and UK postcodes, @handles, dates, and best-effort person names. Names and dates are off by default. It does not detect medical record, passport or driver's license numbers; add those as custom terms.
Can I get the AI's answer back with my real data restored?
Yes. In token mode each value maps to a stable placeholder like [PERSON_1]. When the assistant replies using those placeholders, paste its response into the Restore tab and the tool swaps every token back to your original values, a fully private round-trip. It also catches placeholders written in lower case or without brackets, and lists any it does not recognise.
How do I keep the same placeholders across several messages?
Turn on Conversation memory. The same value then gets the same placeholder in every message and new values continue the numbering. It is kept in this browser tab only and is cleared when you close it. You can also save the mapping to a file and load it later.
Can I save my detector settings and custom terms?
Yes. Save them as a rule set with a name, apply it in one click, and export or import your rule sets as a file. Rule sets hold settings only, never the text you anonymize.
Can I anonymize a file instead of pasting text?
Yes. Open or drop a text, log, CSV, JSON, markdown or code file of up to 2 MB, then download the result with its file type kept, for example notes.anonymized.csv. Binary files such as images are rejected, and the file is never uploaded.
What does the leak check do?
It checks whether any original value you masked still appears in the output, and in token and redact modes it scans the output again with every detector. It reports leftovers and tells you if a detector was switched off. It is an automated second look, not a guarantee.
What's the difference between the masking modes?
Tokens (e.g. [EMAIL_1]) are reversible and keep the text readable for the AI. Redaction replaces data with solid █ bars for maximum secrecy but isn't reversible. Fake data swaps in realistic-looking replacements (a fake name, a 555 phone number) so the prompt still reads naturally while hiding the real values.
Is this suitable for GDPR or HIPAA workflows?
It helps, but it isn't a compliance guarantee. Because the tool never transmits or stores your text, it supports GDPR data minimization. Reversible token mode, though, produces pseudonymized data, which the GDPR still treats as personal data. HIPAA Safe Harbor requires removing 18 identifier types, and this tool doesn't detect some of them, such as medical record and health plan numbers. Use it as a first step, review the output, and follow your organization's policies. This isn't legal advice.
Does it work for log files and source code?
Yes. It's especially useful for stripping API keys, bearer tokens, IP addresses, and email addresses out of error logs, stack traces, and config snippets before you debug them with an AI assistant.
How do I remove personal information from text before using ChatGPT?
Paste your text and the tool detects and redacts names, emails, phone numbers, addresses, card and ID numbers, giving you a cleaned version to paste into an AI. It runs entirely in your browser, so the original never leaves your device.
What is the difference between masking and labeling redacted data?
Masking (this tool's Redaction mode) replaces each item with solid █ bars, so nothing about it survives. Labeling (Token mode) replaces it with a numbered tag like [PERSON_1] or [EMAIL_2], so the AI still knows what kind of value was there, and you can restore the real values later. Use labels when you need a useful answer, and masking when you're sharing text publicly.
Is the anonymizer private and free?
Yes. All detection and redaction happen locally in your browser, with no signup and nothing uploaded. It's free with no usage limits.
Does removing names make text anonymous?
Not always. Details like a job title, a small office location, a rare condition or an exact date can identify someone even after names and numbers are removed. Reword or generalize those details yourself before sending the text to an AI.
Which AI assistants does it work with?
Any of them. The output is plain text, so you can paste it into ChatGPT, Claude, Gemini, Copilot, Perplexity, a local model, or a support ticket. Restore works with any reply that keeps the [TYPE_n] tokens intact.