EditSafely

Count Unicode Characters

Quickly find the length of Unicode text. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

How to use Count Unicode Characters

  1. 1. Paste the text to measure. Paste the Unicode text you want measured. It can be a short label, a paragraph, or a string containing emoji and combining marks.
  2. 2. Read the four length counts. The tool reports four different counts at once: user-perceived graphemes, raw code points, UTF-16 code units, and UTF-8 bytes, since these numbers can diverge once emoji or accents are involved.
  3. 3. Pick the count that matches your constraint. Read off whichever count matches your constraint, such as a database column's byte limit or a UI's character limit, since the right number depends on what is actually being measured.

When to use Count Unicode Characters

Count Unicode Characters reports length four different ways at once, because a single character count is ambiguous the moment emoji, combining accents, or non-Latin scripts enter the string. It clears up why a text field, database column, and display all seem to disagree on how long a string is.

  • Debugging a database column length error. A field errors out as too long even though the string looks short, and checking the UTF-8 byte count here reveals that emoji or accented characters are pushing it past the column's byte limit.
  • Matching a UI character limit correctly. A tweet-style character counter and your own count disagree on a message with a flag emoji, and comparing grapheme count against code point count shows why the two tools measure differently.
  • Explaining why string.length lies about emoji. A JavaScript string.length reports 2 for a single family emoji, and showing the code point and UTF-16 counts side by side explains exactly where that discrepancy comes from.
  • Sizing a fixed-width field for internationalized input. A form field needs to accommodate names in multiple scripts, and checking byte counts for sample inputs with accents or non-Latin letters confirms the field's byte budget is generous enough.

Examples

Count

Input

café

Output

Graphemes: 4
Code points: 4
UTF-16 units: 4
UTF-8 bytes: 5

About the Count Unicode Characters tool

Count Unicode Characters runs as plain JavaScript in your browser tab, with no server behind it. Quickly find the length of Unicode text. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's Unicode Tools section, 98 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Count Unicode Characters free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.