How to unredact a PDF — and why yours might not be redacted
A surprising number of "redacted" PDFs give their secrets up to anyone who selects the black bar and presses copy. In others the text is gone. The two can look identical on the page; what matters is whether the text was removed or only painted over. This page shows how to tell them apart, why the mistake keeps happening to courts and governments, and how to redact so nothing comes back.
The short answer depends on how it was redacted
- The bars were drawn on top of the text?
- Then it was never redacted. The words are still in the file, and any PDF viewer will hand them over.
- The text was removed?
- Then nothing brings it back. No tool reverses a real redaction, although the width of a bar can still hint at a short word.
- Worried about a PDF you redacted yourself?
- Run the five checks on the copy you sent. If it fails, redact it properly and send that instead.
See it for yourself
The extract below is "redacted" the way most failed PDFs are: black bars painted over text that's still there. Drag across it to select, or press the button to see what a copy and paste would give you. Everything in it is made up.
Statement of account
Account holder:
Sort code: Account no.:
Transfer reference:
This is a web page rather than a PDF, but the mechanism is the same. The bar only changes how the words look, and the words are still there. A screen reader would read them aloud, too.
Why a black box in a PDF can hide nothing
A PDF page is stored as a list of instructions for drawing it: put this text here, in this font; draw this line; fill this rectangle black. A viewer carries them out in order, so a rectangle drawn after a line of text paints over it on screen. But the text instruction is still in the list.
Anything that reads the instructions rather than the finished picture goes straight past the bar: selecting and copying, searching, a screen reader, a text extractor, or opening the file in an editor and deleting the rectangle. The text underneath survives whether the box was added as a comment annotation or drawn into the page itself.
Five ways a PDF redaction fails
- A shape drawn over live text. The classic. A filled rectangle from a free reader's drawing tools, a comment box, or a "highlight" set to black. The text is intact beneath it.
- Text blacked out in Word, then exported. Black highlighting or black text on a black background only changes the look. The export carries the words into the PDF, where they can still be selected.
- A box over a scanned page. A scan is a picture, but it rarely comes alone: scanners and Acrobat usually add an invisible OCR text layer so the page is searchable. Cover the picture and the OCR text is still there. The full, uncovered scan image is often still in the file too.
- The page is clean but the file isn't. A PDF can carry a title and author in its properties, comments, attachments, bookmarks, form-field values, and earlier versions of a page left behind by incremental saves. None of these show on the page, and every one has leaked from documents that looked fine.
- The text is gone, but its shape remains. Even a real redaction leaves the bar's width, and the exact positions of the characters around it. In 2023, researchers at the University of Illinois showed that those positions can be measured precisely enough to work out redacted names. They found the leak in 11 popular redaction tools, Acrobat among them.
It keeps happening
This isn't a theoretical risk. It has caught out the people with the most reason to get it right, often enough that "the redactions didn't work" is a recurring headline.
- 2005 US military report on the death of Nicola Calipari. The Pentagon published a redacted report on the shooting of the Italian intelligence officer in Baghdad. Pasting the PDF into a word processor revealed it in full. The Register
- 2009 The TSA's airport screening manual. A version of the screening procedures was posted on a federal contracting website with its most sensitive passages blacked out, but in a way that readers easily got past. Copies with the redactions exposed spread across the web. ABC News
- 2019 Paul Manafort's court filing. A filing by his defence lawyers blacked out passages describing the special counsel's allegations. The text under the bars could be copied and pasted straight out. Above the Law
- 2023 Hundreds of properly removed redactions, narrowed back down. Bland, Iyer and Levchenko used character positions to recover first and last names from real redacted documents, including inspector-general reports and FOIA responses. In these documents the text itself had been removed. Proceedings on Privacy Enhancing Technologies
So, can you unredact a PDF?
You can only "unredact" a redaction that didn't happen. If the words are still in the file, the PDF will give them up, and that is all a failed redaction is. If they were removed, they're gone. A properly redacted file has no hidden copy and no undo history, and no tool can conjure the original back.
Sites and apps that promise to unredact any PDF are doing one of two things: reading text that was never removed, or guessing. A guess from the surrounding context and the width of the bar can be plausible, especially for a short name, but it is still a guess. It can't be treated as evidence or as the original text.
We don't make a tool for recovering other people's redactions, and won't. This page is for the other side of the problem: making sure yours hold.
How to redact a PDF so it can't be undone
- Remove, don't cover. Use a tool that deletes the text under the bar instead of painting on top of it.
- Cover the whole field. If the length of a name or number would give it away, black out the full line or box around it.
- Strip what isn't on the page. Properties, comments, attachments and old versions need to go too.
- Check the file you send. Select across a bar, search for a word you removed, and look at the document properties. Do this on the exported copy rather than the one you edited.
Redact PDF does all of that in one step by rebuilding the document rather than editing it: every page is rendered to an image, the bars are burned into the pixels, and a new PDF is assembled from those images. No text layer is carried across, under the bars or anywhere else, so there are no character positions to measure and no hidden extras to forget. The code that does it is open source, so you don't have to take that on trust. For a bank statement, see how to redact a bank statement, which covers what to hide and what to leave readable.
Redact a PDF properlyIt runs in your browser, so the unredacted original never leaves your device.
Frequently asked
Can a redacted PDF be unredacted?
Only if the redaction failed. When the black bar was drawn on top of the text, the text is still in the file and comes back out with copy and paste, a search, or a text extractor. When the text was removed, either by a real redaction tool or by rebuilding the page as an image, there is nothing underneath to recover, and no software can put it back.
Why can I copy text from under a black bar?
Because the bar and the text are separate things. A PDF page is a list of drawing instructions, and a black rectangle is one more instruction, painted on top. Selecting and copying reads the text instructions rather than what the page looks like, so it picks the words up straight through the bar.
Does flattening a PDF remove the text under a redaction box?
Not by itself. Flattening merges annotations and form fields into the page, so a drawn box stops being a movable object. The text instructions underneath it are still there, though, and still copyable. The exception is flattening by rasterising, which rebuilds each page as an image. That does remove the text, along with all the other text on the page.
Does printing to PDF remove hidden text?
Usually not. Print-to-PDF generally keeps text as text, so a box drawn over words prints as a box drawn over words that are still in the new file. Check the output the same way you would any other: try to select and copy the area under the bar.
Is Adobe Acrobat's redaction safe?
Acrobat Pro's Redact tool does remove the marked text when you apply it, which a drawn rectangle does not, and it offers a separate step to remove hidden information such as metadata. The free Acrobat Reader has no redaction tool, only shapes. Be aware that a 2023 study found Acrobat, like most redaction tools it tested, still kept exact character-positioning data around redactions that could be used to narrow down short redacted words such as names.
Can AI recover redacted text?
It can only guess. A language model can suggest words that fit the surrounding sentence and the width of the bar, and for something short and predictable like a name or a date that guess can be uncomfortably close. So when the length of the hidden text would give it away, a good redaction covers the whole field or line instead of only the word.