Pull every hashtag out of social media text
Extract all hashtags from social media posts, captions, or any text block.
Interactive Sample Data
| id | post_text |
|---|---|
| 1 | Excited about this! #DataFix #OpenData #Nairobi |
| 2 | Building tools for Africa #DataFix #Tech |
| 3 | No hashtags in this post at all. |
How this tool works
Things that usually go wrong
- HTML-encoded hash symbols (#) inside an HTML export will not be matched — paste plain text rather than HTML source.
- Emoji combined with hashtags (#🎉) will match the emoji as part of the tag on some platforms but not others — the extractor captures only ASCII word characters.
- Very long hashtags may include internal underscores (#this_is_one_tag) — the whole sequence is extracted as a single tag.
Edge cases we tested
Treated as one tag (case-insensitive by default); count reflects combined total.
Punctuation stripped; #Nairobi extracted correctly.
Matched and extracted — digits are valid hashtag characters on most platforms.
URL fragments are excluded — the # must follow whitespace or start of string to count as a hashtag.
Returns 'No hashtags found.' rather than an error.
Frequently Asked Questions
Can I analyse hashtags from a CSV column of post texts?
Yes — paste all the cell values into the input panel separated by line breaks. The extractor scans the entire block.
Does this work for Instagram, Twitter/X, and LinkedIn hashtag styles?
Yes. All three platforms use the same # + word-character syntax.
Can I get the output as a two-column table (hashtag, count)?
Add 'as CSV with columns hashtag and count' to your instruction — the output changes to a two-column CSV ready to open in a spreadsheet.
What about mentions (@username) — can this extract those too?
Not directly, but the prompt accepts 'extract mentions' as a variant — the pattern switches from # to @.
Related tools
Extract Emails from Text
Extract all email addresses from any block of text or document paste.
Open Tool →Extract URLs from Text
Extract all URLs and hyperlinks from any block of text or document paste.
Open Tool →Count Word Frequency
Count word frequency across a text column in a CSV and output a frequency table.
Open Tool →Extract Emails, Phones or URLs from a Column
Extract email addresses, phone numbers, or URLs embedded in free-text CSV cells into separate columns.
Open Tool →