Skip to content
Free developer tool

UTF-8 byte counter

This tool counts how many bytes your text takes in UTF-8, the encoding used by most web pages, APIs and databases. It is useful when a database column, HTTP header or API field has a byte limit rather than a character limit.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

37 characters

Normalize
NFC joins accents to letters; NFD splits them apart.

Result

UTF-8 bytes43
Code points
35
Visible characters
34
UTF-16 code units
37
Normalization
none, counted as typed

The short answer

UTF-8 uses 1 byte for ASCII characters, 2 bytes for most accented Latin, Greek and Cyrillic letters, 3 bytes for most other symbols, and 4 bytes for emoji and rarer characters. The byte count, not the character count, is what matters for limits on database columns, headers and API fields.

Formula1 byte for U+0000 to U+007F, 2 bytes up to U+07FF, 3 bytes up to U+FFFF, 4 bytes above that

Worked exampleHello 👋🏽 from the café in São Paulo is 43 UTF-8 bytes, from 35 code points, 34 visible characters and 37 UTF-16 code units, counted as typed with no normalization.

Example

Input
Hello 👋🏽 from the café in São Paulo
Result
UTF-8 bytes43
Code points
35
Visible characters
34
UTF-16 code units
37
Normalization
none, counted as typed

How to use the utf-8 byte counter

  1. Paste text into the Text to count box.
  2. Set Normalize to As typed, NFC or NFD.
  3. Read the UTF-8 byte count and the other totals, which update as you type.
  4. Press Copy result or Download the counts.

How it works

The result leads with the UTF-8 byte count, then shows code points, visible characters, UTF-16 code units and the normalization used.

Plain ASCII characters use 1 byte each, accented letters usually 2, many other symbols 3, and most emoji 4.

NFC joins letters and accents into single characters where possible, which can lower the count. NFD splits them apart, which can raise it.

Every character in the box counts, including spaces and line breaks.

Visible characters counts what a reader sees as one symbol, so an emoji built from several code points counts once there.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

Why is the byte count bigger than the character count?

UTF-8 uses 1 to 4 bytes per code point. Letters outside basic English, and emoji, take more than one byte.

What is the difference between NFC and NFD?

They are two ways to write the same text. NFC uses one code point for é where possible, while NFD writes it as e plus a combining accent. Pick the form your system stores.

Why does JavaScript string length differ from the code point count?

JavaScript length counts UTF-16 code units. Characters such as most emoji use two units, so length can be larger than the number of code points.

Is my text sent anywhere?

No. Counting happens in your browser.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools