Home →
Redaction Guides
→ Redact Emails
How to Redact Email Addresses in a PDF
Email addresses often appear in headers, signatures, and contact sections. Use targeted patterns, preview matches, and verify the exported PDF to ensure the underlying text is gone.
Important: PermanentRedaction permanently removes text from text-based PDFs. Scanned/image-only PDFs are not supported.
Quick notes
Tip: Many PDF editors can only mask text with black rectangles. Masking is not the same as permanently deleting text from the PDF layer.
Step-by-step
Step 1
Identify where email addresses appear (signature blocks, letterheads, contact sections, footers).
Step 2
Start with a standard email regex rule and preview matches.
See Example: Email address (general)
Regex
(?i)\b[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,}\b
Matches
- jane.doe@example.com
- SUPPORT@Company.co
- first_last+tag@sub.domain.org
This catches most email formats. If you see false positives, tighten by domain(s) you expect or add context (like labels).
Using regex rules in PermanentRedaction
PermanentRedaction supports deterministic redaction rules using regular expressions.
Patterns like this can be applied across an entire document to permanently remove matching text.
Step 3
If you only need to redact specific domains (e.g., internal emails), add a narrower rule.
See Example: Email address (specific domain)
Regex
(?i)\b[a-z0-9._%+\-]+@example\.com\b
Matches
- user@example.com
- team.lead@example.com
Domain-specific rules reduce false positives and speed up review.
Using regex rules in PermanentRedaction
PermanentRedaction supports deterministic redaction rules using regular expressions.
Patterns like this can be applied across an entire document to permanently remove matching text.
Step 4
Preview matches and confirm you are not unintentionally redacting URLs, file names, or unrelated text.
Step 5
Export a final PDF where matched email addresses are permanently removed.
Step 6
Verify the exported PDF by searching for known emails and attempting copy/paste around redacted areas; keep the verification report for review.
Common mistakes to avoid
Over-broad matching
Avoid patterns that match anything containing “@” if your PDFs include markup, logs, or URLs. Use a standard email regex and tighten if needed.
Forgetting headers/footers
Emails often repeat in page headers/footers, signature blocks, and “Contact:” sections.
Skipping verification
Always verify the exported PDF. A page can look redacted while the underlying text remains.
FAQ
Can I redact only certain email domains?
Yes. Domain-scoped rules are often safer and reduce false positives.
What about emails split across lines?
If an email wraps mid-address, you may need a more tailored pattern for that document layout. Preview and verify carefully.
What if the PDF is scanned?
Scanned/image-only PDFs are not supported in PermanentRedaction at this time.