Small tasks. A little easier.126 tools · No account required

Find your next tool

Search all 126 tools and their practical guides.

Text

Compare Unicode characters, UTF-16 units, and UTF-8 bytes

Count text using several technical measures and understand why an emoji can affect a form limit differently from a plain letter.

ERITHRA editorial3 min read

“Character limit” can describe several different measurements. A visible symbol, a Unicode code point, a JavaScript string unit, and an encoded byte are related, but they are not always interchangeable. ERITHRA’s Character Counter shows multiple totals so you can identify which one matches your destination.

Read the result labels

Paste the exact text you intend to use, including spaces and line breaks, then select Process text. Unicode code points counts the values produced by iterating through the string. Without whitespace removes whitespace before making that count.

UTF-16 code units reflects JavaScript’s string length. Some symbols require two units. UTF-8 bytes measures the encoded text produced by the browser’s UTF-8 encoder. This can be relevant to a byte-based storage or transfer allowance, but it is not the size of a complete file with unrelated headers or metadata.

Keep punctuation and whitespace intact while comparing limits. A form that counts spaces will not match the whitespace-free metric. If you copied a heading from a document, check whether its trailing line break came along with it.

Verify a three-symbol example

Enter A😀é, using the single precomposed é character shown here. The result is three Unicode code points, three without whitespace, four UTF-16 code units, and seven UTF-8 bytes. The letter A uses one UTF-8 byte, the emoji four, and é two.

Now add one ordinary space between A and the emoji. Code points rises to four, whitespace-free code points stays three, UTF-16 units rises to five, and UTF-8 bytes rises to eight. The space is real input even when it seems visually insignificant.

A visibly similar accented letter can also be built from a base letter plus a combining mark. That representation can produce different technical counts. The counter reports what is actually present; it does not normalize visually equivalent strings into one representation.

Match the destination’s definition

A family emoji or other combined symbol may contain multiple code points while appearing as one grapheme. Consequently, the Unicode count is not a universal count of visible symbols. Test the receiving form when its definition is unclear, especially for decorative text or emoji-rich content.

Processing remains in your browser. The tool counts text rather than scanning a document upload or validating a platform’s current publishing rules. Use Word Counter when the allowance is editorial length. YouTube Title Length Checker provides a more specific title workflow, while the technical measures here help explain why counts sometimes differ.

unicodecharacterstextencoding

Put it into practice

Keep reading