String length
Measure a string in several meaningful ways at once, including emoji and Hebrew.
Input
Characters
0Code points
0UTF-16 units
0Words
0Lines
0About this tool
This tool measures the length of any string in five ways at once. Computers count characters, emoji and combining marks differently, so a single "length" number is often misleading β here you see graphemes, Unicode code points, UTF-16 code units, words and lines side by side.
Frequently asked questions
- Why does one emoji count as several characters?
- Many emoji, such as π¨βπ©βπ§, are built from several Unicode code points joined together. As a grapheme (what you see) it is one character, but its code point and UTF-16 counts are higher β which is exactly why each measure is shown separately.
- Which count matches JavaScript's string length?
- The UTF-16 units value matches JavaScript's raw .length property. The Characters (grapheme) value matches what a person counts by eye.