Why an emoji can have several different counts
This counter uses grapheme clusters when Intl.Segmenter is available. UTF-8 bytes are reported separately. A family emoji can be one grapheme cluster but 25 UTF-8 bytes, so the unit matters when checking an input limit.
Reproduce Korean and emoji edge cases
Our public 24-fixture reference compares UTF-16 units, code points, grapheme clusters and UTF-8 bytes. It includes composed and decomposed Korean, accents, flags and joined emoji, with downloadable JSON and a reproduction script.
Check the receiving form’s rule before relying on a count. This counter preserves spaces; older browsers without Intl.Segmenter fall back to code-point counting and can give a different result for combined sequences.
Continue with the task you need
- Need exact inputs for a tutorial or regression test
Use the original reusable fixture data and measured results. 24 Unicode character-count examples and data

