X (Twitter) Character Counter
The weighted length of a post the way X counts it: one for Latin text, two for wide scripts and emoji, 23 for a link.
What this X (Twitter) Character Counter does
The weighted length of a post the way X counts it: one for Latin text, two for wide scripts and emoji, 23 for a link.
Every link counts as 23 characters however long its text is, which is X's own rule. Each remaining code point counts one in Latin, Greek and Cyrillic, and two in CJK, Hangul and other wide ranges, including emoji. Line breaks count one. The page prints the raw character count as well, because the two numbers differ and the difference is the point.
How to use it
Paste the post into the box above, then press Run. The page recalculates from the values on screen and prints the rule it applied.
Worked example
Input:
the post = Shipping the calculator today — 計算も速い https://example.com/post
Output:
Characters = 62
Weighted length = 66
Links counted as = 1 × 23
Characters left in a post = 214
Posts needed = 1
Why it runs in your browser
This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.
X (Twitter) Character Counter: The weighted length of a post the way X counts it: one for Latin text, two for wide scripts and emoji, 23 for a link.
Every link counts as 23 characters however long its text is, which is X's own rule. Each remaining code point counts one in Latin, Greek and Cyrillic, and two in CJK, Hangul and other wide ranges, including emoji. Line breaks count one. The page prints the raw character count as well, because the two numbers differ and the difference is the point.
Worked example: the post = Shipping the calculator today — 計算も速い https://example.com/post gives Characters = 62; Weighted length = 66; Links counted as = 1 × 23; Characters left in a post = 214; Posts needed = 1.
How to use the X (Twitter) Character Counter calculator
Paste the post into the box above then press Run. The page recalculates from the values on screen and prints the rule it applied.
This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.
The rule this page applies
Every link counts as 23 characters however long its text is, which is X's own rule. Each remaining code point counts one in Latin, Greek and Cyrillic, and two in CJK, Hangul and other wide ranges, including emoji. Line breaks count one. The page prints the raw character count as well, because the two numbers differ and the difference is the point.
Static HTML and JavaScript only — the same source served to every visitor, with no network call and no server-side executor.
- Characters = 62
- Weighted length = 66
- Links counted as = 1 × 23
- Characters left in a post = 214
- Posts needed = 1
What to Expect
Best for
- Getting the characters quickly
- Checked arithmetic, printed with its rule
- Comparing two sets of inputs
Not ideal for
- Data this page does not carry
- A guarantee about the physical world
- Locales other than English
What this tool keeps
- Your inputs in this tab
- The rule, printed in full
- The same answer on every run
What may need cleanup
- A value the page refuses, which names the field instead of guessing
- A number outside the stated range, which is refused by name
Common errors
- A blank field is refused rather than read as zero
- A zero denominator is refused rather than printed as infinity
- A value outside the formula’s range is refused with the range named
Example use cases
- Checking a figure before you rely on it
- Homework and exam checking
- Comparing two options side by side
Sample input
the post = Shipping the calculator today — 計算も速い https://example.com/post
Sample output
Characters = 62; Weighted length = 66; Links counted as = 1 × 23; Characters left in a post = 214; Posts needed = 1
Who this is for
- Anyone checking this figure by hand
- Students and teachers
Frequently asked questions
What does X (Twitter) Character Counter calculator do?
The weighted length of a post the way X counts it: one for Latin text, two for wide scripts and emoji, 23 for a link. It prints characters, weighted length, links counted as, characters left in a post, posts needed.
How does this page work out the answer?
Every link counts as 23 characters however long its text is, which is X's own rule. Each remaining code point counts one in Latin, Greek and Cyrillic, and two in CJK, Hangul and other wide ranges, including emoji. Line breaks count one. The page prints the raw character count as well, because the two numbers differ and the difference is the point.
Is anything uploaded or stored?
This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.
Which inputs does the page read?
It reads the post from the box above. Nothing else is consulted.
Why does a link count as 23?
Because X shortens every link to a fixed 23-character form, so the visible URL length is not what the counter charges. The page applies that rule rather than counting the bytes you pasted.
Which characters count double?
The wide ranges: CJK ideographs, Japanese kana, Hangul, fullwidth forms, and everything from U+1F000 upward, which covers emoji. The rule is printed on the page so you can see the boundary.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.