Skip to content
All guides
Redaction basicsPDF

How to redact a PDF properly (and why a black box isn’t enough)

A black rectangle over text doesn’t remove it. What real PDF redaction does, where sensitive data hides in a PDF, and how to check a file before you share it.

· 7 min read

In short

  • A shape drawn over text only hides it on screen: the text stays in the PDF and can be copied, searched or uncovered.
  • Sensitive data also hides in OCR text layers, metadata, comments, form fields, attachments, bookmarks and earlier saved versions.
  • Proper redaction removes the content under each box, cleans the rest of the file, rewrites the whole PDF and verifies the result.
  • To check any redacted PDF, search it for each removed value and paste its text into an editor: nothing removed should appear.

Redacting a PDF means removing information for good, so that nobody who receives the file can recover it. That sounds obvious, but it’s where most redaction goes wrong: the information is hidden from view, not removed. This guide explains the difference, shows where sensitive data hides inside a PDF, and walks through a redaction you can check.

Why a black box isn’t redaction

A PDF stores what a page says separately from how it looks. The words on a page are text objects with a position, a font and a size. A black rectangle drawn on top is just another object, painted later. On screen the text disappears. In the file it’s still there.

Anyone who receives that file can get the text back by:

  • selecting the area under the box and copying it;
  • searching the PDF for a name or number they expect to find;
  • deleting or moving the rectangle in a PDF editor;
  • converting the PDF to text, Word or HTML.

This isn’t a theoretical risk. In 2019, a court filing by Paul Manafort’s lawyers covered passages with black bars that left the text underneath, and reporters read the hidden passages by copying and pasting them. The same thing happens with highlighting in black, setting text to black on black, or pasting an image over a paragraph.

Where sensitive data hides in a PDF

Even when the visible text is handled correctly, a PDF can carry the same information in places you don’t see while reading it:

  • Invisible OCR text. “Searchable” scans have a hidden text layer behind the page image. Covering the image leaves that text behind. Our guide to redacting scanned PDFs covers this in detail.
  • Metadata. The title, author, subject and keywords in the document properties, plus XMP metadata, often repeat a client or case name.
  • Comments and annotations. Sticky notes, highlights and review comments can quote the very text you removed.
  • Form fields. A filled form keeps its field values separately from the page.
  • Attachments and bookmarks. Embedded files and outline entries are easy to forget and often named after people.
  • Earlier versions. PDF editors can save changes as an “incremental update” appended to the original file. The original page, before redaction, can still be inside.
  • The file name. smith-divorce-statements.pdf says a lot before anyone opens it.

What proper redaction does

A redaction you can rely on does four things:

  1. Removes the content under every box. Text, images and vector graphics in the redacted area are deleted, not covered.
  2. Cleans the rest of the file. Metadata, comments, form values, attachments, scripts and any bookmark that mentions a redacted value are stripped.
  3. Writes a new file. The whole PDF is rewritten, so no earlier version survives in an incremental update.
  4. Verifies the result. The output is read back, and the export fails if any redacted value can still be extracted.

RedactOnce follows that method. Each page with a redaction is rendered to an image, the boxes are painted onto it, and the page is rebuilt from that image plus an invisible text layer containing only the words that weren’t redacted, so the rest of the page stays searchable. Pages without redactions are copied unchanged. Before you can download anything, the new file is read back and checked against every value you chose to remove.

How to redact a PDF, step by step

With the free redaction tool the whole job happens in your browser. The file is never uploaded.

  1. Open the PDF. Drop it on the tool or choose it from your computer.
  2. Say what to remove. Emails, phone numbers, IBANs, card and account numbers and dates of birth are found automatically. Add the names and numbers specific to your document, one person per line, with any nicknames or initials.
  3. Review every match. Each value is listed once with every place it appears. Accept or skip it, and draw your own boxes over anything else, such as a signature or a photo.
  4. Download the verified copy. The redacted PDF comes with a short report of what was removed and the file’s SHA-256 hash.

How to check any redacted PDF

Whatever tool you used, and especially if you received a redacted PDF and want to know it’s safe to forward, run these checks:

  1. Search the file for each value that should be gone.
  2. Select all the text on a redacted page, paste it into a plain text editor, and read it.
  3. Open the document properties and check the title, author and keywords.
  4. Open the comments, attachments and bookmarks panels.
  5. Open the file in a second PDF viewer and repeat the search.
  6. Check the file name before you send it.

If any check finds something, don’t patch the file by hand. Redact the original again with a tool that removes content, and check the new copy.

Many files with the same names

Redacting each file separately is slow and easy to get wrong. See how to redact the same names across many PDFs.

Questions and answers

Does drawing a black box over text in a PDF redact it?

No. A drawn box only covers the text on screen. The text is still stored in the PDF, so it can be selected, copied, searched or revealed by removing the box. Real redaction deletes the text under the box.

Does printing to PDF remove redacted text?

Not reliably. A PDF printer often writes the text and the box as separate objects in the new file, so the text can still be copied. Use a redaction tool that removes the content, then check the result.

How can I check that a PDF is properly redacted?

Search the file for each redacted value, select all text and paste it into a text editor, and check the document properties, comments and attachments. Nothing you redacted should appear anywhere.

Is turning every page into an image enough?

It removes the text, but the PDF can no longer be searched or read by a screen reader, and metadata and attachments may still be there. Rebuild only the redacted pages and keep the rest as text.