EditSafely

Count Unicode Characters

Quickly find the length of Unicode text.

Runs on your device, nothing uploaded

Try:

0 chars · 0 lines

Output

Quickly find the length of Unicode text.

Type or paste above to see the result here.

Example: Count

What you paste never leaves this tab

Count Unicode Characters is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Count Unicode Characters

  1. 1. Paste the text to measure. Paste a bio, post, SMS or database value. It can include emoji, flags and accents; the counts update as you type.
  2. 2. Read the big number first. The large number is characters as a person sees them, so a family emoji or a flag counts as one. Below it are tiles for code points, UTF-16 units, UTF-8 bytes, words, lines and SMS parts.
  3. 3. See why the numbers differ. The line under the big number names the character that inflates the counts the most, and says which count JavaScript, form limits and databases use. The SMS tile shows whether the message fits GSM-7 or needs UCS-2.
  4. 4. Copy what you need. Tap any tile to copy that number, or Copy the whole report as plain text.

When to use Count Unicode Characters

Count Unicode Characters reports length several 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

4 characters
4 code points
4 UTF-16 units
5 UTF-8 bytes
1 word
1 line
SMS: 1 part (GSM-7)

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,943 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; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

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.