Buy Now

Find files4 min read

How to see where a file was downloaded from on Mac

Your Mac remembers the website or email service behind most downloads. How to see it in Get Info and Terminal, search by it, and remove it before sharing a file.

Short answer

Select the file in Finder and press ⌘I. Under More Info, the Where from line shows the address it was downloaded from, and often the page you were on. In Terminal, mdls -name kMDItemWhereFroms file.pdf prints the same thing, and mdfind can list every file from one site.

When a browser saves a download, macOS attaches a small note to the file: the address of the file itself and, usually, the page that linked to it. It stays with the file when you move or rename it. That makes it one of the most useful clues when you’re looking at a mystery PDF, or looking for one: “it was an attachment in Gmail”, “someone sent it on Slack”, “I made it with ChatGPT”.

See it in Get Info

  1. Select the file in Finder.
  2. Press ⌘I, or Control-click and choose Get Info.
  3. Open the More Info section if it’s collapsed and look for Where from.

You’ll often see two lines. One is the direct address of the file, which can be long and full of codes. The other is the page you downloaded it from, which is usually the more readable clue: mail.google.com, app.slack.com, chatgpt.com, a shop’s order page.

If there’s no Where from line, the file didn’t come from a browser download: you created it, copied it from a drive or another Mac, or the app that saved it didn’t record a source.

See it in Terminal

mdls prints a file’s metadata. Ask for just the download source:

mdls -name kMDItemWhereFroms ~/Downloads/Invoice-2041.pdf

Downloads also carry a quarantine note, the flag that makes macOS ask “Are you sure you want to open it?” for apps from the internet. It records which app saved the file:

xattr -p com.apple.quarantine ~/Downloads/Invoice-2041.pdf

The output looks like 0083;6745c1d2;Safari;…. The third part is the app: Safari, Google Chrome, Firefox, Slack and so on.

Finder can show Where from, but it can’t search by it. Spotlight’s index has it, though, so mdfind can:

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

Replace the address with any site: slack.com, wetransfer.com, drive.google.com, chatgpt.com. To search one folder, add -onlyin ~/Downloads after mdfind, and add c after the closing quote to ignore upper and lower case:

mdfind -onlyin ~/Downloads 'kMDItemWhereFroms == "*wetransfer*"c'

Remove it before you share a file

The note can say more than you’d like. A link to a private document, a shared folder or an internal tool can end up inside a file you pass on, for example when you compress files on a Mac and send the zip. To remove it from one file:

xattr -d com.apple.metadata:kMDItemWhereFroms ~/Downloads/Report.pdf

Removing it changes nothing in the file’s contents. The file just won’t remember where it came from.

Leave quarantine alone

Don’t remove com.apple.quarantine from apps you downloaded to get around macOS’s warning. That check is there to stop software that hasn’t been signed and checked by Apple.

See all your downloads by source in Findy

Looking up one file at a time works, but the real use of this note is the opposite question: “show me everything I got from Gmail”. Findy reads the download source of every file in your folders and groups them in its Downloaded From view (⇧⌘J):

  • Gmail, Outlook, Google Drive, Dropbox, OneDrive, iCloud and WeTransfer;
  • Slack, WhatsApp, Telegram, Discord and Facebook;
  • ChatGPT, Claude and Gemini;
  • GitHub, Figma, Canva, Notion, X, LinkedIn, Instagram, YouTube and browser extensions;
  • every other website under Any website, by its address.

Each source shows how many files came from it, how much space they take and when the last one arrived. Above any list there’s a From menu to narrow it to one source, and you can put the source straight into a search:

  • pdfs from gmail last week
  • images from chatgpt
  • documents from slack
  • downloaded yesterday

Findy only reads this note on your Mac. It doesn’t visit the addresses or send them anywhere.

Questions

Why does Where from show two addresses?

The first is usually the file’s own download address, the second the page that linked to it. The page is often the more useful one, because download addresses are long and temporary.

Why don’t some files have a Where from?

Only downloads get one. Files you created, copied from a drive or another Mac, or saved from an app that doesn’t record it have no source to show.

Does Where from survive renaming and moving?

Yes, on your Mac. It’s stored with the file, so it stays when you rename it or move it to another folder. It’s usually lost when the file is uploaded somewhere and downloaded again, which gives it a new source.