String Length / Byte Size
Measure visible characters, Unicode code points, UTF-16 units, and UTF-8 bytes.
Runs on your device. Nothing you add is uploaded.
UTF-8 bytes
16
Visible characters
12
Unicode code points
12
UTF-16 units
13
How to use String Length / Byte Size
- Paste or type the text.
- Compare the units in the results.
- Use the byte count for storage or transfer limits.
Questions
Why can the counts differ?
One visible character can use several Unicode code points or UTF-8 bytes. JavaScript string length measures UTF-16 units.
Where is my input processed?
On your device. The tool does not upload the input or its result.
How this works
Combines TextEncoder, Unicode grapheme segmentation, and JavaScript string length.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in DeveloperLine Ending Converter (CRLF/LF)
Normalize Windows, Unix, or classic Mac line breaks to LF or CRLF.
Character Counter
Count visible characters with and without whitespace.
JSON Formatter
Indent JSON so objects and arrays are easy to read.
JSON Viewer (Tree)
Explore JSON objects and arrays in a collapsible tree.