Skip to content
Zesona
Character CounterLocal

Character Counter

Count characters three ways - UTF-16 code units, Unicode code points and visible grapheme clusters - plus the UTF-8 byte size.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

0 characters

Processed entirely in your browser. Nothing is uploaded.

Try an example

Fill in Your text to continue.

Enter your input to see the result

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Paste your text to see all three character counts at once.

  2. 2

    Use the UTF-16 code unit count when checking against a platform character limit, since that is almost always what the limit counts.

  3. 3

    Use the visible character count when the question is how long the text looks.

Questions about Character Counter

Which count does a 280-character limit use?

Almost always UTF-16 code units, because that is what String.length gives in JavaScript and what most back ends store. That is why a post full of emoji runs out of room faster than one of plain text: each emoji can take two or more code units.

What is a grapheme cluster?

The unit a reader thinks of as one character. An e with a combining acute accent is two code points but one grapheme. A flag emoji is two regional indicator code points but one grapheme. This is the count that matches what you see on screen.

Does this handle emoji and accented characters correctly?

Yes. Text is processed as Unicode grapheme clusters rather than raw UTF-16 code units, so an emoji or an accented letter is treated as the single character it appears to be instead of being split into fragments.

Is my text uploaded anywhere?

No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your text, nothing is written to a server log, and the tool keeps working with your connection switched off. You can confirm it yourself in the browser’s network panel.

Does the Character Counter work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Character Counter keeps working with the network switched off and nothing is ever sent to a server.

Other tools you might reach for next.

Count words, characters, sentences, paragraphs and UTF-8 size, with all three definitions of "character" reported separately.

BrowserText tools

Count sentences using Unicode sentence segmentation, which handles abbreviations better than splitting on full stops.

BrowserText tools

Count paragraphs, treating one or more blank lines as the separator, plus words, sentences and lines.

BrowserText tools

Convert text between every common case style - upper, lower, title, sentence, camel, Pascal, snake, kebab and more.

BrowserText tools