Extract hashtags

Paste a text or a caption and get the list of all hashtags, one per line.

Your text stays in your browser: it is not saved or sent anywhere.

The real case: reusing the tags that work

Anyone posting on social media builds up, over time, sets of hashtags that perform, and keeps them scattered inside the captions of old posts. Finding them again means reopening a post, selecting them by hand and hoping not to clip one. Here you paste the whole caption and out comes the clean list, one per line, ready to save in a note or paste into the new post. It also works the other way round: take someone else's post and see plainly which tags they used.

How it finds them

Anything starting with # and carrying on with letters, digits or an underscore is picked up; the tag ends where a space or a punctuation mark begins. Accented letters are allowed, so #café comes out whole, even when the accent was typed as a separate mark, and tags in scripts other than ours work exactly the same.

Things that have a hash sign but are not tags stay out: a bare number like #2024 or #1, which no social network treats as a tag, the piece of a web address after the hash sign and the name of a language like C#. Two tags written together, like #sea#summer, are two tags instead.

Repeated tags are removed without looking at capitals, as the social networks do: #Rome and #rome are the same tag, so it appears once, in the form used the first time. If the caption has both, it's time to pick one form and stick to it.

What it doesn't do

It doesn't tell you whether a hashtag is popular, it doesn't look it up on any platform and it doesn't invent new ones: all that's read here is the text you pasted, and nothing leaves this page. If you're looking for tags to use, the right place is Hashtag generator. And remember the limits differ from one network to another: how many characters you have left is answered by Social character counter.

The same text, five things to look for

Above the box there are five buttons, and the same text can be run through the other kinds too, with the same rules: Email extractor, Link extractor, Extract mentions and Extract phone numbers.

The same text with the same button gives the same list on all five pages.

Nearby tools

For mentions with the at sign, instead of tags, there is Extract mentions. To clean a caption of asterisks and formatting Strip markdown, and to count how many times each word appears in a text Word frequency.

Related tools