Unicode string length
Count Unicode code points, grapheme clusters, and UTF-16 units.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
String
Result
Processed text result.
Enter text to see the result
Code points: 0 · UTF-16: 0 · Graphemes: 0
What this tool does
- Count characters by Unicode code point (the default): 你好😀 counts as 3.
- Switch to grapheme clusters (a combined emoji counts as 1) or UTF-16 code units (😀 counts as 2); without Intl.Segmenter the grapheme mode falls back to code points.
- All three counts are shown at once so you can compare one string under different counting rules.
Example
Input
Hello 😀
Output
7
The example uses the default code-point mode where 😀 is one code point and two UTF-16 code units; all three counts are shown.
Frequently asked questions
Does it use the network?
No, all calculations run locally in the browser.
Does it access real files?
No, it only processes text entered in the form.
What happens for invalid input?
The tool validates it strictly and reports an error.
Keywords:Unicode string lengthstrlentextlist