PII Redactor — Data Privacy Cleaner prompt for Claude

Plan a text redaction with consistent placeholders and review ambiguous cases that might identify someone.

Use the PII Redactor — Data Privacy Cleaner prompt

Copy the prompt into Claude and replace any sample inputs with your own.

Prompt
Redact [specified categories] from the provided text using consistent markers. Return the safe version, a count by category, and types of ambiguous cases that need review. Avoid quoting the removed values in follow-up notes.
Download Markdown

Test the redaction on a fabricated sample first

Define the categories you want removed, such as names, private email addresses, or account numbers. Test with made-up examples that cover repeated names, unusual formats, and text you want to preserve. For real records, use the tools and handling process your organization approves.

Review the result for details that may identify someone in combination, such as a distinctive job title and city. Confirm the notes do not restate removed values and that the replacement labels are consistent enough for your intended use.

Browse Prompts