UTF-16 code unit length
ClientCount UTF-16 code units (JavaScript string .length).
2 UTF-16 code unit(s)
Nearby workflows on Toolcore
- Grapheme count — Count user-perceived characters (grapheme clusters). for the next text or markup step in your edit loop.
- Unicode code points — Show Unicode code point for each character in text—UTF-16 code units, browser-only inspector. for the next text or markup step in your edit loop.
- Word & character count — Words, characters, lines, and reading time—paste any text, all client-side. for the next text or markup step in your edit loop.
- Unicode normalization — Apply NFC, NFD, NFKC, or NFKD normalization to text—code point counts and copy output, browser-only. for the next text or markup step in your edit loop.
About this tool
Surrogate pairs count as two units—matches JS .length.
Common use cases
- UTF-16 code unit length for quick local checks without uploading data.
- Copy results into tickets, docs, or classroom notes.
Common mistakes to avoid
Unexpected input shape
See the intro and how-to notes for accepted formats.
FAQ
Is processing local?
Yes—this runs entirely in your browser.
Agent prefill?
Use q or qb for the main text field when supported.
More tools
Related utilities you can open in another tab—mostly client-side.
Grapheme count
ClientCount user-perceived characters (grapheme clusters).
Unicode code points
ClientShow Unicode code point for each character in text—UTF-16 code units, browser-only inspector.
Word & character count
ClientWords, characters, lines, and reading time—paste any text, all client-side.
Unicode normalization
ClientApply NFC, NFD, NFKC, or NFKD normalization to text—code point counts and copy output, browser-only.