TextyConverterbeta
⌘K

Character Counter

Count characters, words, lines, and more in your text. Includes spaces by default. Browser-only.

Characters (with spaces)
0
Characters (no spaces)
0
Words
0
Lines
0
Reading time
0s

About Character Counter

The character counter reports the total number of Unicode code points in your text, including spaces, punctuation, and newlines. It's the same count platforms like Twitter, SMS, and meta-description fields use to enforce length limits. The tool runs entirely in your browser — your text is never uploaded.

When to use it

  • Checking that a tweet fits in 280 characters
  • Verifying that a meta description stays under 155 characters for SEO
  • Counting the length of a database field value
  • Sanity-checking how long a generated string is
  • Comparing input vs. output length of another conversion

How it works

The text is iterated as Unicode code points via Array.from. Emoji and characters from astral planes (which JavaScript stores as surrogate pairs) are counted as a single character. Spaces, newlines, tabs, and punctuation all count.

Examples

Hello, world!
13 characters
Emoji and accented letters each count as one
café 🎉
6 characters

Frequently asked questions

Does it count emoji correctly?
Yes. Single-codepoint emoji are counted as one. Multi-codepoint emoji sequences (👨‍👩‍👧, country flags) are counted as the sum of their parts, which matches how Twitter and most platforms count them.
Is the count the same as String.length?
Not always. String.length counts UTF-16 code units, so emoji and other astral-plane characters count as 2. This tool counts code points, matching what users intuitively perceive as a 'character'.
Is my text uploaded?
No. Counting runs entirely in your browser.

Related tools