Can redacted text in a PDF be recovered? Why many redactions can be undone
Updated
Often, yes. If a PDF was "redacted" by drawing a black box over the text, the words are still in the file, and anyone can select them, copy them and paste them somewhere else. Whether redacted text can be recovered depends on the method used to cover it, not on how the page looks. The useful question is not "can I see it?" but "is the data still inside the file?"
This page goes through which redactions can be undone and which cannot, with real cases and figures from our own tests. It also covers a limit that applies even to a redaction done properly: it can leave a trace of where the text was, and ours does too. Read it as a way to check your own documents before you send them.
Why a black box does not remove anything
Because the box is a shape drawn in front of the page, not an eraser. The text lives in the content of the PDF and the rectangle sits on top of it, like an opaque sticker on a written sheet. Peel the sticker off, or copy through it, and the sentence is still there in full. Most PDF editors let you draw that rectangle in two clicks, which is why it is the most common mistake.
The best-known case involved the lawyers of Paul Manafort. On 8 January 2019 they filed a response in a US federal court with passages blacked out. Reporters copied the text from underneath the black boxes, and a corrected version of the filing was entered on the court docket the same day. The redaction was only a layer on top. It was not a rare technical glitch: it is what happens to any PDF covered with a rectangle.
Five places where data survives a redaction that looks finished
A PDF has many more corners than the part you see. We keep a set of test documents with invented data, one for each hiding place, and each one measures whether the data can still be recovered after redaction. These are the kinds of leak that come up again and again, apart from the gap described in the next section:
- A box laid over live text: the black is a shape or annotation drawn on top, while the text stays in the page content and copies out. This is the Manafort case and the most common one.
- A scanned page: a black box on an image is one image laid over another, so it can often be lifted off, or the contrast raised until what lies beneath shows through. A plain scan has no text layer at all, so a check that reads only text passes over it in silence. And if the scan was made searchable, there may be invisible text under the picture even though you cannot see it.
- A bookmark: data typed into the title of a bookmark in the document outline does not show on the page and survives the redaction, and a check of the page text does not look there.
- Attachments and metadata: an embedded file, the thumbnail the PDF keeps of each page (which can be a picture of the page without the redaction), the alternative text of an image, annotations, the title, author, subject and keywords fields (which often carry a file name, a client name or a case number) and the separate XMP block can all keep the data even when the page looks clean.
- A switched-off layer: data drawn inside an optional layer that the document declares hidden does not appear when the file opens, but it is in the page content and one click in the layers panel brings it back.
The lesson is not "this tool fails and that one works". It is that covering and deleting are different things, and that a file can look clean on screen while carrying the data in several of these places at once.
If the text is really deleted, is it safe?
Almost, but not entirely. When text is genuinely removed, the gap it occupied stays. The word that followed does not move to fill the space, so a blank remains whose width is exactly that of the deleted text, and that width carries information. In our own tests, the test ID number 12345678Z with a space on each side, set in 11-point Helvetica, leaves a gap of 61.765 points, and twenty common Spanish first names in the same font and size come out at twenty different widths. With a short list of candidates, measuring the gap can be enough to work out which word was removed.
This is not only our observation. A study, "Story Beyond the Eye: Glyph Positions Break PDF Text Redaction", by Maxwell Bland, Anushya Iyer and Kirill Levchenko (University of Illinois Urbana-Champaign), circulated as an arXiv preprint in 2022 and published in 2023 in Proceedings on Privacy Enhancing Technologies. It examined eleven PDF redaction tools, Adobe Acrobat among them. Two left the text marked for redaction inside the file; the other nine removed it but kept traces of its position: at least the width of the gap and, in several, the displacement of the neighbouring letters. Using that, the authors narrowed down the redacted names in hundreds of real redactions in official reports and freedom-of-information responses from the United States. They did not recover the text outright: they ruled out candidates from a list, and in only a few cases was a single possible name left.
The same study also measured the cruder failure at scale. It reports more than 6,000 redacted names, in more than 700 publicly accessible court documents, where the redaction had not removed the text at all, so the names could be read by copying and pasting.
This applies to us too, and we say so because it is true. TachadoPDF removes the text from the file but does not close up the line, so the gap stays. The report says so in plain words and, if it matters for a particular document, tells you to convert it to an image before you send it. The study found that turning the page into an image appears to be an effective defence, although some of the tools that did so still leaked the approximate width of the text.
How can I check whether my own redaction can be undone?
Run the copy-and-paste test on the finished file, the one you are about to send:
- Open the redacted PDF.
- Select across the black box, or select the whole document with Ctrl+A (Cmd+A on a Mac), and copy.
- Paste into a plain text editor and search for what you meant to remove.
If the words appear, they were covered, not deleted. If the document is a scan or a photo, also raise the brightness and contrast over the black area and see whether anything shows through. This quick test catches the most common failure, the box laid over live text. It cannot see the others: the gap, a bookmark, an attachment, the metadata or a switched-off layer do not show up by eye.
For a more thorough read of the page text, use the free checker on this site. It opens the PDF in your own browser, so the file is never uploaded, and lists which of the data formats it recognises are still extractable and on which pages. It looks for email addresses and Spanish identifiers, not for names, and it names the pages that have no text layer, which it cannot read and which need checking by eye. For the metadata, bookmarks and attachments, the free PDF metadata tool shows what the file carries and offers a clean copy.
What does it take for data to disappear for real?
The data has to be removed from the contents of the file, not covered. If it sits on a scanned image, the pixels of that area have to be cleared. And then someone has to reopen the finished file and search again to confirm it is gone. That last step is what separates a reliable redaction from an assumption.
TachadoPDF removes the text and clears the pixels of the areas you mark, then reopens the file it produced and re-reads the text of its pages, its metadata and the other text strings it keeps inside. Automatic detection covers email addresses and Spanish identifiers; anything else you mark by hand. If something comes back, the download is blocked and you are told which page. If something cannot be checked, such as a scanned page, the report says so instead of marking it clean. And where the method itself has a limit, the gap, the report states it rather than leaving it out. The rule in the end is simple: do not trust that data "does not show"; check that it is no longer inside the file.
Frequently asked questions
Can a redacted PDF be unredacted?
Sometimes, depending on how it was redacted. If the redaction is only a black box over live text, the text is still in the file and copies straight out. If the text was truly removed, the words are gone, but the gap they occupied can still help narrow down what they said.
How do I see the text under a black box in a PDF?
Select across the black box, copy, and paste into a plain text editor: if the box only covered the text, the words appear. That is a check for your own documents. On a scanned page, raise brightness and contrast over the box. Use it on files you are about to send, to find out whether the redaction would hold.
Does real redaction leave any trace?
Yes, it can leave the gap. When text is truly removed, the words that followed do not move, so a gap of the exact width remains, and that width can help rule out candidates from a short list. A study found position traces in all nine tools that removed the text. TachadoPDF does too, and its report says so.
Is a black box over a scanned document safe?
Not on its own. On a scan, a box added in a PDF editor is one image laid over another, so it can often be lifted off, or the contrast raised until what lies beneath shows through. If the scan was made searchable, invisible text may also sit under the picture. The pixels of that area have to be cleared.
Sources
- United States v. Manafort docket: the redacted and corrected filings of 8 January 2019 (CourtListener)
- Mother Jones, 8 January 2019: Paul Manafort's lawyers tried and failed to redact a filing
- Bland, Iyer and Levchenko: "Story Beyond the Eye: Glyph Positions Break PDF Text Redaction" (arXiv 2206.02285)
- The same study in Proceedings on Privacy Enhancing Technologies, 2023 (DOI)