Find Hidden Text in PDF: Where It Hides and How to Check
To find hidden text in a PDF, use the file the way a computer does: select all, search for a word, then copy everything and paste it into a plain text editor. Text you can’t see on the page, because it’s under a box, colored white, past the edge or behind a scan, is still text in the file, and these tests are how it comes out.
Key takeaways
- Text can sit in a PDF without showing: under a box, in white, off the edge of the page, or behind a scan.
- Three tests can bring it out: select all, search for a word, and copy and paste into a plain text editor.
- The tests only see real text. Words that are part of a picture won't show up in any of them.
- To clear what you find, use Acrobat's redact and sanitize steps, or fix the original document: Word's Inspect Document finds some hidden text, but not white text.
Where does text hide in a PDF?
A PDF keeps its text as text, whatever is drawn over it and whatever color it’s set in. That’s how a page can show one thing and hold another.
| Where it hides | What you see | Why it’s still there |
|---|---|---|
| Under a box | A black rectangle | In many editors the box is a shape on top; the words stay underneath |
| In white | Blank space | The words are set in the page’s color, but they’re still words |
| Off the page | Nothing | The words sit past the edge, where no one looks |
| Behind a scan | A picture of paper | Only if the scan went through OCR, which adds a text layer |
The box is the one that catches people out. Anyone who gets the file can copy the covered words. So that’s the first test for any editor or PDF anonymizer: the covered words have to be gone from the file, not only out of sight.
The scan is the odd one. A scanner makes a picture, with no text in it. But Adobe says OCR converts scanned images of text into machine-readable text, adding a searchable text layer while preserving the original layout. So a scan that’s been through OCR can look like a plain picture and still hold every word.
Some details don’t live on the page at all. Adobe’s help lists comments, metadata and hidden layers as information that isn’t visible in the file, and a form can hold typed-in answers you’ve forgotten about.
What does hidden text look like when you find it?
Say a termination letter went out with two lines blacked out. You paste the whole file into a text editor and get this:
Termination letter for Tomasz Wrona
Final pay to account GB29 NWBK 6016 1331 9268 19
Questions to tomasz.wrona@example.com
On the page, the second and third lines were behind black boxes. In the file, they were plain text.
How do you find hidden text in a PDF?
Run the tests in order. None takes long.
- Select all. Open the PDF and press Ctrl-A (Command-A on a Mac). Real text gets highlighted. Look for highlighting over a black box or over empty space. On a Mac, the page on how to redact a PDF on a Mac runs the same check in Preview.
- Search. Press Ctrl-F (Command-F on a Mac) and type a word or number you’d expect under a box. If the viewer finds it, it’s in the file.
- Copy and paste. With everything selected, copy and paste into a plain text editor. You see the file’s text in reading order, with no boxes and no colors, so white text reads like any other line.
- Look at the file’s properties. Hidden details aren’t only on the page. Adobe’s page says to open the PDF in Acrobat, choose File, then Properties, then the Description tab, where the title, author and creation date are shown. In Preview on a Mac, click the Info button: Apple says the Inspector shows details such as file size and the author name.
- Try a second viewer. Viewers differ. If select-all does nothing, or a test comes up empty when you expected something, open the file in another app or in your browser and run the tests again.
There’s one limit. These tests only see real text. If the words you’re after are part of a picture, such as a scan with no OCR layer, none of the tests will find them, and that doesn’t mean nothing is there. To tell whether you have a scan, try to select a word. Adobe says that if you can’t select or highlight text, the document is likely a scanned PDF.
What if a test finds text you didn’t expect?
Then it’s in the file, and anyone can get it out the same way. If you haven’t sent it yet, don’t.
You have a few ways to go:
- Your PDF app’s own tool. Adobe’s help describes a sanitize step in Acrobat’s Redact a PDF tool that removes information not visible in the file, such as comments, metadata or hidden layers, and says the tool is available only in Acrobat Pro, Premium or Studio. Adobe’s blog describes two choices there: Selectively remove, which examines the file and shows you what it found, and Remove all. Neither page mentions white text or text off the page, so run the tests on the result anyway.
- Preview on a Mac. Apple’s Redaction Selection tool is described as “Select text to remove it from view”, and the redaction becomes permanent when you close the document. Apple’s page doesn’t say what becomes of the text inside the file, so test the result.
- The original document. If the PDF came from Word, the cleanest fix is there. Microsoft’s Inspect Document finds comments, tracked changes, document properties and text formatted as hidden, and Microsoft says to run it on a copy. It can’t detect text hidden by other methods, such as white text on a white background, so read the document for that yourself before you make a new PDF.
How do you know the cleaned file is clean?
Run the same tests on the new file, not on the one you started with. A box that looks solid proves nothing; a search that finds nothing, and a select-all that highlights nothing under the box, are the real signs. Check the properties again too, because covering text on the page leaves the author name where it was.
If you don’t have Acrobat or a Mac, an online PDF editor with a redaction tool is another route. The page on redacting with an online editor lists what to check in one.
For scans, including ones with an OCR layer, see how to redact a scanned PDF.
What should you do before you share a PDF?
Make the tests a habit, on every file you send.
- Run them on the finished file, not the original. Search again for every word you covered.
- Look at what the file carries, not only the page. The page on how to remove personal information from a PDF covers the details a file holds behind the page.
- If your app has no redact tool, or the tool seems to do nothing, see why you can’t redact a PDF.
Questions people ask
How do I find hidden text in a PDF?
Open the file, press Ctrl-A (Command-A on a Mac) to select all, search for a word you expect, then copy everything and paste it into a plain text editor. Anything that turns up there but not on the page is hidden text.
Can text really be under a black box?
Yes. In many PDF editors a box is a shape drawn on top, and the text underneath stays in the file. If you can select or search the covered words, they're still there.
Can text sit outside the page?
Yes. A PDF can place text beyond the edge of the page, where you can't see it. Viewers differ in what they let you select out there, so run all three tests, and try a second viewer if they come up empty.
Does a scanned PDF have hidden text?
Sometimes. Adobe says OCR adds a searchable text layer to a scan while preserving the original layout. If a scan has been through OCR, its text can be selected and searched even though you see only a picture.
How do I get rid of hidden text I find?
If your app has a redaction tool, use it and apply the redactions. Adobe says Acrobat's sanitize step removes information that isn't visible in the file, such as comments, metadata or hidden layers. If you have the original document, fixing it there and making a new PDF is another way.
Does Word's Inspect Document find white text?
No. Microsoft says it finds text formatted with the hidden font effect, but it can't detect text hidden by other methods, such as white text on a white background.
Related
Sources
- Remove Sensitive Information (Adobe Experience League), checked November 7, 2026
- Remove sensitive content by sanitizing and redacting (Adobe Acrobat blog), checked November 7, 2026
- OCR PDF online (Adobe Acrobat), checked November 7, 2026
- Redact a PDF in Acrobat (Adobe Experience League), checked November 7, 2026
- Remove hidden data and personal information by inspecting documents, presentations, or workbooks (Microsoft Support), checked November 7, 2026
- View information about PDFs and images in Preview on Mac (Apple Support), checked November 7, 2026