How to redact email addresses and phone numbers in a PDF

Redact email addresses and phone numbers in a PDF: search each format, catch line breaks, extensions and links, then check the saved copy before sharing.

To redact email addresses and phone numbers in a PDF, search the text for every format the file uses (the @ sign and domains, digit groups with spaces, dots, dashes, parentheses and extensions), mark each complete match you decide to remove, then apply redaction and save a new copy. Before sharing, search that saved copy for the removed addresses and numbers, try copying the redacted areas, and separately check links, scanned pages and images that a text search cannot read.

Contact details are easier to find than names because they follow patterns, and that is also the trap: a pattern search returns what matches its rule, not every contact in the document. The steps below separate the two questions you need to answer, “are these matches right?” and “what did the search miss?”. PDFRedactLab prepares a sharing copy of your PDF: it spots sensitive data in the text, in scans with OCR and in hidden information, you review every marked zone, and it exports a redacted copy. See how the PDFRedactLab review and export steps work.

Which contact details should you remove?

Start with the recipient, not the search box. A personal email address, a direct line or a mobile number usually has no place in a copy sent outside your team; a shared service address or a switchboard number may be exactly what the recipient needs to reply. Decide this per category before you run any search, so that the results confirm a decision instead of making it for you.

Fictional example: a project sheet lists maya.reed@example.com, a direct line ending in “ext. 248”, the shared address team@example.com and the project reference 2026-248. The rule for this copy is: remove Maya’s personal address and her extension, keep the shared address and the reference. Removing every group of digits would also delete the reference and make the document harder to use, without making it any more private.

The general method (mark, apply, save a new copy, inspect it) is covered in the step-by-step guide to redacting a PDF before sharing. If the same document also contains names, handle them with the method for finding every repeated name in a PDF: names vary by spelling and initials, while contact details vary by format.

How to search a PDF for email addresses and phone numbers

  1. List the formats actually present. Scroll through headers, footers, signature blocks, tables and appendices and note how emails and numbers are written: name@domain, name+tag@domain, +44 20 …, (555) 010-…, 555.010.…, “ext.” or “x” for extensions.
  2. Test the search on known examples. If your editor offers a pattern search for emails or phone numbers, run it on two or three contacts you can see on the page. If one of them is not found, that format needs a separate search.
  3. Search the fixed parts too. An exact search for the domain (@example.com), a surname used in addresses or a recurring area code catches variants a pattern can skip.
  4. Review each match in its sentence. Open every result, read the label next to it (“Mobile”, “Ref.”, “Invoice no.”) and accept or reject it against your rule.
  5. Check the full extent of each mark. The mark must cover the whole address (local part, @, domain) or the whole number, including the country code and the extension if they are part of what you remove.
  6. Apply redaction and save a new file. Marking alone changes nothing in the file until redaction is applied.

Why does pattern search miss some numbers?

A phone pattern is written for some formats, not all of them. International numbers, numbers with letters, extensions on a separate line or digits separated by unusual spaces can fall outside the rule. The opposite error also happens: dates, order numbers, ZIP codes and project references look like phone numbers and appear as matches.

Treat the two errors differently:

ErrorExampleWhat to do
False positive2026-248 labeled “project reference”Reject the match and note why; check after export that it is still readable
Missed formatA number written 555 0100 ext 248 that the pattern skippedSearch its fixed parts and mark it manually; look for the same format elsewhere
Partial matchOnly maya.reed@exam selected on the first lineExtend the mark to the full address on both lines
Not text at allA business card pasted as an imageMark the image area visually; text search returns nothing

Testing with known examples tells you whether a format is covered. It does not give a percentage of contacts found in the whole document, so keep a manual pass on the places contacts usually sit: letterheads, signatures, footers and tables.

Line breaks, extensions and partial numbers

Long email addresses often wrap: maya.reed@ on one line and example.com on the next. A search may only reach one segment, and a quick selection may only cover one line. Inspect both lines and mark each part.

Extensions are easy to leave behind. If the main number is removed but “ext. 248” stays next to a name, the recipient can still reach that person through the switchboard. Decide on the whole contact block, not only on the digits a pattern returns.

Some copies need to keep part of a number, for example the last four digits so a reader can recognize an account. A pattern search usually marks the full match, so partial redaction means adjusting each mark by hand. After applying it, copy the area and search the saved file for the hidden digits to confirm they are gone.

A clickable email address is two things in a PDF: the visible text and a link annotation, an active area with its own destination, often a mailto: or tel: address. W3C’s PDF techniques describe this link annotation as a region of the page with an action attached, stored apart from the text. Redacting the visible address does not always remove that action.

In the saved copy, hover over or inspect the former contact area with your editor’s link tools. The link should be gone, or point only to an approved address such as team@example.com. You do not need to send an email or call a number to check a link; reading its configured destination is enough. The same applies to a “Contact us” text whose destination hides a personal address.

Contacts in scans, images and signatures

On a scanned page, the phone number is part of an image. A text or pattern search finds it only if the page has an OCR text layer, and then only as accurately as the OCR read it: a 0 read as O or a broken @ will not match. Mark contacts on scanned pages visually, then check the OCR layer as described in how to redact a scanned PDF and its OCR text.

Email signatures, logos with a phone number and pasted business cards are often images even in a text PDF. If the PDF is an exported email conversation, the same address also appears in headers and quoted replies: follow the checklist for redacting an email thread saved as PDF.

How to check the saved PDF

Open the exported copy, not the file you edited, and run these checks:

CheckWhat it showsWhat it does not show
Search for each removed address and number (and its domain or last digits)The text is no longer found in the text layerContacts in images or in scans without OCR
Copy and paste the redacted area into a plain text editorNothing readable remains under the markWhether other pages still hold the same contact
Inspect links in former contact areasNo mailto: or tel: action points to a removed contactContacts stored in metadata, comments or attachments
Look at retained items (shared address, project reference)Your rejected false positives are still readableThat every personal detail in the document was covered

The ICO’s redaction guidance warns that content covered by a shape remains in the electronic file, and recommends a review of redactions before disclosure. Comments, attachments and document properties can also hold an address, for example an author’s email in the metadata: check them with the hidden-information steps of your editor before you send the copy.

Keep a short record: page, category (“personal email”, “direct line”), decision and check result. Avoid copying the removed addresses into a note that travels with the document. If a check fails, correct that occurrence, look for the same format elsewhere, export again and repeat the checks on the new file. To see a marked and reviewed copy end to end, open the fictional redaction example.

Frequently asked questions

Can you search a PDF for all email addresses at once?

Many PDF editors offer a pattern search for email addresses and phone numbers, but it only reads text the file actually contains. Test it on a few known examples, review every match, then apply redaction and check the saved copy.

Why does PDF search not find some phone numbers?

Phone numbers are written in many formats, with spaces, dots, dashes, parentheses, country codes and extensions. A number split across two lines, placed in an image or on a scanned page without OCR text is invisible to a text search.

Can I redact only part of a phone number?

Yes, if you mark only the digits you want to remove. A pattern match usually covers the whole number, so keeping the last digits visible means adjusting each mark by hand and checking that the hidden digits are really gone from the saved copy.

Does redacting an email address remove its link?

Not always. A clickable email address is a link annotation with its own destination, stored separately from the visible text. Check that the link is removed or points to an approved address in the saved copy.

Is a black box over a phone number enough?

No. A drawn box only covers the number; the digits stay in the file and can be found by search or copied. Use a redaction that removes the content, then search the saved copy for the number.

A thoughtful last step before sharing a PDF.

See the fictional review example

Request access to PDFRedactLab

Leave your professional email to get access to PDFRedactLab.

Submitting sends your email and visit context to BankStatementLab’s infrastructure for PDFRedactLab. No account, payment or automatic email is triggered. Privacy.