Categories

Hashtag & Mention Extractor

Extract hashtags (#Topic) and user mentions (@Username) from social media text like Twitter, Instagram, etc.

Extract hashtags (#Topic) from the text

Extract user mentions (@Username) from the text

Remove duplicate hashtags and mentions from the results

Choose how to sort the extracted hashtags and mentions

Key Facts

Category
Text Processing
Input Types
textarea, checkbox, select
Output Type
json
Sample Coverage
4
API Ready
Yes

Overview

The Hashtag & Mention Extractor is a text processing tool that quickly identifies and extracts hashtags (#topic) and user mentions (@username) from social media content like tweets and Instagram posts, simplifying analysis and tracking.

When to Use

  • When analyzing social media posts to identify trending topics or key influencers.
  • When compiling engagement reports that require lists of mentioned users or hashtags.
  • When filtering large volumes of text to find specific tags or mentions for research or curation.

How It Works

  • Paste your social media text into the input field.
  • Select options to extract hashtags, mentions, or both, and choose to remove duplicates.
  • Pick a sorting method: alphabetical, by frequency, or preserve original order.
  • The tool processes the text and outputs a JSON list of the extracted items.

Use Cases

Social media managers tracking brand mentions and campaign hashtags across platforms.
Researchers analyzing public discourse by extracting tags and mentions from posts.
Content creators identifying popular hashtags to optimize post visibility and engagement.

Examples

1. Extracting Hashtags from a Twitter Thread

Social Media Analyst
Background
A social media analyst needs to identify all hashtags used in a viral Twitter thread to understand conversation themes for a report.
Problem
Manually scanning through hundreds of tweets to list hashtags is time-consuming and prone to errors.
How to Use
Copy the text from the Twitter thread, paste it into the tool, ensure 'Extract Hashtags' is checked, and enable 'Remove Duplicates'.
Example Config
Extract Hashtags: true, Extract Mentions: false, Remove Duplicates: true, Sort By: alphabetical
Outcome
A clean JSON list of unique hashtags sorted alphabetically, ready for trend analysis.

2. Compiling User Mentions for an Influencer Report

Marketing Manager
Background
A marketing manager wants to create a report on which influencers are mentioning their brand on Instagram to assess partnership effectiveness.
Problem
Extracting all @mentions from multiple Instagram captions manually is inefficient and incomplete.
How to Use
Paste the Instagram caption text into the tool, select 'Extract Mentions', and choose 'Sort By Frequency' to highlight frequent users.
Example Config
Extract Hashtags: false, Extract Mentions: true, Remove Duplicates: true, Sort By: frequency
Outcome
A JSON list of user mentions sorted by occurrence, identifying key influencers for the report.

Try with Samples

video, text, hash

Related Hubs

FAQ

What types of text can I use with this tool?

Any text containing hashtags (#) or mentions (@), such as tweets, Instagram captions, or Facebook posts.

Can I extract only hashtags or only mentions?

Yes, you can toggle the 'Extract Hashtags' and 'Extract Mentions' options to include only one or both.

How does the 'Remove Duplicates' option work?

When enabled, it ensures each unique hashtag or mention appears only once in the results.

What sorting options are available?

You can sort results alphabetically (A-Z), by frequency of occurrence, or keep the original order.

Is there a limit to the text length?

The tool handles typical social media text lengths, but very large inputs may take longer to process.

API Documentation

Request Endpoint

POST /en/api/tools/hashtag-mention-extractor

Request Parameters

Parameter Name Type Required Description
text textarea Yes -
extractHashtags checkbox No Extract hashtags (#Topic) from the text
extractMentions checkbox No Extract user mentions (@Username) from the text
uniqueOnly checkbox No Remove duplicate hashtags and mentions from the results
sortBy select No Choose how to sort the extracted hashtags and mentions

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-hashtag-mention-extractor": {
      "name": "hashtag-mention-extractor",
      "description": "Extract hashtags (#Topic) and user mentions (@Username) from social media text like Twitter, Instagram, etc.",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=hashtag-mention-extractor",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]