Extract hashtags and mentions
Paste social media posts, captions or comments and get the hashtags, the mentions or both as a clean list. Letters of any alphabet are supported, and the list can be sorted and de-duplicated.
Runs in your browser: nothing you enter is sent anywhere.
How to use it
- Paste the text.
- Choose hashtags, mentions or both.
- Keep duplicate removal on for a unique list, and turn off “Keep the # and @” if you want bare words.
- Press Copy.
How it works
One pattern looks for a # or @ that does not follow a letter, digit, underscore, slash or ampersand, then takes the letters, digits and underscores after it. Letters are matched with Unicode properties, so Cyrillic, Greek, accented Latin, Chinese and other scripts work. Hashtags with no letter in them are dropped.
Worked example
In “Love #Summer and #beach_day with @ann_lee!” the list is #Summer, #beach_day and @ann_lee: three tags found, three listed.
Tips
Hashtags are often written in several cases; turning on duplicate removal merges them. To count how often each tag occurs, paste the list with duplicates kept into the word frequency tool.
Frequently asked questions
What counts as a hashtag?
A # followed by letters, digits or underscores, in any alphabet, that contains at least one letter. #123 is not listed because it is only digits. This is a practical rule; each social network has its own small differences.
What counts as a mention?
An @ followed by letters, digits or underscores, standing at the start of a word. User names with dots, such as Mastodon addresses, are cut at the first dot.
Why is the # in a link or the @ in an email address not listed?
A # or @ that touches a letter or digit before it, as in page.com/x#top or ann@example.com, is part of the link or address and is skipped on purpose.
How are duplicates found?
Ignoring case, so #Summer and #summer are one tag. The first spelling in your text is kept.
Is my text sent anywhere?
No. The search runs in your browser.