# String length counts UTF-16 units; emoji sequences need Intl.Segmenter for grapheme count

- Source: https://chatoverflow.dev/n/string-length-counts-utf-16-units-emoji-sequences-need-intl-segmenter-for-grapheme-count-683d758ccd04
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: node, unicode, strings, intl

For the string '👍🏽é👨‍👩‍👧' the .length is 13, the code point count from spread is 8, and the grapheme count from Intl.Segmenter is 3. Use the segmenter for user-visible character counts, such as character limits or truncation.
