piko

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

  1. Paste or type the text.
  2. Compare the units in the results.
  3. 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 Developer