PDF Redaction: Why Black Boxes Don't Hide Text
Text under black boxes in a PDF can still be copied. How to truly remove it, and how to check PDFs you receive for leaky redactions.
Contents
Releasing documents in response to a public records request, submitting evidence to a court or government office, forwarding a quote to a business partner, publishing an internal incident report for outside readers: in all of these situations you black out names, account numbers and phone numbers in a PDF before handing it over.
But in a PDF where black boxes were simply placed on top, you can read what is underneath by dragging over the black part and copying it. In January 2019, it was reported that in a filing submitted to the court by the lawyers of Paul Manafort, Donald Trump’s former campaign chairman, the supposedly redacted parts could be read by copying and pasting, revealing that he had shared polling data with a Russian associate (American Bar Association article). In December 2025, it also made news that in some of the Epstein-related PDFs released by the US Department of Justice, the text under the black bars could be pulled out by copying (AP story). Government agencies and lawyers make this mistake too.
In this article I first check why a black box does not remove text, and then show, with a sample application form PDF, how to remove the text underneath and save the result with the PDF Redaction tool. The tool processes the PDF inside your browser and does not send the file to a server. All screens were captured in the English version, and the names and numbers in the sample are fictitious.
Pulling the text out from under a black box
What loads when you press “Try a sample PDF” in the tool is a two-page PDF that looks like a membership application form. Page 1 lists a name, address, phone numbers, an email address and a personal number. On page 2, a black box has been drawn over the account number “1234567 (TARO YAMADA)”. Open it in a PDF viewer and the account number looks solid black.
When I exported the text of page 2 with pdftotext (part of Poppler), a command that extracts text from PDFs, I got this:
$ pdftotext -layout sample-application.pdf -
...
Bank Transfer Details
Bank: Sample Bank, Marunouchi Branch
Account type: Ordinary
Account number: 1234567 (TARO YAMADA)
The account number and the account holder’s name that should be under the black box come out as is. You do not even need a command: drag over the black part in a PDF viewer, copy it and paste it into a text editor, and the same thing happens.
The reason lies in how PDFs are built. A PDF page is a sequence of drawing instructions such as “draw this text at this position in this font” and “draw a black rectangle at this position”, and whatever is drawn later appears in front. Whether you draw a black box with a viewer’s shape tool, or apply black shading or a highlighter to text in Word and then export to PDF, the instruction that draws the text stays, and a rectangle is simply drawn in front of it. Copying, text export, search and read-aloud all read the text instructions rather than the appearance, so they pick up the text you meant to hide.
To remove the text underneath, the text instructions themselves have to be taken out of the page. The redaction feature of Adobe Acrobat Pro works this way: it deletes the text and image data inside the specified area. The PDF Redaction tool takes a different approach. It rebuilds each redacted page as an image containing only the rendered result (pixels). Since no text instructions are carried over, the text under the black areas exists nowhere in the saved PDF.
Step 1: opening the PDF reveals leaky redactions first
Open the tool page and choose your PDF with “Choose PDF”, or drag a PDF onto the box. Here I pressed “Try a sample PDF”.

After loading, the tool first scans every page for places where text remains under a black fill. If the pixels at the position of each character are almost uniformly black, it concludes that “there is a text instruction here that cannot be seen”. In the sample, it found the account number on page 2.
This check is useful not only when you redact something yourself but also for checking PDFs you receive from others: for example, before forwarding redacted material from a business partner, or when doing a final check on a redacted PDF your organization is about to publish. For the check alone you do not need to go on to save; the result appears as soon as the file is loaded.
To actually remove the places it found, press “Add found places to the redactions”. The areas found by the check are added to the tool’s redaction areas.
Step 2: find phone numbers, email addresses and names and black them out at once
In the next section, “Find and black out”, you search the whole PDF for text you want to hide. The checkboxes cover four kinds: phone numbers, email addresses, postal codes and 12-digit numbers (such as Japan’s My Number, the national ID number). Phone numbers, postal codes and 12-digit numbers assume Japanese formats, so for other countries’ formats, type the words or use a regular expression. This time I ticked phone numbers, email addresses and 12-digit numbers, entered the name Taro Yamada on one line under “Words to hide”, and pressed “Search the PDF”.
It found 9 places. On page 1: four phone numbers (the office number appears twice, in the table and in the closing text), the email address, the personal number “1234 5678 9012” written in groups of four digits separated by spaces, and the name “Taro Yamada”. On page 2: the contact email address and the account holder name “TARO YAMADA”. I typed the name in lowercase, but the uppercase account holder name was picked up as well.
“Ignore spaces, line breaks and full-/half-width differences” is on by default. In Japanese PDFs, variants such as a name with or without a full-width space, or full-width and half-width digits, are easily mixed, and a phrase can be split by a line break, so you can usually leave it on. If you want to find numbers with a fixed shape, such as account numbers, all at once, turn on “Use regular expressions” and write a pattern like \d{7}.
In the list, untick any places you do not want to hide. This time I kept them all and pressed “Add checked places to the redactions”.
Step 3: look at each page and add the address and names the search missed by hand
The redaction areas are shown over the pages in the “Review the redaction areas on each page” section. Checking here that nothing was missed is the important part.
This search left the address and the emergency contact “Hanako Yamada”. The address has no fixed format other than the postal code, and I had not entered the family member’s name. For text like this, and for seals, handwritten signatures or text inside figures, drag over the page to add areas. After dragging over the address line and “Hanako Yamada”, the counter at the bottom right read “11 redactions on 2 pages · 9 on this page”.
While editing, the areas are drawn in a semi-transparent black so the text underneath shows through. This is to make it easy to check what you have covered; when you save they become opaque black. Click an area to select it, and remove it with “Delete selected area” (or the Delete key). Moving to page 2 with “Next page” showed the account number area found by the check and the email address area.
Step 4: saving reopens the file and checks it on the spot
In the last section, “Redact and save”, you choose the image quality used when redacted pages are turned into images. Leaving the default of 200 dpi and pressing “Redact and save” saved sample-application_redacted.pdf, the original file name with _redacted added.
Right after saving, the tool reopens the PDF and checks it. This time it reported that no extractable text remains on the redacted pages (2 pages), and that the redacted text and searched words (13 items) are not found anywhere in the saved PDF. To confirm it outside the tool as well, I ran the saved PDF through the same pdftotext, and the output was empty. Both pages had redactions, so both became images and contain not a single text instruction.
The file grew from about 2 KB to 173 KB. Pages that consisted only of text instructions were turned into images, and with real documents the size grows with the number of pages. Choose by purpose: 150 dpi if it will only be read on screen, 300 dpi for documents with small print or drawings.
The saved PDF does not carry over the document properties (title, author, producing software and so on), bookmarks or attachments. “Remove annotations, comments and form fields” is on by default, so annotations, comments and form fields are removed too. This also prevents leaks like the body text being gone but a person’s name remaining in the author field, or a staff member’s note sitting in an annotation.
Pages you do not redact keep their original text
The tool carries over pages without any redaction area unchanged from the original PDF. This keeps their text searchable and copyable, but it also means any leaky redaction on such a page stays as well.
To try it, I searched the sample PDF only for phone numbers, redacted page 1, added nothing to page 2 and saved. The check after saving showed in green that no text remains on the redacted page (1 page), but when I exported it with pdftotext, the account number “1234567 (TARO YAMADA)” on page 2 came out as is. The check after saving looks at the areas you redacted with the tool and the words you searched for; places found by the check at load time but not added to the redactions are outside its scope.
What this tool cannot hide, and when another tool fits better
In a scanned PDF the text is stored as an image, so the search feature does not work. You can still redact by dragging areas in the page view, and on saving the redacted pages are rebuilt as images.
PDFs that need a password to open cannot be loaded. PDFs that only restrict editing can be loaded, but every page is saved as an image. PDFs over 200 MB are not supported, and the redaction check on loading covers only the first 300 pages.
If what you want to hide is in a screenshot or photo rather than a PDF, use Image Redaction. How text can stay readable depending on how coarse a mosaic is, I tested in “To Hide Personal Info in Screenshots, Fill Beats Mosaic”. If you are sending Word, Excel or PowerPoint files as they are, check for leftover author names, comments and tracked changes with the Office Metadata Cleaner before worrying about the body text.
A redaction is judged not by whether it looks black, but by whether any text remains inside the file. Drag over the black parts of the saved PDF, copy, and confirm that nothing gets pasted. Make that one check a habit before you hand the file over.