Text Length

Calculates the length of the text.




Text length - 0 characters.

How This Converter Works

Reports JavaScript string length, which counts UTF-16 code units rather than Unicode code points or grapheme clusters.

Formula or rule

Length = input.length (number of UTF-16 code units).

Example

Input
A😀B
Calculation
A is 1 code unit, 😀 is 2 surrogate code units, and B is 1 code unit.
Result
4