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.
Check against a limit
How to use the character counter
- Type or paste your text into the box. The counts update instantly.
- Read the character total, the total without spaces, and the byte size if you are storing the text in a database or file.
- 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.
- For text messages, choose “SMS segments” to see which encoding your message needs and how many segments it will be split into.
- 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.
- Characters. Each visible symbol is one character, including letters, digits, punctuation, spaces and line breaks. An accented letter or an emoji, even one built from several joined symbols, counts once. This follows the Unicode rules for user-perceived characters.
- Characters without spaces. The same count after removing every space, tab and line break.
- Bytes. The size of the text when saved as UTF-8, the encoding most websites and files use. Plain English letters take one byte each; accented letters take two, and most emoji take four.
- Limits. A limit check compares the character total with the chosen limit. Platforms may apply their own rules, for example by shortening links or weighting some scripts, so allow a margin when you are close.
- SMS segments. A message that uses only the GSM-7 alphabet fits 160 characters in one segment. Characters outside it, such as most emoji or non-Latin scripts, switch the message to Unicode, which fits 70 characters per segment. Longer messages are split into linked segments of 153 (GSM-7) or 67 (Unicode) characters each. A few GSM-7 characters, such as the euro sign, square brackets and curly braces, count as two.
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.
| Where | Limit | Source |
|---|---|---|
| X post, standard | 280 | X Help Center |
| X post, Premium long post | 25,000 | X Help Center |
| YouTube video title | 100 | YouTube Help |
| YouTube video description | 5,000 | YouTube Help |
| SMS, one segment (GSM-7 / Unicode) | 160 / 70 | Twilio documentation |
| Instagram caption / bio | 2,200 / 150 | Third-party guide; not published by Instagram |
| LinkedIn post / headline | 3,000 / 220 | Third-party guide; not published by LinkedIn |
| Search result title and description | no fixed limit | Google 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.
Related tools
- Word CounterLive word, character, sentence and paragraph counts, reading time and keyword density.
- Readability Score CheckerFlesch Reading Ease, grade-level scores and a list of overly long sentences.
- Flesch-Kincaid CalculatorGet the Flesch-Kincaid grade level and Reading Ease from text or from three counts.
- Case ConverterSwitch text between upper, lower, title, sentence, camelCase, snake_case and more.
- Fancy Text GeneratorTurn plain text into bold, script, gothic, circled and other copy-and-paste styles.
Guides
Sources and references
- X Help Center: About different types of posts — 280-character standard limit and 25,000-character Premium limit
- YouTube Help: Add video details — 100-character title and 5,000-character description
- Twilio: What is the SMS character limit? — GSM-7 and UCS-2 segment sizes
- Google Search Central: Control your snippets in search results — no fixed meta description length
- Unicode Standard Annex #29: Unicode Text Segmentation — user-perceived characters
- bundle.social: Instagram character limits guide — third-party figures for captions and bios
- Eden: LinkedIn character limits — third-party figures for posts and headlines