To find credit card numbers on your computer, check three places: your browsers' saved payment methods, your documents and downloads (statements, receipts, order confirmations, spreadsheets and text notes), and saved email. Browser cards can be reviewed in each browser's settings in a minute. Documents are harder, because Windows search does not look for card-number patterns, so you either search by file name and keyword, run a pattern search in PowerShell for plain-text files, or use a tool that reads inside Word, Excel and PDF files and checks each number is a valid card.
Card numbers end up on PCs more often than people expect: a note with a card "just for now", a spreadsheet of business expenses, a scanned statement, a forwarded booking confirmation. Here is how to find them and what to do once you have.
Where card numbers usually hide
| Location | Typical examples |
|---|---|
| Browser payment methods | Cards saved in Chrome, Edge, Firefox, Brave, Opera or Vivaldi |
| Browser autofill | Form entries remembered from checkout pages |
| Downloads folder | Statements, invoices, booking confirmations as PDF |
| Documents and Desktop | Expense spreadsheets, letters, text notes, CSV exports from banking sites |
| Saved email | .eml and .msg files, and mail stored by desktop email programs |
| Scans and photos | Photos or scans of the front and back of a card |
| Cloud-synced folders | Copies of all of the above in OneDrive, Dropbox or Google Drive |
Step 1: Check your browsers
This is the most common place, and the easiest to fix.
- Chrome: open
chrome://settings/payments(or Settings > Autofill and passwords > Payment methods). Each saved card has a menu with a remove option. - Edge: open Settings, type "payment" in the search box and open the payment methods page. Edge manages saved cards in its Wallet.
- Firefox: go to Settings > Privacy & Security, scroll to Autofill and click Saved payment methods.
Check every browser profile, not just the one you use most. Cards saved to a Google or Microsoft account are stored there too, so remove them while signed in to sync. Our guide to deleting autofill data and saved credit cards has the full steps for each browser.
Step 2: Search your files by name and keyword
Open File Explorer, go to your user folder (or This PC for every drive) and type words that usually appear in file names or contents:
statement,invoice,receipt,booking,confirmationvisa,mastercard,amex,card- The last four digits of your cards
Windows can search inside file contents for indexed locations (your user folders by default). To include more locations, go to Settings > Privacy & security > Searching Windows in Windows 11 (or Settings > Search > Searching Windows in Windows 10) and choose Enhanced, then let indexing finish. Content search finds words, not number patterns, so searching for the last four digits is the most reliable trick here.
Step 3: Pattern search in plain-text files
For text, CSV and similar plain files, PowerShell can search for anything shaped like a card number (13 to 19 digits, possibly separated by spaces or dashes). Open Windows PowerShell or Terminal and run:
Get-ChildItem $env:USERPROFILE -Recurse -Include *.txt,*.csv,*.md,*.json -ErrorAction SilentlyContinue | Select-String -Pattern '\b(?:\d[ -]?){12,18}\d\b' | Select-Object Path, LineNumber
This lists the file and line for every match. Two limitations:
- It cannot see inside .docx, .xlsx or .pdf files, because those are compressed or encoded. Open likely files manually and use the program's own Find.
- It returns false positives such as order numbers, tracking numbers and phone numbers. Real card numbers pass a checksum called the Luhn check; most other long numbers do not.
Step 4: Don't forget images
A photo of a card or a scanned statement is just pixels, so no text search will find it. Browse your Pictures, Downloads and scanner output folders by thumbnail, sorted by date, and look for card-shaped images and statement pages.
Step 5: Deal with what you find
- Decide what you need. Most people do not need any file containing a full card number. For statements you must keep, your bank's online archive is usually enough.
- Delete securely. Pressing Delete only moves a file to the Recycle Bin, and emptying it leaves the data recoverable until overwritten. See how to permanently delete files in Windows.
- Check the cloud. If the file was in OneDrive, Dropbox or Google Drive, delete the cloud copy and empty the cloud recycle bin too.
- Check email. Delete the message in your mailbox, not just the downloaded attachment.
- If a card may have been exposed (for example, a shared or stolen PC), call your card issuer and ask for a replacement number. Deleting files cannot undo an exposure that already happened.
Card numbers are often found alongside other personal data. Our guide to finding personal information stored on your PC covers ID numbers, tax documents and more.
Finding card numbers with Evidence Wipe
Evidence Wipe's Sensitive Data Discovery does steps 2 and 3 in one scan. It reads inside .docx, .rtf, .odt, .pdf, .xlsx, .ods, .csv, .txt, .md, .json, .html, .eml and .msg files, looks for card numbers and checks each one with the Luhn algorithm to cut out false positives. It also flags bank and IBAN numbers, US Social Security numbers, passport and ID numbers and passwords. Results are masked on screen, so you are not displaying full numbers while you review them, and you can shred a file in one click.
Its Selective Browser Cleaning can remove saved payment cards from each browser profile separately, and Real-Time Alerts can notify you when a new download contains card numbers. Scanning and Sensitive Data Discovery are free; shredding needs the Installation Key. Everything runs on your PC and nothing is uploaded. Like the PowerShell method, it does not read numbers from photos or scanned images, so step 4 still applies.
Frequently asked questions
Can Windows search find credit card numbers?
Not by pattern. Windows search finds words and file names, so searching for the last four digits of your card is the most reliable built-in method.
What is the Luhn check?
It is a checksum that every valid card number passes. Checking it filters out order numbers, phone numbers and other long numbers that only look like cards.
Is it safe to keep my card saved in my browser?
Browsers protect saved cards, but anyone using your unlocked account can often use them. If you rarely shop on that PC, removing saved cards reduces the risk.
