Tools
Runs locally

UTF-8 Length

Byte length, not character length.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Byte length, not character length. Runs in the browser. Nothing is uploaded.

About this tool

A VARCHAR limit, an HTTP header or an SMS gateway may count bytes, not characters. Paste the text to see its UTF-8 byte length; Cyrillic and Armenian letters take two bytes each, emoji four.

How to use it

  1. 01

    Paste the text.

  2. 02

    Read the length in bytes.

  3. 03

    Compare it with the limit you need to meet.

FAQ

Frequently asked questions

Why is the byte count bigger than the character count?

Characters outside ASCII need two to four bytes in UTF-8; for example café is 4 characters but 5 bytes.

How do I count characters instead?

Use the Character Counter.