UTF-8 Byte Length

UTF-8 bytes, code points, and UTF-16 code units.

Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab.

What UTF-8 Byte Length does

Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab.

This URL is only for UTF-8 Byte Length (developer · utf8 bytes). UTF-8 bytes, code points, and UTF-16 code units. Other Developer tools on Tool-You look similar in the chrome, so the job definition below is the part that belongs to UTF-8 Byte Length alone: Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab.

How to use UTF-8 Byte Length

  1. Keep this tab on UTF-8 Byte Length (/developer/utf8-bytes). Pasting into the wrong Developer tool (for example Word Counter) changes the job.
  2. Paste or type the input UTF-8 Byte Length expects. Path hint: developer · utf8 bytes. UTF-8 bytes, code points, and UTF-16 code units.
  3. Apply the UTF-8 Byte Length action only. Hash Text is a different transform (Hash text with SHA-2, SHA-1, or MD5.). Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab.
  4. Copy the output of UTF-8 Byte Length if you need it elsewhere. Size/complexity still follows: TextEncoder UTF-8 length. Code points use [...s].length.
  5. If the text job is actually Count words, characters, lines, and UTF-8 bytes., leave UTF-8 Byte Length and open Word Counter.

When not to use UTF-8 Byte Length

Skip UTF-8 Byte Length when a neighbor tool matches better — start with Word Counter or Hash Text — or when the description already warns the job will fail. In the tool’s own words: Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab.

Questions about UTF-8 Byte Length

What does UTF-8 Byte Length do that other Developer pages on this site do not?
Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab. Short version: UTF-8 bytes, code points, and UTF-16 code units.
Does UTF-8 Byte Length upload my file or text to Tool-You servers?
No. UTF-8 Byte Length runs in this browser tab. Files stay on the device. Limit note: TextEncoder UTF-8 length. Code points use [...s].length.
Should I use Word Counter instead of UTF-8 Byte Length?
Use UTF-8 Byte Length when you need UTF-8 bytes, code points, and UTF-16 code units. Use Word Counter when you need Count words, characters, lines, and UTF-8 bytes. They share a category (Developer) but not the same job.
What are the limits of UTF-8 Byte Length?
TextEncoder UTF-8 length. Code points use [...s].length. Also: Counts UTF-8 bytes with TextEncoder, plus JS code points and UTF-16 units. Unlike Word Counter this is not words. Unlike Hash Text this is not a digest. Empty is zero. Stays in this tab.