Report UTF-16 units, Unicode code points, UTF-8 bytes, whitespace tokens, and physical lines separately.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
JavaScript length measures UTF-16 code units, iteration measures code points, and TextEncoder supplies RFC 3629 byte length. Words split on whitespace and lines split on LF with an optional preceding CR; a non-empty string starts with one line.
Hello, World!
Characters (UTF-16): 13 Code points: 13 Bytes (UTF-8): 13 Words: 2 Lines: 1
Database checks compare storage bytes with field limits, API clients diagnose emoji length mismatches, and import fixtures verify CRLF or LF line counts.