Social platforms and APIs enforce different string constraints: some count visual glyphs, some count UTF-16 code units, and others enforce strict byte-size limits. This counter evaluates all three layers:
For example, given this snippet containing an emoji and accented text:
Café 🚀 Utiliome
The tool analyzes the string across three distinct metrics:
Visual Graphemes: 15
Characters (UTF-16): 16
UTF-8 Bytes: 19
Characters (no spaces): 13
The rocket emoji (🚀) counts as 1 visual grapheme, 2 UTF-16 code units (surrogate pair), and 4 bytes in UTF-8. The accented é is 1 grapheme and 2 bytes.