Maaz Zindani

Loading the index…

↑↓ move↵ openesc close3993 pages

Free tool · Writing tools

Character counter

Paste your text and get the number of characters with and without spaces, and the same text measured in code points, UTF-16 units and UTF-8 bytes. Check it against a limit and see what runs over. Nothing you type leaves your device.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Most limits are in characters. Pick bytes or UTF-16 units when the system that enforces the limit counts those.
Saving
Off by default. When on, the text is kept in this browser's local storage on this device only, and Clear deletes it. It is never sent anywhere.
Characters
33 characters27 without spaces
With spaces
33
Without spaces
27
Spaces and breaks
6
Code points
38
UTF-16 units
44
UTF-8 bytes
61
Words
4
Lines
1
Why the units differ

33 characters, but 38 code points (some characters are built from several, like an emoji family or a letter plus its accent), 44 UTF-16 units (characters outside the basic range take two), 61 bytes in UTF-8 (accents take two bytes or more, most emoji four).

How to use the Character Counter

  1. Type or paste your text into Your text. The count under Characters updates with every key.
  2. Read With spaces and Without spaces, then Code points, UTF-16 units and UTF-8 bytes in the grid below it.
  3. To check a limit, choose one under Check against a limit or type your own number in Limit, and pick the unit in Measure the limit in.
  4. If the text is too long, the part past the limit is marked under Past the limit is marked. Press Clear to start again.

How do I count characters with and without spaces?

Type or paste your text and read the figure under Characters. It counts everything you can type: letters, digits, punctuation, spaces, tabs and line breaks. A space is a character, so "Hello there" is 11. Without spaces takes out every space, tab and line break and counts what is left, so the same text is 10. A line break counts as one character even when it is saved as a carriage return plus a line feed, and Spaces and breaks tells you how many of those sit in your text.

The count is by grapheme, which is the unit a reader sees as one character. An emoji, a flag or a letter with an accent is one character, however many pieces the computer uses to store it. The example text on this page, "Hello, wörld! 👋 Family: 👨‍👩‍👧 Flag: 🇫🇷", is 33 characters and 27 without spaces. The family emoji, the flag and the waving hand count as one each.

Why do emoji and accented letters give different counts: characters, code points, UTF-16 units and bytes?

Because there are four ways to measure the same text, and the grid shows all of them. A character is what you see. A code point is one Unicode number: the family emoji joins three people with two invisible joiners, so it is 5 code points. A UTF-16 unit is what JavaScript reports as a string's length. Characters beyond the first 65,536 code points take two units, which makes the family emoji 8. A UTF-8 byte count is the size of the text when saved as a file: plain letters take one byte, a letter such as é takes two, many symbols and most Chinese, Japanese and Korean characters take three, and emoji take four. The family emoji is 18 bytes.

The same character can be stored in different ways. An "é" typed as one character is 1 character, 1 code point, 1 UTF-16 unit and 2 bytes. Typed as "e" plus a separate combining accent it is still 1 character, but 2 code points, 2 units and 3 bytes. In the example text the four numbers are 33, 38, 44 and 61, so a limit that counts bytes would see the example as almost twice as long as one that counts characters.

Which one matters depends on the system that enforces the limit, which you often cannot see. That is why Measure the limit in lets you choose. When the text is over, the tool marks the part past the limit and never cuts a character in half, even when the limit falls in the middle of an emoji.

What are the character limits for X, LinkedIn, YouTube, Mastodon and SMS?

Choose one under Check against a limit and the Limit box fills in. These are the numbers each service states on its own pages, as read on 19 November 2026: 280 for an X post, up to 3,000 for a LinkedIn post, 100 for a YouTube video title and 5,000 for its description, 500 as the Mastodon default, and, in Twilio's documentation, 160 for one GSM-7 text message and 70 for one UCS-2 message. X weighs a link as 23 and an emoji as 2, so its own count differs from this plain one: the Twitter character counter applies those rules.

Treat the presets as a starting point. Limits change and can differ by account or by server, so each source is listed at the bottom of the page with the date it was read, and the box is editable if your case differs. There is no preset for Instagram captions or for page titles and descriptions: no official page that states a number was found, so no number is repeated here from memory. If you have one, type it into the box.

Use it with

Questions

Does a space count as a character?

Yes. A space, a tab and a line break each count as one character in the main count. The Without spaces figure leaves all of them out.

Do emoji and line breaks count as one character?

Here, yes: an emoji is one character however many code points it uses, and a line break is one character. Other counters, and some platforms, use a different unit, which is why the grid also shows code points, UTF-16 units and bytes.

What is the difference between characters, UTF-16 units and bytes?

Characters are what you see. UTF-16 units are what JavaScript reports as a string's length, with two for emoji and other rare characters. UTF-8 bytes are the size of the text as a file, from one byte for a plain letter to four for an emoji.

What is the character limit for X, LinkedIn or YouTube?

On their own pages, X documents 280 for a post, LinkedIn 3,000 for a post, and YouTube 100 for a video title and 5,000 for a description. Pick one under Check against a limit. X counts links and emoji with extra weight, so its count differs.

How many characters fit in a text message?

Twilio's documentation gives 160 characters for one GSM-7 message and 70 for one UCS-2 message, with 153 and 67 per part when a longer message is split. Which encoding a message needs depends on its characters, which this tool does not check.

Is my text sent anywhere?

No. The count runs in your browser and your text stays on your device. Saving a draft is off until you tick the box, and then it lives only in this browser until you untick it or press Clear.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.