Home →
Redaction Guides
→ Redact EIN Numbers
How to Redact EIN or Tax ID Numbers in a PDF
EIN numbers commonly appear in financial documents, contracts, and tax forms. Use targeted patterns to remove them before sharing documents.
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
Locate tax ID fields in contracts, invoices, or tax forms.
Step 2
Use a regex rule matching the EIN pattern.
See Example: US EIN format
Regex
\b\d{2}-\d{7}\b
Matches
- 12-3456789
- 98-7654321
The EIN format is two digits followed by a hyphen and seven digits.
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
Preview matches across the entire document.
Step 4
Export the final PDF with permanent text removal.
Step 5
Verify the exported PDF using search and copy tests.
Common mistakes to avoid
Confusing EIN with SSN
Ensure you are using the correct pattern for the identifier you intend to remove.
Matching invoice numbers
Some invoice numbers resemble EIN formats. Always preview matches.
Skipping verification
Confirm identifiers cannot be searched or copied in the final PDF.
FAQ
What is an EIN?
An Employer Identification Number used by businesses in the United States.
Do all tax IDs follow the same format?
No. Different countries use different formats.
Are scanned tax forms supported?
Not currently. The PDF must contain a text layer.