String Length Calculator

// Calculate string length in chars, bytes, and encodings

0
Characters
0
JS Code Units
0
UTF-8 Bytes
0
UTF-16 Bytes
0
Words
0
Lines

#About String Length Calculator

Free online string length calculator. Get the length of any string in characters, bytes, UTF-8, and UTF-16 encoding units. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

#FAQ

Why are character count and byte count different?
Characters and bytes differ because multi-byte encodings like UTF-8 use more than one byte for non-ASCII characters. For example, an emoji might be 1 character but 4 bytes in UTF-8.
</> Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/string-length-calculator" width="100%" height="500" frameborder="0" title="String Length Calculator"></iframe>

#Related