Skip to content

UTF-8 Byte Counter

Count UTF-8 bytes and compare them with visible characters, Unicode code points, and UTF-16 code units.

Counting runs only in this browser. Text is not uploaded.

UTF-8 bytes
0
Visible characters
0
Unicode code points
0
UTF-16 code units
0

Input size: 0 B.

Advanced metrics and definitions
Words
0
Lines
0
Characters excluding literal spaces
0
Characters excluding all Unicode whitespace
0

Visible characters use grapheme clusters. A grapheme can contain several code points; a code point can use two UTF-16 code units; and UTF-8 may use several bytes. “Excluding spaces” removes only U+0020, while the separate whitespace metric removes Unicode whitespace.

UTF-8 examples

A = 1 byte; é = 2 bytes; 漢 = 3 bytes; 😀 = 4 bytes. This is text encoding size, not the final size of a DOCX, PDF, or other formatted file.

UTF-8 byte definition

The primary result is the number of UTF-8 bytes in the entered text. Visible characters, code points, and UTF-16 code units are shown separately.

A text byte count is not necessarily the final file size of a DOCX, PDF, or other formatted document. Processing remains browser-local.

Using this tool

UTF-8 byte counting

Measure UTF-8 bytes alongside grapheme clusters, Unicode code points, UTF-16 code units, words, and lines.

Input and output

Example: `é` and `😀` each look like one character but occupy more than one UTF-8 byte.

Important behaviour

Use the metric your destination specifies: storage and API limits often use bytes, while form limits often use visible characters.

Keep in mind

The page reports counts only; it does not change the text.

Conversion is performed in the browser. Copying or downloading happens only when you choose those actions.

🔗 Related tools

Other Helpful Tools

A few related projects that pair well with this tool. Fast, focused, and privacy-friendly.