How to

How to search iMessage on a Mac

Messages search finds words. The thing you are looking for is usually a link, a person and a rough time.

Here is what the built-in search can do, where it gives up, and how Sanctuary answers the question you actually have — on your Mac, without uploading anything.

For Mac. Everything stays on your computer.

Also:

Questions this answers

  • What did Maya send me about Lisbon?

    A person and a topic, across every conversation you share.

  • That sample clearing site from the spring

    A link with no words in the message — found by its preview.

  • Which restaurant did the group chat settle on?

    The answer, and the messages that led to it.

  • Who sent me the demo link I forwarded?

    Sent links are searchable too.

Names are made up. The answers come from your own messages.

Search inside the Messages app

The built-in search is the right first stop when you remember a word that was in the message.

  1. Open Messages and click the search field at the top of the conversation list.
  2. Type a word or a name. Recent versions of macOS group the results into conversations, links, photos and documents, so the Links group is often the fastest way to a URL.
  3. Click a result to jump to it inside the conversation, then scroll around it for the context.
  4. To search one conversation only, open it and press Command-F.

Where it gives up

Messages search matches words in message text. It does not know what a link is about unless the words were in the message, so a bare URL someone pasted with “this one” is invisible to it. It cannot combine constraints — everything Priya sent about apartments in the spring — and a common word in a busy group chat returns hundreds of hits with no way to narrow them.

It also only has what is on this Mac. If Messages in iCloud is off or the Mac joined the account recently, older history is not there to search.

Spotlight and the Finder

Spotlight indexes messages, so a distinctive phrase typed into Spotlight can surface a text. It has the same blind spot with links and no sense of who sent what. Attachments people sent you are files on disk under ~/Library/Messages/Attachments, which the Finder can search by name and type but not by sender.

The database underneath

Every message on a Mac lives in one SQLite file, ~/Library/Messages/chat.db. With Full Disk Access granted to Terminal you can query it directly, and people do: the message table holds the text and dates, the handle table maps rows to phone numbers and email addresses, and the chat tables tie them into conversations.

It is a real option for one-off questions if you are comfortable with SQL. It is not a way to search: the text of newer messages is stored as an encoded attributedBody blob rather than a plain column, dates are nanoseconds since 2001, and nothing in the file tells you which of your contacts a handle belongs to.

Search by who, when and what it was about

Sanctuary is a Mac app that reads that database on your machine, resolves handles to the people in your Contacts, pulls out every link anyone ever sent, and keeps the messages around each one. So the question becomes the one you actually have: what did Maya send me about Lisbon? Which restaurant did the group chat settle on before the trip? Who sent me that sample clearing site?

You type it the way you would ask a person, and the answer shows the message it came from so you can check it. Links carry their preview, the sender and the conversation, whether or not the message said what they were.

It stays on your computer

The app reads Messages on your Mac and never uploads them. There is no account and no sync to a server. AI features are optional and run on-device or on a key you provide, and the privacy policy enumerates every request the app can make.

Common questions

Can I search iMessage by sender on a Mac?

Messages search matches words, not senders. Open the conversation and use Command-F to search inside it. Sanctuary searches across everything by person, time and topic together.

Why can't I find a link someone sent me?

Messages search looks at message text, and a pasted URL usually has none of the words you remember. Look in the Links group of the results, or use a tool that indexes links with their previews and senders.

Does deleting a conversation delete it from search?

Yes, from Messages and from Spotlight. Sanctuary keeps what it already indexed until you remove the app's library, and never writes to the Messages database.

Does Sanctuary read SMS and group chats too?

Yes. Everything in Messages on the Mac — iMessage, SMS, and group conversations — plus Apple Mail if you turn it on.

Your personal life should stay yours.

Your library lives on your Mac. Sanctuary itself uploads nothing — there's no account, no sync, no telemetry.

Don't take our word for it: turn off your wifi. Sanctuary still answers.

Want a bigger model? Turn on cloud AI with your own key. Your questions run inside a locked room — hardware the provider can't see into, which your Mac verifies before sending a single word. Off by default.

Find the thing someone sent you six months ago.

Free for 14 days, no card. Then $29 a month, or $275 a year. For Apple Silicon Macs.