Character Counter

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

Your workspace

Processed in your browser

Enter your values or try the example.

This tool provides a detailed breakdown of your text's length, calculating Unicode code points, UTF-16 code units, and total UTF-8 bytes to help you meet specific character limits.

Using the character counter

  1. Paste your text into the input area. The tool processes the content immediately.
  2. Review the results to see the count of code points, UTF-16 units, and UTF-8 bytes, which helps determine if your text fits specific storage or platform requirements.

Understanding different length metrics

Different systems count length differently. Unicode code points represent individual characters, while UTF-16 code units are how many environments (like JavaScript) measure string length. UTF-8 bytes are critical for database storage limits, as some characters consume more than one byte.

Check length of complex text

Café ☕

Unicode code points: 6, UTF-16 code units: 6, UTF-8 bytes: 8

Questions about character counting

Why do emoji count as more than one character?

Many emoji are composed of multiple code points or sequences. The tool counts the actual number of Unicode code points present in the string.

Which count should I use for database limits?

Use the UTF-8 bytes count if your database column has a strict byte limit, as this reflects the actual storage size required for the text.

Continue your workflow

Explore more tools in this category for your next step.