Skip to content
MyPDFDone

Guides · Edit & sign

How to Black Out Text in a PDF So It Can't Be Recovered

A black box or highlighter doesn't hide PDF text: copy and search still find it. How to redact ID, account and tax numbers for good, and how to check it worked.

MyPDFDone teamUpdated 6 min read

Quick answer

A black rectangle or black highlight only covers text: the words underneath can still be copied, searched and extracted. Real redaction deletes them from the file. Use a redaction tool, list the names and numbers to hide, check the preview, then search the downloaded copy for each term. Scanned pages need OCR first.

A landlord wants a bank statement, an employer wants a copy of your passport, a court wants a filing with your children's names removed. The obvious move is to draw a black box over the sensitive parts and send it. In a PDF, that hides nothing. This guide explains why, how to remove personal data properly, and how to check the result before anyone else sees it.

Why a black box is not redaction

A PDF page is built in layers. The text is stored as characters at exact positions, and anything you add with a markup or drawing tool goes on top as a separate object. A black rectangle, a black highlight or white-out covers the words for the eye, but the characters are still there underneath. Search finds them, copy and paste reveals them, screen readers read them aloud, and anyone with an editor can delete the rectangle in one click.

Lawyers, agencies and companies have published "redacted" documents this way more than once, and readers recovered the hidden passages by copying the text into a word processor.

What to redact in common documents

Ask what the recipient needs, then hide everything else. These are the usual candidates:

DocumentUsually safe to hideUsually keep
ID card or passport copyDocument number, machine-readable lines, photo or signature if not requiredName, the fields the request asks for
Bank statementFull account number or IBAN (leave the last 4 digits), unrelated transactionsName, address, period, the totals asked for
Payslip or HR documentTax ID, social security number, health or leave detailsEmployer, gross and net pay
ContractBank details, home addresses, signatures in public copiesParties, dates, the clauses that matter
Medical recordInsurance number, diagnoses not relevant to the requestPatient name, the result you're asked to show
Court filingMinors' names, dates of birth, account numbersCase number, the parts the court requires
Reply to a data requestNames and contact details of other peopleThe requester's own data

Step by step: redact a PDF with MyPDFDone

  1. 01Upload the PDF to Redact PDFOpen MyPDFDone's Redact PDF tool and drop your file on the upload box. Files up to 100 MB are accepted.
  2. 02List what to hideType the names, numbers and words to remove, one per line or separated by commas. Paste numbers copied from the PDF itself, so the spacing matches.
  3. 03Tick emails and phone numbers if neededTick All email addresses or All phone numbers to catch every one in the document without typing them. Phone numbers need at least 9 digits.
  4. 04Check every page of the previewEach match gets a black box, and the result tells you how many were blacked out. If something was missed, add its exact spelling and redact again.
  5. 05Download and test the copyDownload the redacted PDF for $4.99, paid once. Open it, search for a hidden term and try copying the text around the boxes.

The preview is free, so you can see every black box before paying. The download is a one-time $4.99, with no subscription, and files are deleted automatically 2 hours after upload.

Getting the search terms right

Redact PDF finds text by searching for it, so the terms decide what disappears:

  • Copy numbers from the document. "DE89 3704 0044" and "DE8937040044" are different strings. Copying from the PDF keeps the spacing it actually uses.
  • Add every spelling. A name may appear as "Maria Lopez", "M. Lopez" and "LOPEZ, MARIA". Add each variant on its own line.
  • Avoid very short terms. A two-letter term also blacks out those letters inside other words. Use full names and numbers.
  • Type short numbers yourself. The phone option needs at least 9 digits, so extensions, customer numbers and dates are left alone unless you list them.

You can enter up to 50 words or phrases at a time.

How to check that redaction really worked

Never send a redacted file without testing it, and test any file someone else says is redacted the same way:

  1. Search. Open the downloaded PDF and press Ctrl+F (Cmd+F on a Mac). Search for each name and number you removed. There should be no results.
  2. Select and copy. Drag across a black box, or select all text on the page, and paste it into a plain text editor. The hidden values must not appear.
  3. Look at the properties. Open the document properties and check the author, title and subject fields.
  4. Count the matches. Compare the number of blacked-out matches the tool reports with what you expected. Fewer usually means a spelling variant was missed.

Hidden places personal data survives

The visible page is not the only thing a PDF carries:

  • Metadata. Author, title and keywords often hold a name. Redact PDF clears them automatically.
  • Comments and attachments. Review notes, sticky comments and embedded files are separate from the page text, and search-based redaction doesn't touch them. Delete them in your PDF reader, or in the source document before exporting.
  • Form fields and bookmarks. Values typed into fillable fields and the titles of bookmarks are stored apart from the page text. Check them too.
  • The text layer of a scan. An OCR'd scan has invisible text on top of the image. A box drawn over the picture leaves that text readable.
  • The file name. "passport-ivan-petrov.pdf" gives away what you just hid. Redact PDF keeps your file name and adds "-redacted", so rename the file before sending.
  • Pages nobody asked for. Removing whole pages is the simplest redaction of all. See how to split a PDF and extract pages.

Scanned documents and photos of IDs

A scan or phone photo is a picture of text, so there is nothing to search: Redact PDF will report that it didn't find the text. Run OCR PDF first to add a text layer, then redact that file. The black boxes remove both the recognized text and the image pixels beneath them. Our guide on copying text from a scanned PDF explains what OCR reads well.

Mark the copy you send, then protect it

Redaction removes what the recipient shouldn't see. A watermark limits what they can do with the rest. With Watermark PDF you can put a line such as "Copy for Oak Lettings, rental application only" across every page, diagonally or tiled. It won't stop a determined forger, but a copy marked for one purpose is much harder to reuse for another.

If the file goes by email, add a password with Protect PDF and send the password through a different channel, for example by text message. Do it in this order: redact, watermark, protect.

Privacy rules: send less, not just hide more

Privacy laws in many countries, including the GDPR in the EU, rest on data minimisation: collect and share only what a purpose requires. In practice, you may ask why a document is needed and offer a masked copy, such as an account number showing only the last four digits. Many organisations accept that. Court filings often have their own redaction rules, and replies to data requests usually have to protect other people's details. This guide is general information, not legal advice; when the stakes are high, ask the recipient or an adviser what is required.

Final check

  • Every name and number you removed returns no search results.
  • Copying the text around each box shows nothing hidden.
  • Comments, attachments and form fields are deleted or checked.
  • The file name doesn't reveal what you hid.
  • Only the pages the recipient needs are included.
  • Your unredacted original is stored privately, not sent.

Frequently asked questions

No. It adds a shape on top of the page, but the text stays in the file. Anyone can select it, copy it into another document, find it with search, or simply delete the shape. Only a redaction feature removes the text itself.

Yes. The text under each black box is deleted from the page, image pixels under the box are blanked, and the document's author, title and other metadata are cleared. It can't be undone, so keep your unredacted original somewhere private.

Not in Redact PDF: it finds the words and numbers you type, plus all emails or phone numbers if you tick them. For a signature, photo or stamp, cover it in Edit PDF and turn the page into an image so nothing remains underneath.

Only after OCR. A scan is a picture, so there is no text to find. Run OCR PDF first to add a text layer, then redact the result. Check the preview carefully, because OCR can misread digits, and handwriting isn't recognized at all.

Not when the text has really been deleted: there is nothing left in the file to recover. That's why the select, copy and search test matters. If a word still turns up, it was only covered, not redacted.

MyPDFDone sends files over HTTPS, stores them privately and deletes them automatically 2 hours after upload. Redact before you send a file anywhere else, and share only the pages the recipient actually needs.

MyPDFDone team · Alexander Vinokurov

We build and run MyPDFDone, a set of honest online PDF tools: free processing and preview, a one-time $2.99 download, no hidden subscriptions.

Published · Updated