Slack Search Operators

Search operators to find messages, files, and conversations in Slack.

27 operators across 5 categories

Tips & Notes

  • Combine operators with spaces for AND logic.
  • Search results respect channel permissions—you won't see private channel messages you're not in.
  • Use quotes for exact phrase matching.
  • Date operators use your local timezone.
  • Search also indexes file contents (PDFs, docs, etc.) when available.

People & Channels

OperatorDescriptionExampleCopy
from:Find messages from a specific userfrom:@johndoe
from:meFind your own messagesfrom:me meeting
to:Find direct messages to a specific userto:@jane
in:Find messages in a specific channel or DMin:#engineering
in:@Find messages in a DM with a specific userin:@manager

Date Filters

OperatorDescriptionExampleCopy
before:Find messages before a datebefore:2024-01-15
after:Find messages after a dateafter:2024-06-01
on:Find messages on a specific dateon:2024-03-15
during:Find messages during a month or yearduring:january

Content Type

OperatorDescriptionExampleCopy
has:linkFind messages containing URLshas:link from:@dev
has:reactionFind messages with any reactionhas:reaction in:#announcements
has::emoji:Find messages with a specific reactionhas::thumbsup:
has:starFind your starred messageshas:star
has:pinFind pinned messageshas:pin in:#general
is:savedFind your saved messagesis:saved
is:threadFind threaded messages onlyis:thread from:me

File Search

OperatorDescriptionExampleCopy
type:fileFind all shared filestype:file in:#design
type:imageFind shared imagestype:image mockup
type:pdfFind shared PDFstype:pdf contract
type:docFind shared documentstype:doc proposal
type:spreadsheetFind shared spreadsheetstype:spreadsheet budget
type:videoFind shared videostype:video demo
ext:Find files with a specific extensionext:sketch

Boolean & Exact Match

OperatorDescriptionExampleCopy
"exact phrase"Find an exact phrase"deploy to production"
ORMatch either termbug OR issue in:#support
-Exclude a termmeeting -standup
*Wildcard for partial matchesdeploy*