How to see where a file was downloaded from on a Mac
Every time a browser saves a file, macOS quietly notes the address it came from. That note stays with the file, and you can use it to work out what something is or to find it again.
Look in Get Info
- Select the file in Finder.
- Press ⌘I, or right-click and choose Get Info.
- Open the More Info section. The Where from line shows the address.
There are often two addresses: the file's own link, and the page you were on when you clicked it. For an email attachment saved from a webmail page, the second one tells you it came from your inbox.
Search by it in Finder
- Press ⌘F in a Finder window.
- Click the first pop-up menu in the rule row and choose Other….
- Find Where from, tick it, and click OK.
- Type part of an address, such as
github.
This works, but you have to add the rule every time unless you save the search as a Smart Folder.
Read it in Terminal
mdls -name kMDItemWhereFroms ~/Downloads/invoice.pdf
The answer is the same list Get Info shows. The information lives in an extended attribute on the file called com.apple.metadata:kMDItemWhereFroms.
What records it, and what loses it
- Safari, Chrome, Firefox and most other browsers record it. So do many apps that download files, and AirDrop notes the sending device.
- Files you created yourself, or copied from a USB drive, have nothing to show.
- The note survives moving and renaming the file on your Mac. It is usually lost when the file is emailed, uploaded or put in a zip.
Browse every download by source
Gander reads that note for every file and turns it into a page called Downloaded From: one card per source, such as Gmail, ChatGPT, Canva, GitHub, Slack or any website, with how many files came from each and how much space they take.
It also works in search. pdfs from gmail or images from canva filters by source, and right-clicking any file offers "More from" the place it came from. It is the quickest way to find an invoice when you remember who sent it but not what it was called.
FAQ
Can I remove the "Where from" information?
Yes. In Terminal, run xattr -d com.apple.metadata:kMDItemWhereFroms followed by the file's path. Do this before sharing a file if the address would reveal something you would rather keep private.
Does the "Where from" address get shared when I send the file?
Usually not. Email, messaging apps and web uploads send the file's contents without its extended attributes. AirDrop and copying to another Mac-formatted disk can keep them.
Why is "Where from" missing on my file?
The app that saved it did not record one, or the file was created on your Mac, came from a disk, or was unpacked from an archive.