Skip to content

How to check your redaction actually worked

Four ways to test a blacked-out document before you send it, and what each one can and cannot tell you.

· 6 minute read

Why checking is the part people skip

Redaction fails quietly. The page looks finished, the boxes are solid black, and nothing on screen suggests a problem — which is exactly why documents keep going out with the hidden text still inside them. The failure only shows up when somebody else goes looking.

Every check below takes under a minute. Run them on anything going to a court, a regulator, a journalist or a client.

Test 1: try to copy the text

  1. Open the finished PDF in any reader.
  2. Drag across a blacked-out area as if selecting text.
  3. Copy, then paste into a plain text editor — Notepad or TextEdit, not Word.

If anything appears, the redaction failed. Paste into a plain editor rather than a document editor, because a rich editor can paste the black box as well and hide the text a second time.

The limit of this test

Selecting by hand is easy to get wrong: miss the area by a few pixels and you will copy nothing and conclude the file is safe. It proves failure, not success.

Test 2: search the document

Press Ctrl+F (Cmd+F on a Mac) and search for a word you redacted — a surname, an account number, a company name. A search hit on a blacked-out area means the word is still in the file.

This catches what hand-selection misses, because the reader searches the whole text layer rather than the part you managed to drag across.

Test 3: extract all the text at once

The thorough version: pull out every word the file contains and read the result. Nothing is hidden there, because extraction ignores what is drawn on top.

If a redacted name appears in the extracted text, the document is not safe to send. This runs in your browser, so the file is not uploaded anywhere.

Test 4: have it checked automatically

The three tests above rely on you knowing what to look for. The automatic check compares what the file contains with what the page actually shows, and lists anything the file holds but does not display.

It also reports the parts no black box covers: the document properties that name an author or a firm, comments left by reviewers, form fields still holding their answers, and files attached inside the PDF.

What a clean result means

It means the common failure was not found — not that the document is safe. A scanned page has no text layer to compare, an unusual font can defeat the comparison, and no automated test can make a publishing decision for you.

The four places people forget to look

  • Document properties: the author field often still names the person or the firm that wrote the file.
  • Comments and annotations: reviewer notes sit above the page and survive redaction of the page itself.
  • Form fields: a form can look blank on screen while the field still holds the answer.
  • Attachments: whole files can travel inside a PDF without appearing on any page.

If a test fails

Do not try to patch the file by drawing more boxes — that repeats the original mistake. Go back to the document before redaction and redact it properly, so the text is removed rather than covered.

Then run the checks again on the new file. A redaction you have tested is the only kind worth trusting.

Questions

How do I know if a PDF redaction worked?
Try to select and copy the blacked-out area, search the document for a redacted word, and extract the full text. If any of those bring back the hidden words, the redaction failed. An automatic check compares the text the file holds against the page you see and lists anything hidden.
Can redacted text be recovered from a PDF?
If the redaction was only a drawn rectangle, yes — the words are still in the file and come out with any copy or text extraction. If the page was flattened to an image with the boxes painted in, or the text objects were deleted, there is nothing left to recover.
Does flattening a PDF remove hidden text?
Flattening a page to an image does remove the text layer for that page, which is what makes it effective. It does not touch document properties, attachments or annotations, so those need clearing separately.
Is it safe to check a confidential PDF online?
It depends on the tool. The check here reads and renders the pages in your own browser and never uploads the file, which is the only arrangement that makes sense for a document sensitive enough to need redacting.

The tools for this

Redact PDF

Black out text so it is genuinely gone, not just covered.

PDF

PDF to Text

Get the words out of a PDF as a plain .txt file.

TXT