Character Counter

A character counter shows how many characters are in your text, with and without spaces, as you type. Paste your text to check it against limits such as 280 for a standard X post, 160 for one SMS segment or 100 for a YouTube title, and see how many characters remain.

Runs in your browser. Your text is never uploaded.

0Characters
0Characters (no spaces)
0Spaces and line breaks
0Words
0Lines
0Bytes (UTF-8)

Check against a limit

How to use the character counter

  1. Type or paste your text into the box. The counts update instantly.
  2. Read the character total, the total without spaces, and the byte size if you are storing the text in a database or file.
  3. Choose a limit from the list, such as an X post or a YouTube title, to see how many characters remain or how far over you are.
  4. For text messages, choose “SMS segments” to see which encoding your message needs and how many segments it will be split into.
  5. Edit your text until the status line turns green, then copy it back out with the Copy text button.

How the character counter counts

A “character” sounds simple, but computers store text in more than one way. This tool counts what a reader would call a character.

Worked example

Take this text:

Café 😀 #1
  • Characters you can see: 9 (C, a, f, é, space, emoji, space, #, 1).
  • UTF-16 length, which is what a JavaScript string reports: 10, because the emoji is stored as two units.
  • Size in UTF-8: 13 bytes, made up of 3 for “Caf”, 2 for “é”, 4 for the emoji, and 1 each for the two spaces, the hash sign and the digit.

The same idea affects text messages. A plain 159-character message fits one segment. Add one emoji and the message becomes Unicode, so it now counts as 161 units against a limit of 70 per single segment, and it is sent as 3 linked segments of up to 67.

Character limits for common platforms

Limits change, and some platforms do not publish theirs, so use this table as a guide and confirm in the platform's own editor.

WhereLimitSource
X post, standard280X Help Center
X post, Premium long post25,000X Help Center
YouTube video title100YouTube Help
YouTube video description5,000YouTube Help
SMS, one segment (GSM-7 / Unicode)160 / 70Twilio documentation
Instagram caption / bio2,200 / 150Third-party guide; not published by Instagram
LinkedIn post / headline3,000 / 220Third-party guide; not published by LinkedIn
Search result title and descriptionno fixed limitGoogle Search Central

Google says a meta description can be any length and that search results cut it to fit the device. The figures of about 60 characters for a title and about 160 for a description in the limit list are common rules of thumb, not limits set by Google.

Frequently asked questions

Do spaces count as characters?

Yes. The first total includes spaces and line breaks, because most limits, including X posts and SMS messages, count them. The second total leaves out all whitespace, which is useful for some forms and academic limits.

Why does an emoji count as one character here but two elsewhere?

Some software counts UTF-16 code units rather than visible characters. JavaScript string length and SMS Unicode messages do this, so a single emoji counts as two or more. This tool counts the symbol you see; the SMS option switches to code-unit counting because that is how segments are measured.

How many characters can I post on X?

A standard post is limited to 280 characters, and Premium subscribers can write longer posts of up to 25,000 characters, according to the X Help Center. X applies its own counting rules to links and some scripts, so check its composer if you are right at the limit.

How long should a meta description be?

Google sets no fixed length and shortens snippets to fit the width of the device, so a length of about 155 to 160 characters is a common guideline rather than a rule. Put the most useful words first in case the end is cut off.

How many characters fit in one text message?

One SMS segment holds 160 characters in the GSM-7 alphabet or 70 if any character needs Unicode. Longer messages are split into linked segments of 153 or 67 characters, according to Twilio. Choose “SMS segments” above to see which applies to your text.

Is my text uploaded or saved anywhere?

No. The counting happens in your browser and nothing is sent to a server. The text disappears when you close or reload the page.

Guides

Sources and references