About the X Character Counter
This is a browser text tool that counts posts the same way X does, using the public twitter-text v3 config. You type or paste text and see live values: X count, Left of 280, Left of 25,000 (Premium), Links (23 each), Emojis (2 each), Characters that count as 2, and a plain character count. The tool runs locally in your browser, so nothing you type is uploaded to any server. You use it to draft posts, check local domain links, or confirm how many characters an emoji or CJK character will cost. It matches the twitter-text approach and cites the v3.json config on GitHub for the counting rules. That makes it more reliable than simple character counters that do not apply X link or emoji weights.
How to use it
- 1Type or paste your text into the box.
- 2Toggle Premium mode if you want the 25,000 limit.
- 3Read the live metrics: X count, Left of 280, Left of 25,000, links, emojis, two-count characters, and plain character count.
- 4Copy or edit your text until the weighted count fits your limit.
Worked example
Input: "Hello https://example.com ". Plain character count = 27. X weighted count = 32 (Hello and spaces = 6, link = 23, emoji = 2). Left of 280 = 248. Left of 25,000 = 24,968.
How it works
Step 1: Unicode-normalize the input (NFC).
Step 2: Identify and replace detected URLs with a single URL token that counts as transformedURLLength.
Step 3: Break text into units the parser uses (if emojiParsingEnabled, emoji ZWJ sequences are treated as one grapheme unit).
Step 4: For each code point or parsed unit, apply its configured weight w (range weight or defaultWeight).
Step 5: Compute weighted_length_units = sum(w for all units).
Step 6: Compute effective length = weighted_length_units / scale.
Step 7: Post is valid if effective length <= maxWeightedTweetLength (i.eweighted_length_units <= maxWeightedTweetLength * scale).
In plain terms using v3.json numbers: sum(weights) / 100 <= 280Links count as 23A Latin letter has weight 100 and counts as 1A default-weight symbol has weight 200 and counts as 2Source: twitter-text config v3.json (GitHub raw)twitter-text repository on GitHub. Last checked 6 November 2026.
What it is good for
- Shows the same weighted counts X uses, including links as 23 and emojis as 2.
- Runs fully in your browser, so nothing you type is uploaded to a server.
- Offers both standard 280 and a Premium 25,000 mode for longer posts.
- Local counting can still differ from X if X changes their composer or link rules; use X to confirm final posts.
- Link detection may differ for rare or very new TLDs unless you use the official twitter-text library.
Questions people ask
How many characters can a post on X have?
Standard posts use a weighted 280-character budget based on the twitter-text v3 config. Some paid accounts show a much larger limit, often 25,000 in Premium mode. Check X if your account has special limits.
Why does this tool count differently than a plain character counter?
X uses a weighted method: some Unicode ranges count as 2, links are treated as a fixed length, and emoji sequences count as single units. This tool applies those same weights from the v3.json config.
Do links always count as 23 characters?
Yes. The twitter-text configuration sets transformedURLLength to 23, so each detected URL uses 23 weighted characters in the count.
Do emojis count as 1 or 2 characters on X?
Most emoji sequences are counted as 2 under the v3 config, because emoji parsing is enabled and defaultWeight is 200. This tool reports emojis as 2 each in the weighted total.
Will images or videos use my character budget?
Media uploaded through official X clients does not use the text character budget. Still, confirm attached media behavior in X's composer for your client and account type.
Are counts region specific?
No. The counting rules come from the global twitter-text v3 config and apply the same way worldwide. Regional differences matter only for the languages or local domain names you type.
Is anything I type uploaded?
No. The tool runs in your browser and does not upload typed text to any server.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.