How to redact a PDF so the text is truly gone

To redact a PDF properly, the underlying text must be deleted from the file, not just covered with a black rectangle. Drawing a black box on top hides the words visually, but they usually remain in the PDF and can be copied, searched, or extracted by anyone. A proper redaction removes the text from the content stream so it is gone. You can verify a redaction worked by trying to select and copy the “hidden” area, or by extracting the PDF’s text — if the redacted words appear, the redaction failed.

Redaction failures are a recurring source of leaks: a court filing, a contract, or a report is published with sensitive names or numbers “blacked out,” and someone copies the text straight out from under the boxes. The cause is almost always the same mistake. This guide explains it and shows you how to redact so the text is actually removed — and how to prove it.

The black-box mistake

The most common way people “redact” is to draw a filled black rectangle over the sensitive text, or to highlight it in black. Visually the text disappears. But in the PDF, the original characters are still there in the content stream, sitting underneath the box. Anyone can select that region and copy the text, run a search, or extract the page’s text with a free tool — and the “redacted” words come right out.

The same is true of a black highlight, a white box over text, or flattening the page to an image at the very end without removing the text first: unless the text itself is deleted, it is recoverable.

How to check if a redaction actually worked

  1. Open the “redacted” PDF and try to select the text under a black box with your cursor, then copy and paste it somewhere — if anything comes out, the text is still there.
  2. Or run the whole document through a PDF-to-text extractor and search the output for the sensitive words.
  3. If the words appear in either test, the redaction failed and the file is not safe to share.

Use a text extractor to test a file:

How to redact so the text is deleted

Proper redaction removes the underlying text, then paints the visible mark. In a browser-based editor that does true redaction, the workflow is:

  1. Open the PDF in an editor whose redaction deletes text from the file (not one that only draws a box).
  2. Select the redact tool and cover each piece of sensitive text — the tool removes those characters from the content stream and paints an opaque black mark.
  3. Download the redacted PDF.
  4. Re-open the result and run the copy-paste and text-extraction tests above to confirm nothing remains.

TrulyFreePDF’s editor redacts this way — the text under a redaction is deleted from the file, not merely covered — and because it runs in your browser, the document is never uploaded while you do it.

A note on metadata and images

Text is the usual culprit, but two other places can leak: document metadata (author, title, and other properties) and text baked into images. Redacting the visible text does not touch either. If a document is highly sensitive, also clear its metadata, and remember that words inside a scanned image are part of the picture — covering them means painting over the pixels, and any separate searchable text layer must be removed too.

Redact a PDF now

Redact in your browser, then verify:

Frequently asked questions

Why can I still copy text from a redacted PDF?
Because the “redaction” only drew a black box over the text — the characters are still in the file underneath. Proper redaction deletes the text from the content stream so there is nothing left to copy.
How do I redact a PDF so the text is actually removed?
Use an editor whose redact tool deletes the underlying text rather than covering it, then verify by trying to copy the area and by extracting the document’s text. If the words are gone from both, the redaction worked.
Does turning the page into an image redact it?
Only if the sensitive text was deleted before flattening. Flattening a page that still contains the text can retain it; and if a searchable text layer is added later, the words can return. Remove the text first.
Can I redact a PDF without uploading it?
Yes — a browser-based editor redacts on your device, so a sensitive document is never sent to a server. That is exactly the kind of file you do not want to upload.