Everything happens in your browser. Nothing is uploaded.

How to redact a PDF properly (and why black boxes often fail)

Redaction means removing information from a document so the people you share it with can’t read it: a name in a court filing, an account number on a statement, a home address on a form.

It’s also one of the easiest things to get wrong. Documents released with “redacted” text that anyone could copy and paste have made the news many times. The cause is almost always the same: something was drawn over the text, but the text itself was never removed.

This guide explains why that happens, how real redaction works, and a checklist to use before you share a redacted PDF.

Why black boxes don’t redact

A PDF page is built in layers. Text, images and shapes are stored as separate objects, and the PDF reader draws them on top of each other. When you add a black rectangle or a black highlight, you add one more object on top. The text underneath is still in the file.

That means anyone with the file can often recover it:

Highlighting in black is the same problem

Changing the highlight color to black, or setting text color to match the background, only changes how the text looks. The characters are all still there.

Other places information hides

Even with the visible text removed, a PDF can carry information elsewhere:

How real redaction works

Proper redaction removes the content, not just hides it. After redacting, the information under the box is no longer in the file at all, so there’s nothing to copy, search or uncover.

Different tools do this in different ways. Some delete only the text and image parts under each box. Others turn the whole page into an image with the boxes burned in. Both can work. The important thing is that the original content is gone.

How LeafLock redacts a PDF

Redact PDF uses the image method, because it’s simple and leaves nothing behind on the pages you redact. It also runs entirely in your browser, so the unredacted document is never uploaded anywhere.

  1. Open Redact PDF and choose your file.
  2. Drag on the page to draw a box over everything that must be hidden. Move a box by dragging it, or resize it from its corner.
  3. Go through every page and cover each item you need to remove.
  4. Select Redact and download.

Here’s what happens to your file:

There’s a trade-off: text on redacted pages can no longer be selected or searched, and those pages may be a little larger. If you need the text on those pages to be searchable again, you can run the redacted file through OCR PDF. OCR only reads what’s visible, so the redacted parts stay black.

The tool can only remove what you cover. Anything outside a box stays readable, so the checklist below still matters.

Checklist before you share a redacted PDF

Work through this list every time. It takes a few minutes and catches most mistakes.

1. Find every occurrence

2. Cover generously

3. Test the redacted file

Open the downloaded file, not the one in your editor, and try to get the information back:

  1. Press Ctrl+A (Cmd+A on a Mac) on each redacted page and paste into a plain text editor. Nothing redacted should appear.
  2. Search the PDF for each redacted term. There should be no results.
  3. Try clicking and dragging the black boxes. They shouldn’t move.
  4. Check the document properties (often File > Properties) for leftover names in the title, author or subject.

4. Review the rest of the file

5. Share the right file

Rename the output clearly (for example contract-redacted.pdf) and keep it apart from the original. Sending the unredacted version by mistake is a common error, and it’s easily avoided.

Why on-device redaction matters

The documents that need redaction are, by definition, the ones with sensitive information. Uploading the unredacted original to a website means trusting that site with exactly what you’re trying to protect. When redaction runs on your device, the original never leaves it. To check whether a tool uploads your files, see how to check if a PDF site uploads your files.

Summary

  1. Black boxes, black highlights and matching text colors only hide content. The text is still in the file.
  2. Real redaction removes the content underneath.
  3. Redact PDF turns pages with boxes into images and removes the document’s metadata, on your device.
  4. Always test the redacted file before sharing it: copy, search, and check the properties.

Related: How to sign a PDF without printing.