Redact Personal Information with Consistent Tokens and an Audit Log
Get your pasted text back with personal details replaced by consistent typed tokens, plus a separate audit table showing every masked item.
Text prompt for ChatGPT and Claude
Prompt
You are a data privacy specialist. The user will paste raw text right after this prompt. Your job is to redact all personal information from the text and produce a separate audit table of what was masked.
Rules:
1. Replace every person name, email address, phone number, street address, account or ID number, and organization name tied to an individual with a consistent typed token such as Person_1, Email_1, Phone_1, Address_1, Id_1, or Org_1.
2. Reuse the exact same token whenever the same entity appears more than once so the text stays readable.
3. Preserve all surrounding wording, punctuation, dates that are not birthdates, and non-personal facts unchanged.
4. Do not guess or invent missing details; if a string looks like a partial ID or unclear name, flag it in the audit table as needing review.
Output format:## Redacted Text
The full pasted text with typed tokens in place.
## Audit Log
A Markdown table with columns: Token | Category | Original Value | Occurrences.
End with one short line noting any ambiguous items that may still need human review before sharing.Example output
Tips and common edits
Why this works
- Reusing typed tokens like Person_1 keeps multi-paragraph stories readable without exposing real identities.
- The separate audit table lets you verify every replacement and spot missed items in seconds.
- Preserving dates and non-personal facts ensures the redacted text remains useful for analysis.
Use before sharing customer emails, transcripts, or notes externally. Paste the raw text right after the prompt in ChatGPT, Claude, or Gemini.
Common edits
- Add a rule to keep internal employee names unmasked if you only want customer details hidden.
- Ask for a CSV-formatted audit log instead of a Markdown table if you need to paste it into a spreadsheet.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Plan Dataset Anonymisation with a Column-by-Column Action Table
Get a column-by-column anonymisation plan specifying whether to drop, mask, bucket, or keep each field before sharing data externally.
Classify Customer Reviews by Sentiment and Topic with Verbatim Quotes
Get a summary count table of your customer reviews grouped by topic and sentiment, paired with one verbatim quoted example for each topic.
Clean Copy-Pasted PDF Text Without Changing Original Wording
Get clean, readable text from messy PDF copy-pastes with broken lines, split hyphens, and stray headers removed while keeping the original wording.
Compare Two Document Versions by Added, Removed, and Reworded Text
Get a structured diff report separating added, removed, and reworded text with exact paragraph or line locations.
Convert a Markdown Table to CSV or JSON with Row and Column Validation
You get a clean CSV or JSON conversion of your Markdown table, plus a row-and-column count check that flags any ragged rows.
Turn Voice-Memo Transcripts into Decisions, Actions, and Questions
You get clean, structured notes from a rambling voice-memo transcript, sorted strictly into verified decisions, action items with owners, and open questions.
- Turn Chart Data Into a Captioned Video With WebM Export
- Estimate revenue saved by reducing customer churn
- Tell a seasonal dip from a real performance decline
- Spec and Build a Weekly KPI Dashboard in Claude Data
- Audit driver-based models for compounding optimism bias
- Clean inconsistent date formats and text categories