Extract @ Handles / # Hashtags from Text

Extract @ handles and # hashtags from social media text, chat logs, or any document. Configurable: separate mentions vs hashtags, deduplicate, sort by frequency.

How to use the Extract @ Handles / # Hashtags from Text

Paste social posts or chat text. The tool finds @mentions and #hashtags, keeps the two as separate lists, removes duplicates, and can sort by frequency so the most-used appear first. Copy either list with one click.

Separating mentions and hashtags from social text

Posts, chat logs, and community exports weave @handles and #hashtags into ordinary prose. More often than not you want them as two clean lists — who was mentioned, which tags were used — without the surrounding words getting in the way.

This tool pulls both kinds of token, keeps mentions and hashtags apart, deduplicates each, and counts frequency so the most-tagged person or most-used tag rises to the top. For plain links and email addresses instead, use the URL & email extractor; for just the domains in a block of links, the domain extractor.

Common use cases

  • Community management — list everyone @mentioned in a long thread.
  • Campaign tracking — count which #hashtags appeared most across a set of posts.
  • Moderation — surface the handles referenced in a report or chat log.
  • Content repurposing — collect the tags from one post to reuse on the next.
  • Analytics prep — turn a raw chat export into mention and hashtag columns.

Frequently asked questions

Does it understand Twitter, Slack, and Discord syntax?

Yes. It matches @ and # tokens generically, which covers mentions and tags on Twitter/X, Mastodon, Slack, and Discord.

Are mentions and hashtags kept separate?

Yes — they come back as two distinct lists rather than one mixed set.

Does it remove duplicates?

Each unique handle or tag is listed once, with an optional frequency sort so the most common appear first.

What about tags with hyphens or underscores?

Tokens like #developer-tools and @carol_dev are recognized; hyphens and underscores inside a tag or handle are kept.
Embed this tool on your site

Free to embed, no attribution required (but appreciated). Paste this where you want the tool to appear: