Guides

How to redact a PDF properly

A black box drawn over a name looks redacted, but in most PDF editors the name is still in the file underneath. Here is how redaction goes wrong, and how to do it so the words are really gone.

Why a black box isn’t enough

A PDF page is built in layers. When you draw a black rectangle with a comment or shape tool, it is added on top of the text, and the text stays underneath, untouched.

Anyone who gets the file can select the hidden words and copy them, search for them, or simply delete the box. Screen readers and search engines read them too.

It happens to professionals

In 2019, a court filing by lawyers for Paul Manafort was published with blacked-out passages that could be read by copying the text into another document. In 2009, the US Transportation Security Administration published a screening manual whose redactions could be removed the same way.

In both cases the boxes looked right on screen. The mistake only showed when someone tried to copy the text.

How real redaction works

  • The covered words must be removed from the file, not just covered.
  • The simplest reliable way is to turn each page that has a box into an image with the box burned in, so there is no text left underneath to copy.
  • Pages without anything to hide can stay as they are, so their text is still searchable.
  • Hidden details should go too: the title, author and other metadata can name the person you just redacted.

Check your redaction before you send it

  • Open the redacted file and try to select the text under each box. Nothing should highlight.
  • Search the file for the redacted words with Ctrl+F or Cmd+F. There should be no matches.
  • Copy a whole redacted page and paste it into a text editor. The hidden words must not appear.
  • Look at the document properties in your PDF reader for names in the author or title.

What to redact

  • Names, addresses, phone numbers and email addresses of people who shouldn’t be identified.
  • Account, card, passport, tax and national ID numbers.
  • Signatures, which can be copied onto other documents.
  • Anything in headers, footers, stamps and margins: they are easy to miss.

More guides