Extract Hashtags
Extract hashtags from text.
Loading tool…
About this tool
Paste a caption, tweet or export and press Run to collect every hashtag, one per line, with the # sign included.
How to use
1
Step 1
Paste the text into Input.
2
Step 2
Press Run.
3
Step 3
Copy the hashtags from Output.
How it works
A hashtag is a # followed by letters, digits or underscores (and Hebrew letters). It ends at the first other character, so punctuation after a tag is excluded, but an accented letter ends the tag too.
Worked example
A travel caption
- Input
- Love #Summer2024 and #travel_tips! #café
- Output
- #Summer2024 #travel_tips #caf
- Walkthrough
- The exclamation mark is not part of #travel_tips. The accented é stops #café at #caf.
Limitations
- A tag ends at the first character that is not a letter, digit, mark or underscore, so a hyphen ends it.
- Duplicates are not removed.
- Does not check platform rules.
Questions
How do I extract hashtags from a caption?
Paste the caption and press Run.
Why is my hashtag cut short?
Accented letters such as é are not recognised, so the tag stops before them.
Does it list repeats?
Yes, each occurrence.
Features
- # kept in output
- One tag per line
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
HTML in 100 Seconds
Fireship
Quick HTML mental model next to text transform tools.
Watch on YouTubeRegular Expressions in 100 Seconds
Fireship
Fast regex refresher for text extraction patterns.
Watch on YouTube
- String
MDN
JS string methods that mirror case, trim, and split tools.
- RFC 3629 — UTF-8
IETF
UTF-8 rules behind character-counting tools.