String Length Calculator
Analyze text length: character count, UTF-8 byte length, UTF-16 length, word count, and line count.
Processed on your device β never uploaded
0
Characters
0
UTF-8 Bytes
0
UTF-16 Length
0
Words
0
Lines
Input Text
Frequently Asked Questions
What is the difference between character count and byte length?
Character count is the number of visible characters, while byte length measures storage size in UTF-8 encoding where non-ASCII characters use 2-4 bytes each.
Why is UTF-16 length different from character count?
UTF-16 length matches JavaScript's .length property, which counts surrogate pairs (like emojis) as 2 units instead of 1 character.
How are words counted?
Words are counted by splitting text on whitespace, so any sequence of non-space characters separated by spaces, tabs, or newlines counts as one word.