Skip to content
AZ Tools

Character & Word Counter

Count characters, words, sentences, lines, and bytes in real time.

0
Characters
0
No spaces
0
Words
0
Sentences
0
Lines
0
Bytes

How to use

  1. Type or paste your text into the text area.
  2. The statistics update instantly as you type.
  3. Use 'characters without spaces' for strict length limits.
  4. Use the byte count to check UTF-8 storage size.
  5. Click Clear to start over.

About this tool

Show

Type or paste and watch the counts move: characters with and without spaces, words, sentences, lines, and the size in UTF-8 bytes. The point of showing them side by side is that they disagree, and the disagreement is what bites when a limit is being enforced somewhere you cannot see — a post that must fit, a meta description that must not be truncated, a column that counts bytes rather than letters.

Characters here means Unicode code points, which is already a better answer than most code gives. JavaScript's own .length counts UTF-16 units, so a grinning face 😀 reads as 2 there and as 1 here. But code points are not the last word either. The family emoji 👨‍👩‍👧‍👦 is a single thing on screen and counts as 7, because it is four people joined by three invisible zero-width joiners — and it occupies 11 UTF-16 units and 25 UTF-8 bytes. Nothing is wrong in any of those four numbers; they are answers to four different questions.

Bytes are the number that surprises people from outside the Latin alphabet. An ASCII letter is one byte, an accented Latin letter is two, 한 and most CJK characters are three, and an emoji is four. So a 255-byte field holds 255 English characters or 85 Korean ones, and a message that looked well within a limit in one language overflows it in another. When a system's limit is described in "characters", it is worth finding out which of these it means before trusting the margin.

Two counts are approximations by nature. Words are whitespace-separated runs, which works for languages that put spaces between words and does not for Chinese, Japanese or Thai, where a whole paragraph counts as one. Sentences are splits on ., !, ? and their full-width equivalents, so an abbreviation like Dr. Smith reads as two sentences and a decimal point inside a number reads as a boundary. Both are fine for a rough sense of length and wrong for anything that has to be exact.

Frequently asked questions

How are characters counted?

Characters are counted by Unicode code points, so emoji and accented letters count correctly.

How are words counted?

Words are sequences separated by whitespace; multiple spaces or line breaks don't inflate the count.

What is the byte count?

It's the size of your text encoded as UTF-8, which is how most systems store and transmit text.

Is my text stored anywhere?

It stays in your browser. Your input is saved locally so it's still there when you return, but it's never uploaded.

Why does a social platform count my post differently?

Because most platforms apply their own rules rather than counting characters. Links are usually replaced by a fixed-length placeholder no matter how long the URL is, and some services weight characters by script, charging one unit for Latin and two for CJK. Use this count as the true length of your text and the platform's own indicator as the final word.

Why does one emoji count as more than one character?

Because what looks like one emoji is often several code points underneath, and code points are what this counter counts. 😀 is one and counts as 1, but a flag is two regional-indicator letters and the family emoji is four people joined by three zero-width joiners, so it counts as 7. JavaScript's .length and many length limits count UTF-16 code units instead, where every emoji outside the basic range takes two, so the same text comes out longer there.

How long should a meta description be?

Around 150-160 characters is the usual advice, but search engines truncate by rendered width rather than character count, so a line full of wide characters is cut earlier than a narrow one. Treat the number as a guide, put the important words first, and the truncation point stops mattering.

Related tools