Boneyard Tools

Extract Hashtags and Mentions From Text

Paste a social post or any block of text and instantly pull out every hashtag and mention inside it, sorted into two separate lists with live counts. Tags and handles support Unicode letters, digits and underscores, duplicates are folded by case, and a Copy all button grabs both lists at once.

How to extract hashtags and mentions

  1. Paste a caption, tweet, bio or any text with #tags and @handles into the 'Your text' box.
  2. Read the Hashtags list on the left and the Mentions list on the right, each with a count of how many were found.
  3. Copy an individual list, or click Copy all to grab the hashtags followed by the mentions.
  4. Reuse the cleaned lists in a scheduler, spreadsheet or your next post.

Examples

Pull tags and a handle from a post

Big launch #Tag #tag thanks @user!
#Tag
@user

An email address is not treated as a mention

Ping me at ada@host.com about #News and #News2
#News
#News2

Unicode tags work and case duplicates fold to the first

Coffee run #café #Café with @José
#café
@José

Frequently asked questions

What counts as a hashtag or mention?

A hash or at sign that is not glued to a preceding letter, digit or underscore, followed by one or more Unicode letters, digits or underscores. Any punctuation or space, such as the exclamation mark in '#win!', ends the tag.

How are duplicates handled?

They are removed case-insensitively while keeping the first spelling you wrote. So '#Tag' followed by '#tag' collapses to a single '#Tag', and the count reflects one hashtag.

Will an email address be read as a mention?

No. Because the at sign in 'ada@host.com' sits directly after a word character, it is not a mention, so email local parts and domains are safely ignored.

Do non-English and accented characters work?

Yes. Matching is fully Unicode-aware, so tags like '#café', '#日本語' or handles like '@José' are captured intact rather than cut at the first accent.

Are hashtags and mentions kept separate?

Yes. The tool shows two lists side by side, one for #hashtags and one for @mentions, each with its own count. Copy all concatenates them with the hashtags first.

What about hyphens, dots or emoji inside a tag?

Those characters end the tag, matching how most platforms behave. '#well-being' yields '#well', and an emoji after a tag stops it, because only letters, digits and underscores continue a tag.

Does the order of the results follow the text?

Yes. Within each list, tags appear in the order they first occur in your text, and later duplicates are simply skipped rather than reordering the list.

Can I extract other things like emails or links?

This tool focuses on hashtags and mentions. For addresses use the Extract Emails tool, and for links use the Extract URLs tool, each tuned to its own pattern.

Is my text private?

Yes. Extraction runs entirely in your browser and nothing is uploaded, so unpublished captions and private notes never leave your device.

Learn more

Related tools