Devkit

String length

Measure a string in several meaningful ways at once, including emoji and Hebrew.

Input
Characters
0
Code points
0
UTF-16 units
0
Words
0
Lines
0

About 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.