X (Twitter) hashtag limit: how many can you use?

There is no limit. X's Help Center recommends no more than 2 per post. Paste a post below to count its hashtags and characters the way X does.

Checked on against 6 sources.

Count the hashtags and characters in a post

Type or paste. It stays in your browser.
Hashtags3 (no limit)
Characters (free account)162 / 280
omnisocials

Planning next week's posts in one sitting: a thread on Tuesday, a video on Thursday, a quick post every weekday morning. #socialmedia #contentplanning #marketing

No hashtag limit on X. Its Help Center recommends no more than 2 per post.
The short answer

No limit, but X recommends no more than 2 hashtags per post.

X's Help Center says: "We recommend using no more than 2 hashtags per post as best practice, but you may use as many hashtags in a post as you like." Each hashtag is part of the post's text, so it counts toward the 280 characters, or 25,000 on Premium.

Hashtags help a post show up in X search, and popular ones often become trending topics. X's open-source ranking code predicts likes, replies, reposts and other actions, and its README names no hashtag signal. Use one or two specific tags and write the rest in plain words.

Hashtag limit
None
Use as many as you like
X's advice
2 or fewer
Help Center best practice
Characters
Count toward 280
25,000 on Premium
The rules

X's hashtag rules in one table. From X's own pages.

X (Twitter) hashtag rules: how many per post, where they go, which characters work, and how they count, October 2026
RuleWhat X saysSource
Hashtags per postNo limit; no more than 2 recommendedX Help Center
Where they goAnywhere in a postX Help Center
Spaces and punctuationNot allowed; the hashtag breaksX Help Center
Who finds themAnyone who searches the tag, on public postsX Help Center
Character countPart of the post's 280 charactersX developer docs
In long Premium postsHashtags still workX Help Center, Premium page
Through the APINo hashtag limitX developer docs list none
In ad conversation buttons21 characters, # includedX ads guide
Checked on October 17, 2026 against X's Help Center, developer docs and ads guide.
What ranks posts

What X's ranking code looks at instead. From the code X open-sourced in 2026.

How X's open-source For You ranking treats posts, as described in its README, October 2026
Rule in the codeWhat it does
Predicted actionsScores a post on the chance of likes, replies, reposts and other actions
Age filterRemoves posts older than 48 hours from For You
Author diversityScores each post after an author's first in a feed lower
Out-of-network discountScores posts from accounts the viewer does not follow lower
New-author boostLifts posts from authors with few impressions
HashtagsNot named in the README
From the README of xai-org/x-algorithm, read on October 17, 2026. The README lists no hashtag signal; that does not prove the model ignores hashtag text.
What changed

What changed around hashtags. The ranking went public.

  1. Aug 2026

    X published its ranking weights

    X added the weights its For You feed uses to blend predicted actions into a score. The README still names no hashtag signal. Source

  2. Jan 2026

    The For You algorithm went open source

    X open-sourced its new For You ranking, built on the same transformer design as xAI's Grok. It ranks posts on predicted engagement such as likes, replies and reposts. Source

Tips

Pick your tags well. Fewer, more specific.

  1. Use one or two

    X's own advice is no more than 2 per post. More tags take characters away from what you want to say.

  2. Pick specific tags

    A tag helps people who search it find your post. Search a tag first to see what is posted under it.

  3. Place them where they read well

    Hashtags work anywhere in a post. A tag inside a sentence can replace a word instead of adding one.

  4. No spaces or punctuation

    X says a hashtag with spaces or punctuation will not work properly. Write multi-word tags as one word.

  5. Do not count on tags for reach

    X's ranking code scores posts on predicted likes, replies and reposts. Write for those first.

  6. Save the tags you reuse

    Keep a set of one or two tags per topic so every post gets the right ones without retyping.

Other platforms

The same guide for every network. Each one has its own rules.

Sources

How we built this guide. Checked on October 17, 2026.

The rules come from X's Help Center, X's developer docs and X's ads guide, read on October 17, 2026. What X's ranking looks at comes from the README of the code X open-sourced in January 2026. Claims we could not check against a primary source, such as a ban on hashtags in X ads, are left out.

  1. X Help Center: How to use hashtagsSep 28, 2026No limit; no more than 2 per post recommended.
  2. X Help Center: About X PremiumOct 5, 2026Hashtags still work in long posts of up to 25,000 characters.
  3. X Developer Platform: Counting charactersRead Oct 2026
  4. xAI on GitHub: x-algorithm: the For You feed's ranking codeRead Oct 2026Predicted actions, age filter, author diversity; no hashtag signal named.
  5. @Engineering on X: X open-sources its new algorithmJan 20, 2026
  6. X Business: Creative ad specificationsRead Oct 2026Conversation button hashtags up to 21 characters.
Something out of date? Tell us.

Frequently
Asked Questions

Robert Ligthart
Robert LigthartFounder of OmniSocials
Ask me a question

Last updated:

Robert Ligthart
Still have a question?Ask Robert, the founder
Ask