You know the file is on your Mac, you even remember the name, and Spotlight finds nothing. If it’s packed in a zip or a disk image, that’s expected.
Apple’s page on unexpected search results covers this case: to find a file in an archive, such as a disk image or a zip file, double-click the archive to open it, then search again.
double-click backup-2025.zip unpacks it next to the zip
double-click installer.dmg mounts it as a volume
Command-Space, search again
A zip unpacks into a normal folder, which Spotlight then indexes like any other. A disk image shows up as a volume, and its files become searchable while it’s mounted.
This explains a common confusion with old project archives and exported backups. The zip itself shows up in a search by its own name, but the documents inside it don’t, so a search for a file name inside the archive comes back empty.
If you keep archives on purpose, I’d give them names that describe what’s inside, like tax-2025-receipts.zip, so a search for the archive itself gets you close.
Indexing an unpacked folder can take a moment, especially a big one, so the first search right after unpacking may still miss things. Apple also mentions Time Machine: files that are only in a backup can be found with Spotlight together with Time Machine, not in a normal search. And when you’re done with an unpacked copy, delete it, or you’ll have the same files twice.
Further reading: If searching your Mac returns unexpected results (Apple)