How do I find the screenshots that show a password or card number?
Find screenshots that show passwords or card numbers
Updated Tested on macOS 26.6.2. Not yet tested on macOS 27.
Your Mac can only search for a word. Photos’ text search and Spotlight’s Live Text search find a screenshot that says “password”, not a card number on its own. To find the secrets themselves, an app has to scan your folders: Redact Guard and VaultSort Guardian do it on your Mac, and so does DejaShot’s Exposure Scan.
Somewhere in years of screenshots is one of a Wi-Fi password, a card you typed into a checkout, or a code a bank sent you. Before you share a folder, sync it, or share your screen, you want to know which files those are. On a Mac, the built-in tools can only search for a word you type. They find a screenshot that says “password”. They don’t find a card number that nothing labels.
Below: what the Mac’s own search can do, the words to try, and the apps that scan your folders instead. The steps come from Apple’s guides and each app’s own site, checked on 6 November 2026, not from a run for this page. DejaShot is one of the apps, and it’s ours, so weigh that section accordingly.
Can Photos or Spotlight find a password in a screenshot?
Only as a word. Neither looks for what a secret looks like.
Photos. Apple’s Photos guide for macOS Tahoe 26 says you can “search for text within photos to quickly find receipts, documents, and more”. Press ⌘F to reach the search field and type the word. The catch is what Photos holds. It searches your Photos library and nothing else. Apple says Mac screenshots are saved to the Desktop by default, so one taken on your Mac isn’t in Photos unless you import it, and PDFs aren’t kept there at all.
Spotlight. Apple’s iMac guide for macOS Tahoe 26 says: “With Live Text, Spotlight can search for text in images (available in select languages).” Press ⌘Space and type the word, and a screenshot whose text Live Text has read can come up beside your other files.
Spotlight’s Live Text search varies by Mac. In August 2025, Howard Oakley of The Eclectic Light Company found that Spotlight on an older iMac Pro matched words Live Text had read in images, while an Apple silicon Mac on the same macOS 15 found none. He also reports that the text can take hours or days to reach the index. And Live Text reads only the languages Apple lists. So an empty answer from Spotlight doesn’t mean the screenshot isn’t there.
Which words should you search for?
Secrets usually sit next to a word that says what they are. Try each of these, one at a time:
- password, passcode, PIN and Wi-Fi
- card number, CVV, expiry and the names on your cards, like Visa
- IBAN, sort code, routing and account number
- passport, licence or license, and your national ID’s name
- recovery phrase, seed, API key, token and secret
- the last four digits of each card you own, which a receipt or a checkout page often shows on its own
In Terminal, mdfind asks Spotlight’s index for several words at once. Apple’s query syntax uses || for “or”, * as a wildcard and [cd] to ignore case. This lists the files on your Desktop whose text has either word:
Terminal
mdfind -onlyin ~/Desktop 'kMDItemTextContent ==[cd] "*password*" || kMDItemTextContent ==[cd] "*passcode*"'
It reads the same index as Spotlight, so it has the same gaps. A folder that isn’t indexed gives an empty answer, with no warning. The guide to searching inside screenshots, PDFs and photos on a Mac has more of these, and how to check that a folder is indexed.
Why can’t a word search find a card number?
Because a card number isn’t a word. It’s sixteen or so digits, and a search for text needs you to type the text. You can type a word that might sit beside it, or the last four digits of a card you know about. You can’t type “any number that is a real card number”, and Apple’s guides don’t say that Photos or Spotlight looks for one.
That leaves the screenshots with no label: a card photographed on a desk, a number pasted into a chat. A word search walks past those, and past a password with nothing written beside it.
And a search for numbers by shape alone would flag every order number and phone number in your folders. What tells a card number from an order number is a check, such as the card checksum, and that needs an app.
Which apps scan your folders for secrets?
Two apps say on their own sites that they look through folders, on your Mac, for secrets. Their facts are as each site gave them on 6 November 2026. Neither was run for this page.
Redact Guard, by Duc Trung Mai, blacks secrets out of screenshots as they arrive. Its site lists “35+ kinds of secrets out of the box”, among them API keys, private keys, credit cards, IBANs, email addresses and phone numbers, and its opening line names passwords and card numbers too. It watches “Your screenshot folder, Downloads and any folder you choose”, and images copied to the clipboard. The site says “Nothing leaves your Mac”. When it finds a secret, it covers it with a box, an erase, a blur or a mosaic, and replaces the file with the clean copy or saves the copy beside it. Redact Guard costs $19 once, after a 14-day trial, and needs macOS 15 Sequoia or later. Redact Guard’s site doesn’t mention PDFs, and it says files are “Checked the moment they appear”, so ask before you count on it for a folder of old ones.
VaultSort Guardian is part of VaultSort, a file organiser for Mac and Windows. Its page lists four kinds of find: identity documents (“Passports, driver’s licenses, Social Security cards”), financial details (“Bank statements, tax returns, card numbers”), credentials (“Password exports, recovery codes, SSH and API keys”), and medical and legal records. You choose the folders, it runs on your computer with “Zero uploads, zero network calls”, and it reads text inside images. It only reports what it finds. In its page’s words, Guardian “never moves, changes, or deletes anything on its own”. VaultSort costs $24.99 once, its site says, with a lifetime licence for up to 6 devices. VaultSort runs on macOS 12 or later, but its system requirements say Guardian’s “classification by meaning” needs Apple silicon and macOS 14 or later. Its Guardian page doesn’t say whether it reads PDFs.
What does DejaShot’s Exposure Scan find?
DejaShot reads the screenshots, photos, PDFs, documents, spreadsheets and presentations in the folders you choose, on your Mac, scanned pages too. Its Exposure Scan lists each saved item that shows a secret, in the library, in six groups:
| Group | What it looks for |
|---|---|
| Card Numbers | Visa, Mastercard, American Express, Discover, Diners Club, JCB, UnionPay, RuPay and Maestro, each checked as a real card number |
| Bank Accounts | IBANs (checked), US routing and account numbers, UK sort codes and account numbers |
| ID & Passport Numbers | Passport numbers and the machine-readable lines on passports and ID cards (checked), driver’s licences, and national numbers such as the US SSN and the UK National Insurance number |
| Passwords | A labelled password or passcode (“Password: …”) |
| API Keys | Keys from Stripe, GitHub, GitLab, Slack, AWS, Google, OpenAI and Anthropic |
| Seed Phrases | Crypto wallet recovery phrases of 12 to 24 words, checked |
What that means, in plain words:
- Passwords means a labelled password, a line like “Password: …”. That label is what it looks for, so it won’t catch every password. One written on its own, with nothing saying what it is, isn’t in that group. Search for the words around it as well.
- Numbers are checked, not just matched by shape: card and IBAN checksums, passport check digits, valid seed-phrase words. So ordinary numbers, like an order number, aren’t flagged.
- Search results mask every secret the scan found. A search shows “••••4242”, never the whole card number.
Each row names what was found (“Visa card number”), shows the line with the secret masked, and names the saved item and its folder. For each one, you can:
- Quick Look it, to see the file.
- Make Redacted Copy. This works only for images and PDFs. A copy is saved beside the original with every secret blacked out on every page, named like “Invoice (Redacted).pdf”, and the original stays as it is. A redacted PDF is made of page images, so the hidden text is truly gone.
- Move to Trash, with Undo.
- Ignore: “Stop flagging this saved item for this kind of secret. If the file changes, DejaShot checks it again.” Also with Undo.
Documents, spreadsheets and presentations can only be moved to the Trash or ignored. To remove a number from one of those, edit it in the app that made it.
It looks for those six groups only. A name, an address or a face isn’t one of them. Everything stays on your Mac, with no account. It needs macOS 14 or later, on Apple silicon or Intel, and you pay once. The details are on the pricing page.
Which way should you use?
| Way | Finds | Works on | What it does with a find | Cost |
|---|---|---|---|---|
| Photos’ text search | A word you type | Your Photos library | Shows the photo | Built in |
| Spotlight and Live Text | A word you type, once indexed | Images and text PDFs Spotlight has indexed. Varies by Mac | Lists the file | Built in |
| Redact Guard | Secrets, from its list | Screenshots in the folders it watches, and the clipboard | Blacks the secret out | $19 once |
| VaultSort Guardian | Four kinds of sensitive file | The folders you choose | Reports only | $24.99 once, with VaultSort |
| DejaShot’s Exposure Scan | Six groups, numbers checked | Screenshots, photos, PDFs and documents in your folders | Redacted copy for images and PDFs, Trash or Ignore | One-time, see pricing |
The short version. If you remember the word, Spotlight or Photos will do, as long as the file is indexed or in your library. To catch the card numbers no word labels, you need an app that checks the numbers. Whatever you use, black out a number in a copy, then check that it’s really gone before you share it.
Frequently asked questions
Can Spotlight find a card number in a screenshot?
Only as text you type. With Live Text, Spotlight can search for text in images, so the last four digits of a card you own may bring up a screenshot once it is indexed. Nothing in Apple’s guides says it looks for the shape of a card number.
Which passwords does DejaShot flag?
A labelled password or passcode, such as a line that reads “Password: …”. A password written on its own, with no label, isn’t what the Passwords group looks for, so also search for the words that sit around it.
Does moving a screenshot to the Trash get rid of it?
Not until you empty the Trash. DejaShot never deletes files. It moves them to the Trash, where the Finder can put them back. A copy you already sent, shared or synced somewhere else still shows the secret.
Where should you go next?
Once you’ve found a screenshot or PDF to keep but share, redacting a screenshot or PDF on a Mac shows how to black out the number so it’s really gone. If Spotlight finds nothing at all, what to do when Spotlight isn’t finding your screenshots goes through the fixes. There’s a side-by-side of the Mac’s own search in Spotlight and Live Text compared with DejaShot.