Where are iMessage photos and attachments stored on a Mac?

Short answer

Photos, videos and files from Messages on a Mac are in the Attachments folder at ~/Library/Messages/Attachments, inside numbered subfolders that do not show the conversation name. You need to open the Library folder (Go menu, hold Option) and your app needs Full Disk Access, and files that never downloaded from iCloud will not be there.

TextExhibit PDF page with two photos shown in place, each with file name, size and SHA-256 hash, and a reply quoting the message it answers
Photos in place with file name, size and hash, and a reply that quotes its message. From an export of made-up sample messages.

Finding the folder

  1. In Finder, hold Option and open the Go menu, then choose Library.
  2. Open Messages, then Attachments.
  3. Expect folders named with two digits, then long random-looking names.

Why it is hard to browse

  • Files are named by the sender’s device, often IMG_1234.HEIC or a long hash.
  • Nothing in the folder tells you which conversation a file belongs to; the link is in chat.db.
  • Some attachments are stored in formats such as HEIC or MOV that need conversion for some uses.

Easier ways to get one conversation’s files

  • In Messages, open the conversation, click the name, then the info panel to see Photos, and drag them out.
  • Export the conversation with TextExhibit: photos appear inline in the PDF, and other attachments are copied to a folder next to the export with their message time noted.

Missing files

If Messages in iCloud is on with Optimize Storage, a Mac may keep a small preview and download the original only when you open it. Open the conversation and scroll to trigger the download. See attachments could not be found.

Reading the numbered folders

Inside Attachments you will see folders with two-digit names, then folders with long names, then the file. The structure exists to keep any one folder from getting enormous; it does not mean anything about the conversation. To connect a file to a thread you need the database, which is what an export app does for you.

File types you will meet

  • HEIC for iPhone photos, which Preview opens and which can be converted to JPEG.
  • MOV or MP4 for video.
  • CAF for audio messages, which QuickTime and some players open.
  • PDF, contacts and other files shared as-is.

What to keep in mind

  • The folder can be tens of gigabytes. See storage full of Messages.
  • Do not delete files here by hand; the database still points to them.
  • Folder names and layout are Apple’s and can change.

Questions

Can I move the Attachments folder?

Apple does not support moving it. Use Messages’ own cleanup or free space elsewhere.

Are voice messages in there?

Yes, as audio files, until they expire.

Do deleted attachments stay on disk?

Normally they are removed when the message is, but the Mac may keep some until cleanup.

Sources

Export the whole conversation

TextExhibit turns a conversation into one PDF with exact times, names and numbers, photos in place and page numbers, on your Mac. Free to preview; $24.99 once to export.