Character Counter Tool: Count What the Platform Actually Counts

You paste a post into a counter, it says 274 characters, you publish, and the platform cuts the last line. Nothing is broken in your browser. The counter and the platform were counting different things and both called the result "characters". A character counter tool is only useful when you know which number it is showing you, because a tweet field, a database column and a visible line of text each measure length in their own units.

This page is about that gap. It explains the four ways a browser can count your text, what emoji and accents do to each one, how spaces and line breaks enter the total, and which published limits in 2026 are counted in characters, in graphemes, or in bytes. Then it shows how the live counters in our free notepad behave, so you can trust the number you see while typing.

Why a Character Counter and a Text Field Disagree

JavaScript strings are stored as UTF-16 code units, and the .length property reports exactly that: the number of 16-bit elements, not the number of symbols a person sees. For plain English the two match, which is why most counters look perfect on a test sentence and collapse on real text. Every character outside the Basic Multilingual Plane, which includes most emoji and many historic scripts, occupies a surrogate pair and therefore counts as two units.

MDN documents the behaviour with a concrete example: the grinning face emoji has .length equal to 2, while spreading it into an array with [...emoji].length returns 1, because the iterator walks Unicode code points instead of code units. The same page shows Adlam text where .length reports 8 and the spread gives 4, and a formula string where the difference is 11 against 9.

There is a third layer above code points. A grapheme cluster is what a reader perceives as one character, and it can contain several code points: a base letter with combining marks, an emoji with a skin tone modifier, a flag built from two regional indicators, or a zero-width-joiner family sequence. MDN's recommended way to count those is Intl.Segmenter with granularity: "grapheme", which returns 1 for a family emoji that occupies 11 code units in the string. So a counter that says 274 may be counting code units, code points or graphemes, and all three answers are defensible until someone names the unit.

Four Different Numbers Behind the Word Character

A published comparison of the four measures puts them side by side, and the table below reproduces its core cases. It is the clearest way to see why an argument about "correct" character count has no answer without a unit.

Visible symbol UTF-16 code units Code points UTF-8 bytes
A 1 1 1
é (precomposed) 1 1 2
🙏 (single emoji, U+1F64F) 2 1 4
👍🏽 (thumbs up plus skin tone) 4 2 8
👨‍👩‍👧‍👦 (family, ZWJ sequence) 11 7 25

Read the last two rows twice. A single visible thumbs-up with a medium skin tone is four code units, two code points and eight bytes, and every one of those numbers is correct for its own layer. The family emoji is worse: one thing to look at, eleven units in the string, seven code points, and a byte count that depends on how many people are in the picture.

Practical consequence follows immediately. If a form says "up to 50 characters" and validates with .length, a user who types 25 emoji is rejected at 50 units while seeing 25 symbols on screen. If the same form validates by UTF-8 bytes because the database column is VARCHAR(50), accented Latin text hits the ceiling earlier than plain ASCII, and a single Chinese character costs three of those bytes. The bug is not in any of the three checks; it is in a requirement that said "characters" without naming the unit.

What Emoji Do to a Character Count

Emoji are the fastest way to expose a sloppy counter, and they are also where money quietly leaks for anyone sending SMS. A basic grinning face is one code point but two code units. A thumbs-up with a skin tone modifier is one visible symbol built from two code points and four code units. A family emoji joined with zero-width joiners can reach seven code points and more than twenty bytes for a single thing the reader sees as one picture.

Bluesky is the platform that took this seriously: its 300-character limit is counted in grapheme clusters, so a multi-codepoint emoji costs one character rather than seven. Most other services count code points or UTF-16 units, which is why the same post pasted into three different checkers gives three different totals and only one of them matches what the destination accepts.

For a writer, the practical rule is simpler than the theory. If your text is plain Latin letters, numbers and ordinary punctuation, every counter agrees and you can trust any of them. As soon as emoji, flags, math symbols or non-Latin scripts appear, treat any single number as one opinion and confirm against the field you are actually filling. That is not paranoia; it is the documented difference between code units and characters.

Spaces, Line Breaks and the Without-Spaces Question

Nearly every platform counts spaces, punctuation and line breaks as characters. A space is a code point, a newline is a code point, and an emoji is one or more, so the totals published by social networks include them without exception in the guidance collected for 2026. The two interesting cases are the ones that break the rule.

The first is SMS, where an emoji converts the whole message from 7-bit GSM-7 encoding to 16-bit UCS-2 and cuts the per-segment budget from 160 characters to 70. The second is Bluesky's grapheme counting, which makes a compound emoji cheaper than its code points suggest.

Counting without spaces is a separate question, and it exists mostly for academic and editorial rules rather than platform limits. Word count for an essay, a translation quote or a journal submission sometimes excludes whitespace, and the honest way to present that is to show both totals. Removing spaces before validation is only correct when the stated rule excludes whitespace; keeping the original text for display is the safer default, because a transformed string can pass a check and still be rejected downstream.

Character Limits Worth Checking in 2026

The numbers below come from a 2026 platform guide and a character counter's published limit list. Treat them as planning targets rather than contracts, since services change both the number and the unit.

Field Limit Counted in
X post 280 (25,000 on Premium) code points, with URLs replaced by a 23-character placeholder
X display name / bio / handle 50 / 160 / 15 code points
Threads post 500 code points
Bluesky post 300 grapheme clusters
Mastodon post 500 code points
Instagram caption 2,200, first 125 visible code points
LinkedIn post 3,000 code points
Pinterest pin description 500, first 50 to 60 visible code points
YouTube title / description 100 / 5,000 code points
Meta description 150 to 160 target pixels in the SERP, characters in the editor
Page title tag 50 to 60 roughly, by pixel width
SMS single segment 160 in GSM-7, 70 in UCS-2 encoding-dependent
SMS multi-segment 153 per part, 67 in UCS-2 encoding-dependent

Two rows deserve a note. The meta description is the clearest example of a soft limit: Google does not reject a 300-character description, it truncates it at roughly 155 to 165 on desktop and between 100 and 120 on mobile, because it measures pixel width rather than characters. A description written entirely in wide letters reaches the cut sooner than one full of narrow ones. And the X limit hides a rule that has nothing to do with your typing: every URL is counted as 23 characters regardless of its real length, so a long tracking link does not eat your budget the way a naive counter predicts.

SMS: The One Place Where Characters Become Money

SMS is where character counting stops being cosmetic. A message fits in one segment only if it stays inside GSM-7, the 7-bit alphabet that covers basic Latin letters, digits and a small set of punctuation. Add one character outside that set, and the entire message switches to UCS-2, where the per-segment limit falls to 70 characters. Curly quotes, an en dash, a single emoji or a CJK glyph are all enough to trigger the switch.

Long messages do not simply continue. Each additional segment loses a few characters to the user data header that tells the receiving phone how to reassemble the parts, which drops GSM-7 parts to 153 characters and UCS-2 parts to 67. The carrier splits, numbers and bills the message as several separate texts, and the sender pays per segment. Providers such as Twilio, Bandwidth and MessageBird show the detected encoding next to the preview, so there is no excuse for guessing after the first invoice.

The working rule for anyone writing SMS copy without a billing dashboard: keep the text pure ASCII if you can, avoid typographic quotes and dashes, spell out symbols such as (c) and (R), and count segments before sending rather than after. If the campaign needs emoji, budget as if each character were worth two, because at 70 per segment that is roughly what happens.

Counting Characters in Our Notepad

The free notepad on this site shows three counters that update as you type: words, characters and lines. Words are counted by splitting on whitespace, characters by the length of the text in the browser, and lines by newline breaks. That means the character number is a UTF-16 code-unit count, the same measure JavaScript exposes everywhere, so plain English matches the visible count exactly and an emoji will add two units while looking like one symbol.

That behaviour is worth knowing instead of being surprised by it. If you are drafting a post against a 280-character limit, the plain text will match. If the draft is full of emoji, confirm the final paste in the destination field, because the platform may count graphemes while the counter counts units. The counters exist to give you feedback while writing, not to guess what a third-party service will decide.

Persistence matters here too. Text is saved to your own browser storage with a short debounce, so the draft survives a refresh or a closed tab on the same device, and nothing is uploaded to a server to be counted. Copy puts the text on your clipboard, Download writes a plain .txt file, and Clear empties both the editor and the saved copy. For a character-counting workflow that is the whole loop: paste the text, read the number, adjust, keep or download.

How to Check a Post Before You Publish

A repeatable routine saves more time than any single tool. Start by pasting the exact text you intend to publish, not an earlier draft, because a single added emoji changes the number. Read the count and compare it against the field you are filling rather than against a generic limit: a LinkedIn post and an Instagram caption have different ceilings and different visible cut points.

If the text contains emoji, accents, non-Latin scripts, or a URL, do not trust a single number. Paste it into the destination field and let the platform's own counter speak, since that is the only measurement that will actually accept or reject you. For meta descriptions and titles, remember that the search engine truncates by pixel width, so a 158-character description made of wide letters can still be cut while a 165-character one of narrow letters survives.

Finally, keep the visible-versus-hard distinction in mind. Instagram allows 2,200 characters and shows 125, Pinterest allows 500 and shows about 55, and the interesting number for engagement is the visible one. Counting is not about maximizing the field; it is about putting the message inside the part that gets read.

Frequently Asked Questions

Does a character counter include spaces?

Yes on almost every platform, and in our notepad as well. Spaces, punctuation, line breaks and emoji all count. The exceptions are SMS, where an emoji changes the encoding and shrinks the segment, and Bluesky, which counts grapheme clusters.

Why does one counter say 40 and another says 44 for the same text?

They count different units. Forty four could be UTF-16 code units, forty could be grapheme clusters, and a byte count would be larger again. Emoji and accented letters are where the numbers diverge.

Is emoji one character or two?

It depends on the unit. A basic emoji is one code point but two UTF-16 code units, a skin-toned emoji is two code points and four units, and a family sequence can be seven code points. Visible characters are one grapheme cluster in each case.

Should I count characters with or without spaces?

For platform limits, count with spaces, because the platform does. For academic or editorial rules that explicitly exclude whitespace, show both totals rather than silently stripping spaces before validation.

What is the character limit for an SMS?

160 characters in GSM-7, dropping to 70 in UCS-2 as soon as one character falls outside that alphabet. Multi-part messages allow 153 and 67 per segment, and each part is billed separately.

Does the notepad upload my text to count it?

No. Counting happens in your browser, and the text is saved only to your own browser storage, which is also why it survives a refresh on the same device and does not appear on another.

Final Thoughts

The number a character counter shows is a measurement, and every measurement needs a unit. Once you know that browsers count UTF-16 code units, Unicode counts code points, readers perceive grapheme clusters and databases store bytes, the disagreements stop looking like bugs and start looking like what they are: different rulers applied to the same text.

Keep the ruler that matches your destination. Paste the real text, check the field you are publishing into, and remember that spaces count almost everywhere, that emoji cost more than they look, and that SMS is the one place where a single character can change both the segment count and the bill. Written with that discipline, a character counter tool stops being a source of last-minute surprises and becomes what it should be: a scale you can read before you commit.

rianjs
rianjs

Massachusetts · SO reputation 7984 · Badges: 5🥇30🥈41🥉 · SO member since 2010