★

String Length and Byte Size Calculator

Count the characters in a string and its size in bytes in UTF-8 and UTF-16.

Updated · Free · No sign-up

Send on WhatsApp

How to use the String Length and Byte Size Calculator

Type or paste your text into the first box. The result appears immediately in the second box, ready to copy or download. Replace the sample text with your own.

Worked example

Input:

Price ₹500 – 20% off 🎉

Output:

Characters: 22
UTF-16 code units (JavaScript length): 23
Bytes in UTF-8: 29
Bytes in UTF-16: 46
Lines: 1

Frequently asked questions

What does the String Length and Byte Size Calculator do?

Count the characters in a string and its size in bytes in UTF-8 and UTF-16.

Is the String Length and Byte Size Calculator free to use?

Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.

Related online tools