UTF-8 Byte Counter

Count UTF-8 bytes, Unicode code points, and lines as you type.

UTF-8 Byte Counter

Text statistics
UTF-8 size
0 B
Unicode code points
0
Lines
0

When you need byte counts, not character counts

If a limit is measured in bytes rather than characters, paste the exact text you plan to use. The UTF-8 byte count updates as you type.

Example: A letter with an accent, a space, and emoji

Enter é A☕ without a line break to get 7 B. The é takes two bytes, the space and A each take one, and ☕ takes three.

When the count is larger than you expected

Trailing spaces and line breaks count too. Press Enter once at the end of the example to get 8 B. An empty field counts as 0 B. Characters that look the same can have different byte sizes if they are encoded as different sequences of characters.

Unicode code points are not the same as visible characters. Empty input has zero lines, and a trailing line break adds an empty line.

The editor may normalize pasted line endings to LF. These counts describe the editor text, not the original file’s byte size.