Home › Text Tools › Character Counter
🔤

Character Counter

Count characters in your text with or without spaces using this free character counter. Also shows line counts for documents, code and messages.

About this tool

Character limits are everywhere: tweet-length posts, meta descriptions, SMS segments, form fields and programming constraints. One character too many and your message gets cut off or rejected. Eyeballing the length is not a strategy.

Our free character counter counts as you type, with grapheme-correct counting so an emoji counts as one character, not two or four. It shows characters with and without spaces, lines, the counting units behind the numbers, and live meters for X, Threads and Bluesky — each counted the way that platform counts. Paste your text and you know exactly where you stand.

By Azhar Hussain · Last updated: 12 November 2026

How to use

Type or paste your text into the box. The counts update on every keystroke — no button press needed — including characters with and without spaces, lines, and a breakdown of letters, digits, punctuation, spaces, line breaks and emoji.

Set your own limit to check text against any cap: enter the number, choose whether it counts characters with spaces, without spaces, or UTF-8 bytes, and the tool shows how much room is left or how far over you are. The X, Threads and Bluesky meters apply each platform's own counting rules automatically.

Use Clear to empty the box, Copy counts to copy the headline numbers, or Try sample text to see the tool work on an example. Nothing is uploaded; the counting happens entirely in your browser.

The math behind it

Counting is grapheme-based: the tool splits your text into grapheme clusters — the characters a reader actually sees — using the browser's Intl.Segmenter, with a code-point fallback. An emoji with a skin tone, a flag, or a family emoji counts as one character. The without-spaces count removes all whitespace first, including spaces, tabs and line breaks. Lines are counted by splitting on line breaks, except that a trailing line break does not create an extra empty line.

Platform counts follow each platform's rules. X weights most characters as 1 but emoji and CJK characters as 2, and counts every link as 23 characters. Threads counts emoji as their UTF-8 bytes. Bluesky requires a post to fit both 300 graphemes and 3,000 bytes. The breakdown below shows all four counting units side by side, so you can see exactly why different counters disagree.

What counts as one character?

The same text can give four different numbers, depending on the unit. “👍🏽” looks like one character, and it is one grapheme cluster — but it is built from two Unicode code points, takes four UTF-16 units in JavaScript, and eight UTF-8 bytes on the wire. Plain ASCII text gives the same number in every unit, which is why counters only disagree once emoji, accented letters or other scripts appear.

Unit“👍🏽”“Hello world!”What it means
Graphemes (what you see)112Visible characters, as a reader counts them
Unicode code points212Entries in the Unicode standard
UTF-16 units (JavaScript .length)412What .length returns in JavaScript
UTF-8 bytes812Storage size in the web's usual encoding

This counter's headline number is graphemes, because that is what a reader sees. The counting-units breakdown in the result shows all four numbers for your text, so you can reconcile this counter with any other tool.

Why do character counters disagree?

Different tools count different units, and all of them can be right under their own rules. A code editor reporting JavaScript's .length counts UTF-16 units, so most emoji count as two or more. A tool counting Unicode code points gives a smaller number. A platform like X applies its own weights on top, so the same post can measure 280 in one place and far more in another.

When two counters disagree, check which unit each one uses before assuming either is wrong. For word-level questions — word counts, sentences, reading time and readability — see the word counter, which counts graphemes the same way this page does.

Worked examples

Every example below is counted by the tool itself; try them in the box above.

TextWith spacesNo spacesLines
“Hello world!”12111
“The quick brown fox jumps over the lazy dog.”44361
“👍🏽”1 grapheme1 grapheme1

The fox sentence has 9 words, for reference — word counts live on the word counter page. The “👍🏽” row shows why the unit matters: the same emoji is 2 code points, 4 UTF-16 units and 8 UTF-8 bytes, but a reader sees one character.

Platform limits, counted the way each platform counts

X (Twitter). The standard post limit is 280 weighted characters. Most characters weigh 1, but emoji and CJK characters weigh 2, and every link counts as a flat 23 characters however long it really is. X Premium allows long posts up to 25,000 characters. The X meter above applies these rules; X's own composer always has the final say.

Threads. Posts allow 500 characters, but emoji count as their UTF-8 bytes: one smiling-face emoji uses 4 of the 500, and a flag uses 8. The Threads meter above applies that rule.

Bluesky. Posts must fit both 300 graphemes and 3,000 bytes. Either limit can bind first, so the meter above shows both.

SMS. Segment counts depend on encoding: 160 characters per segment in GSM-7, 70 in Unicode (UCS-2), dropping to 153 and 67 for multi-segment messages. The word counter computes SMS segments with encoding detection, and carries the full platform-limits table including LinkedIn, Instagram, Facebook and YouTube.

Frequently asked questions

Do spaces count as characters?
Yes, a space is a character. That is why the tool shows both counts. Social platforms and SMS usually count spaces, while some editors and translators price by the no-spaces count. Check which one your limit refers to.
How many characters fit in one SMS, and when does a message split?
One classic SMS segment holds 160 GSM-7 characters, or 70 characters if the message uses Unicode (UCS-2) encoding — a single character outside the GSM-7 set switches the whole message to Unicode. Longer messages split into segments of 153 characters (GSM-7) or 67 characters (Unicode) each. This counter shows the character total; for the exact segment count with encoding detection, use the word counter.
Does the counter include line breaks?
Yes, line breaks count as characters in the with-spaces total, because they take up space in the text. The without-spaces count removes them along with all other whitespace.
Why does this counter show a different number from Microsoft Word or another counter?
Different tools count different units. This counter's headline number counts grapheme clusters — what you see on screen. JavaScript's .length counts UTF-16 units, so an emoji counts as two or more. Other tools count Unicode code points or bytes. All of them can be right under their own rules; the counting-units breakdown on this page shows all four numbers for your text so you can compare.
How does X (Twitter) count characters differently?
X uses weighted counting: most characters count as 1, but emoji and CJK characters count as 2, and every link counts as a flat 23 characters however long it really is. The standard limit is 280 weighted characters, and X Premium allows long posts up to 25,000 characters. The X meter on this page applies those rules; X's own composer always has the final say.
Do emoji count as one character or two?
As one, here: this counter counts grapheme clusters, so “👍🏽” is one character, even though it is two Unicode code points, four UTF-16 units and eight UTF-8 bytes. Other tools disagree because they count a different unit — and X counts each emoji as 2 under its weighted rules.
What is the character limit for a Threads or Bluesky post?
Threads allows 500 characters, but counts emoji as their UTF-8 bytes, so one smiling-face emoji uses 4 of the 500 and a flag uses 8. Bluesky allows 300 graphemes and also requires the post to fit in 3,000 bytes — both limits must hold. The meters on this page apply each rule separately.

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.