Free tool · no signup · runs in your browser

Slack Mention & Link Formatter

Build the tokens Slack needs in messages your app sends: user and channel mentions, user groups, @here, and links with custom text. Compose and preview a message, copy the JSON, or paste one to see what each token means.

Build a token

Finding it: In Slack, open the person's profile, click the three-dot menu and choose Copy member ID. Apps get it from users.list or from event payloads.

<@U012AB3CD>

Compose the message

Type around the tokens. For bold, lists and Markdown conversion use the Slack message formatter.

Heads up <!subteam^SAZ94GDB8>: the deploy to <#C123ABC456> is done. <@U012AB3CD>, release notes are <https://example.com/notes|here>. Questions &amp; feedback welcome.

Decode a message

Every <...> token is explained, in order.

Runs in your browser. Nothing is posted to Slack; IDs and messages stay on this page.

Why names do not work in app messages

When a person types @jane in Slack, the client turns it into a mention before sending. A message posted through chat.postMessage or an incoming webhook skips that step: Slack leaves names in the top-level text alone unless you set link_names to 1, and even then a renamed person or channel breaks the message. Slack's own advice is to use IDs, which never change. Each token above is the ID wrapped in the syntax Slack documents, so the mention works whatever the person or channel is called today.

Who each mention notifies

  • A person (<@U012AB3CD>) is notified only if they are a member of the channel. An app cannot add them or force the notification.
  • A user group (<!subteam^SAZ94GDB8>) notifies every member of the group.
  • A channel link (<#C123ABC456>) notifies nobody. People without access to a private channel see it as “private channel”.
  • @here, @channel, @everyone reach active members of the channel, all members of the channel, and every non-guest in #general respectively.

A bot that pings @channel for every deploy teaches people to mute it. A user group for the team that owns the service is usually the right size. When an alert really does need the whole channel, post it once with <!channel> and keep the follow-ups in a thread, so each update does not notify everyone again.

Escaping, links and notifications

Slack reserves three characters. Write & as &amp;, < as &lt; and > as &gt;, and nothing else; Slack decodes only those three. A URL with a space in it breaks, so the builder encodes spaces in links as %20. If your message also has blocks, keep the top-level text meaningful: Slack uses it for mobile notifications, which never read the blocks.

This tool covers mentions and links only. To turn Markdown or AI output into Slack's mrkdwn and check Block Kit, use the Slack message formatter; for dates that appear in each reader's time zone, use the Slack date formatter. Posting limits are on the Slack API limits page.

Mentions in text, blocks and attachments

The same tokens work in the top-level text field, in Block Kit text objects of type mrkdwn, and in attachment fields listed in mrkdwn_in. The difference is automatic parsing. In top-level text it is off unless link_names is 1; in a block's mrkdwn text object it is on unless you set verbatim to true. A plain_text object shows every token literally, which is why a mention that works in one place can appear as raw <@U012AB3CD> in another. If you build messages from user input, escape that input first and add your tokens after, so a user cannot inject an <!everyone> of their own.

When the bot posts but nobody sees it

If a message with correct tokens never arrives, the problem is upstream: a missing scope, a bot that is not in the channel, or an expired token. The guide to a Slack bot that is not responding walks through each one. To build a bot that answers questions and mentions the right people without writing the code, see the Slack chatbot builder.

Frequently asked questions

How do I mention a user in a Slack message sent by an app?

Write <@ followed by the member ID and >, such as <@U012AB3CD>. A typed @name is only text in a message sent through the API, because Slack does not parse names in the top-level text unless you set link_names, and names change anyway. Slack shows the person's current display name, and notifies them only if they are a member of that channel.

What is the difference between @here, @channel and @everyone?

In an app message they are written <!here>, <!channel> and <!everyone>. @here notifies members of the channel who are active at that moment. @channel notifies every member of the channel, active or not. @everyone notifies every member of the workspace's #general channel who is not a guest. Slack asks apps to use them sparingly and prefer a person or a user group.

How do I mention a user group in Slack via the API?

Use <!subteam^ID>, for example <!subteam^SAZ94GDB8>, with the group's ID rather than its @handle. Every member of the group is notified. You can find the ID with the usergroups.list method or in the address of the group's profile page when Slack is open in a browser. The handle on its own is not parsed in an app message.

How do I add a link with custom text in Slack?

Put the URL and the text in angle brackets separated by a pipe: <https://example.com|Read the notes>. An email link works the same way with mailto:, as in <mailto:[email protected]|Email us>. A URL that contains a space breaks, so encode spaces as %20. This builder does that for you and escapes any &, < or > in the link text.

Which characters do I need to escape in Slack messages?

Only three: & becomes &amp;, < becomes &lt; and > becomes &gt;. Slack uses them to mark tokens, so a bare < can swallow the text that follows. Do not HTML-encode anything else, such as quotes, because Slack decodes only those three. The Escape button in the composer fixes bare characters without touching the tokens you built.

Why does my mention show as plain text or not notify anyone?

Plain text usually means the message used a name, such as @jane or #general, instead of an ID token. No notification usually means the person is not a member of the channel; Slack says apps cannot add them or force a notification. In blocks, a text object with verbatim set to true also stops parsing. Paste the message into the decoder to see what Slack will read.

Related

Let a bot do the mentioning

Build a Slack chatbot that answers questions, routes requests to the right group and posts updates. No code, free plan.