Mention Extractor – Pull Every @Username from Any Text
Paste any social post, chat log, or comment thread and instantly extract every @mention it contains. See how many times each person was mentioned, deduplicate case-insensitively, and sort by frequency or alphabetically. Everything runs locally in your browser.
Input text
Paste any text that might contain @mentions@John and @john collapse into one entry. Turn it off if you need to distinguish between handles that differ only in case. Mentions stop at any character that isn't a letter, number, underscore, or hyphen.
Extracted mentions
Ready when you areWhat does this Mention Extractor do?
This free online mention extractor scans your text and pulls out every @username it can find. It recognises the standard format used by Twitter/X, Instagram, TikTok, Slack, Discord, Reddit, and most other social platforms — an @ symbol followed by letters, numbers, underscores, or hyphens. Mentions stop at spaces, punctuation, or emoji, exactly as those platforms define them.
Along with the list, you get an occurrence count for each username so you can spot who's being mentioned most. When case-insensitive mode is on, @John and @john are treated as the same account. When "Unique mentions only" is on, each username appears once regardless of how many times it was mentioned. Everything runs locally in your browser using JavaScript — your text never leaves your device.
How to extract mentions (step-by-step)
- Paste your text — Drop any content that might contain @mentions: a tweet, an Instagram caption, a Slack thread, a Discord log, a comment section, or a forum post.
- Set your options — Toggle case-insensitive matching (on by default), enable "Unique mentions only" if you want a deduplicated list, and pick a sort order.
- Click "Extract Mentions" — The tool scans every line and shows results instantly on the right as a numbered list with occurrence counts.
- Copy or download — Use the copy button to grab the list, or save it as a
.txtfile for later analysis.
Why use this mention extractor?
Manually picking @usernames out of a long thread is tedious, and you always miss one. This tool catches everything in one click — and because all processing happens in your browser, it's safe to use on private or unpublished content.
Accurate extraction
Matches mentions exactly like social platforms do — letters, numbers, underscores, and hyphens.
Occurrence counts
See at a glance who's mentioned most often, with a count next to each username.
Smart dedupe
Case-insensitive matching means @John and @john collapse into one entry.
Two sort modes
Order by frequency (most mentioned first) or alphabetically A → Z.
100% private
Your text never leaves your browser. No logs, no storage, no tracking.
Works anywhere
Desktop, tablet, phone — and it keeps working offline once the page loads.
Mention format reference
The tool matches standard social media mentions. Here's a quick reference of what it can and can't detect:
| Format | Example | Extracted? |
|---|---|---|
| Letters only | @john | ✅ Yes |
| Letters + numbers | @user123 | ✅ Yes |
| With underscores | @john_doe | ✅ Yes |
| With hyphens | @code-master | ✅ Yes |
| Mixed case | @CodeMaster | ✅ Yes |
| Followed by punctuation | @user, @user. @user! | ✅ Yes (punctuation stripped) |
| Multiple in a row | @a @b @c | ✅ Yes (3) |
| Inside an email | user@example.com | ❌ No (needs word boundary) |
| Just the @ symbol | @ hello | ❌ No |
Example: analysing a tweet
Given the input: "Big thanks to @tech_guru for the review! Also @CodeMaster and @tech_guru again. @NewbieDev joined the chat."
| Setting | Output |
|---|---|
| Case-insensitive + Frequency sort | @tech_guru (2 times), @codemaster (1 time), @newbiedev (1 time) |
| Case-insensitive + Alphabetical | @codemaster (1 time), @newbiedev (1 time), @tech_guru (2 times) |
| Unique mentions only | @tech_guru, @codemaster, @newbiedev |
| No @ prefix | tech_guru, codemaster, newbiedev |
Note how @CodeMaster is lowercased in the output when case-insensitive mode is on — this keeps the list consistent. Turn off case-insensitive mode if you need to preserve the original casing or distinguish between handles that differ only in case.
Common use cases
- Social media engagement: Quickly see who was mentioned in a tweet or post so you can follow up or reply.
- Chat log analysis: Extract @mentions from Slack or Discord logs to find the most active participants.
- Comment moderation: Scan comment sections for mentioned users to notify them or check for spam.
- Forum monitoring: Find all users referenced in a forum thread or support ticket.
- Data cleaning: Separate @handles from regular text before further processing or import.
Frequently asked questions
@ and lists them. You can choose to show each mention only once, sort by how many times they appear, and ignore case differences.@John and @john are treated as the same person. Turn it off if you need to distinguish between accounts whose handles differ only in case.