# How to see where a file was downloaded from on a Mac

Source: https://trygander.app/where-did-i-download-this-file-mac  
Updated: 2026-11-13

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

1. Select the file in Finder.
2. Press <kbd>⌘</kbd><kbd>I</kbd>, or right-click and choose **Get Info**.
3. 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

1. Press <kbd>⌘</kbd><kbd>F</kbd> in a Finder window.
2. Click the first pop-up menu in the rule row and choose **Other…**.
3. Find **Where from**, tick it, and click OK.
4. 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](https://trygander.app/) 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.

## Keep reading

- [Find files by date](https://trygander.app/find-files-by-date-mac): Files from last week or last month: Finder rules, typed keywords, Smart Folders and Terminal.
- [Deleting .dmg files](https://trygander.app/delete-dmg-files-after-installing): Yes. A .dmg is only the package the app arrived in. How to remove them, and when to keep one.
- [Free up space on a Mac](https://trygander.app/free-up-space-on-mac): A checklist that gets disk space back without deleting something you need.
