Buy Now

Find files6 min read

How to find a file on your Mac when you forgot its name

Lost a file and can’t remember what it was called? Find it on your Mac by its date, kind, size, where it came from or a few words inside it.

Short answer

Search by what you do remember. In Finder, press ⌘F, choose This Mac and add rules for the kind of file and the date. In Spotlight (⌘Space), type a phrase from inside the file. If it came from a website or an email, the Where from line in Get Info tells you. Findy does all of this in one plain-language search, like “pdfs from gmail last week”.

File names are a poor way to remember files. Half of them were chosen by someone else (IMG_4821.HEIC, document (3).pdf, Scan 12 Mar.pdf), and the other half you typed in a hurry. What sticks is the context: it was a PDF, it came in an email, it was sometime last week, and it had the word “deposit” on the first page.

macOS can search by every one of those clues. You just have to ask in the right place. Here are the methods in the order worth trying.

1. Start with Recents and the Downloads folder

If you opened or saved the file in the last few weeks, it’s probably one click away. Open a Finder window and choose Recents in the sidebar. Switch to list view with ⌘2 and click the Date Last Opened column, so the newest files are at the top.

If you downloaded it, open Downloads instead and sort by Date Added. If that column is missing, Control-click any column header and tick it. Date Added is the order files arrived in, which is usually the order you remember them in.

2. Filter by kind, date and size in Finder

Finder can find a file without a single letter of its name. Press ⌘F in any Finder window, click This Mac at the top, then click the + button on the right to add rules:

  • Kind is PDF, Image, Movie, Presentation, Document and so on.
  • Created date or Last opened date is within the last 14 days, or between two dates you pick.
  • File size is greater than 10 MB. This rule is hidden: open the first menu, choose Other… and tick File Size.

Leave the search field empty, and Finder lists every file that matches all the rules. Sort by date and the file you want is often on the first screen. If you’ll need the same search again, click Save and it becomes a Smart Folder in the sidebar that keeps itself up to date.

Tip

Hold ⌥ Option while you click + to add a group of rules set to Any, All or None. That’s how you ask for “PDFs or presentations” in one search, or rule out a kind with None.

3. Search the words inside the file

Spotlight reads the text inside most documents, not just their names. Press ⌘Space and type something you remember from the file itself: a client’s name, an order number, a street, a phrase from the first page. Add kind:pdf, kind:presentation or kind:image to the search to narrow it down.

Spotlight only shows its top few results. To see every match, type the same words into a Finder search window (⌘F) instead, where the list has no limit and you can add the rules from step 2.

This works for PDFs with real text, Word, Pages, Keynote, plain text and most other documents. It doesn’t work reliably for screenshots and scanned PDFs, because their text is part of a picture. If that’s what you’re looking for, see how to search the text in screenshots and in scanned PDFs.

4. Check where it came from

When you download a file with Safari, Chrome and most other browsers, macOS records the address it came from. Select a file and press ⌘I. Under More Info, the Where from line shows the page or the service, such as mail.google.com for a Gmail attachment.

That’s handy when the file is in front of you, but Finder can’t search by it. Terminal can. This lists every file that came from Gmail:

mdfind 'kMDItemWhereFroms == "*mail.google.com*"'

Swap in slack.com, wetransfer.com or any other site. Add -onlyin ~/Downloads after mdfind to look in one folder only. There’s more on this in how to see where a file was downloaded from.

5. If it still won’t turn up

  • The Trash. Open it and search there. Make sure the search is set to Trash and not This Mac.
  • iCloud Drive. With Optimize Mac Storage on, older files may live only in iCloud. They still show up by name, but their contents can’t be searched until they download again.
  • Another app. An attachment you never saved may still be inside Mail, Messages, WhatsApp or Slack. Search in the app itself.
  • A broken Spotlight index. If Spotlight misses files you know are there, rebuild its index. Add your disk to Spotlight’s privacy list in System Settings and then remove it, or run sudo mdutil -E / in Terminal. It can take an hour or more to finish.

6. Describe it to Findy

Everything above works, but each tool only knows one kind of clue, and you have to stitch them together. I built Findy for exactly this problem. You type what you remember in plain words, and it turns the sentence into filters for kind, date, size and source at once, then looks for the remaining words inside the files:

  • pdfs from gmail last week
  • presentations from last month
  • screenshots with wifi password
  • invoices 2024
  • zips bigger than 1 gb older than 6 months

Findy reads the words in screenshots and scanned PDFs with on-device text recognition, knows which downloads came from Gmail, Slack, WhatsApp or ChatGPT, and understands searches in English and 12 other languages. Nothing leaves your Mac. When it finds the file, it’s one click to show it in Finder or drag it into an email.

Questions

Can I search for files by date on a Mac?

Yes. In a Finder search window (⌘F), add a rule for Created date, Last modified date or Last opened date. You can pick “within the last” a number of days, weeks or months, or a range between two dates.

Why doesn’t Spotlight find a file I know is there?

Usually one of four things: the folder is on Spotlight’s privacy list, the file is only in iCloud, the words you’re typing are in an image rather than real text, or the index is damaged. The last one is fixed by rebuilding the index, as in step 5.

How do I find a file I downloaded but never opened?

Open Downloads, sort by Date Added, and look around the day you think it arrived. Files that were never opened have no date in the Date Last Opened column, which makes them easy to spot.