How it works
- Paste the text or the string you need to measure.
- Read the bytes in UTF-8 on the highlighted card, and UTF-16 in the table below.
- If your limit is in bytes, choose “Bytes (UTF-8)” as the limit and type the maximum.
Good to know
In UTF-8 a character takes from one to four bytes: one for unaccented Latin letters, digits and common punctuation, two for accented Latin, Greek, Cyrillic, Hebrew and Arabic letters, three for most Chinese, Japanese and Korean characters, four for emoji. In UTF-16 almost everything takes two bytes and emoji take four.
This is why a column of 255 bytes does not hold 255 characters, and why a text with emoji is longer than it looks. The table also shows Unicode code points and UTF-16 units, which is what JavaScript, Java and many web forms call the length of a string.
Why this counter
Counts what you see
An emoji, a flag or a letter with an accent is one character, as a reader would count it. The numbers that programs use are shown next to it.
Right in every language
Words follow the rules of word processors. Japanese, Korean and Chinese get their own numbers: bytes, full-width characters, manuscript paper.
Limits ready to use
A post on X, a text message, a search snippet, an application form: pick the limit and see how much room is left.
Your text stays with you
Everything is counted by your browser. The text is not sent to a server and nobody else can read it.
Questions and answers
How many bytes is one character?
It depends on the character and on the encoding. In UTF-8: “a” is 1 byte, “é” is 2, “字” is 3, “😀” is 4. In UTF-16: 2, 2, 2 and 4.
Are line breaks counted?
Yes, as one byte each in UTF-8. Tick “Count each line break as two bytes” if the text will be stored with Windows line endings.
What is the difference between characters and bytes?
Characters are what you read; bytes are the space the text takes in memory or in a file. Old systems, databases and some APIs set their limits in bytes.
Is my text sent anywhere?
No. The counting is done by your browser, on your device. The text is not sent to our server or to anyone else, and it is not saved unless you tick “Keep my text on this device”.
Is there a limit on the length of the text?
No fixed limit. A whole book can be pasted; with very long texts the numbers appear a moment after you stop typing.
Why does another counter show a different number?
Counters differ on three things: whether line breaks are characters, whether an emoji is one character or several, and what makes a word. This page shows each of these numbers separately, so you can find the one your form or program uses.