LocalExcelTool
Get started

Character Counter

Count characters, words, lines and bytes at once. Accurate for Japanese too.

What is Character Counter

A character counter counts the characters, words and lines in a piece of text. It is useful for social media character limits and manuscript checks, and can also show the UTF-8 byte size.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Four different answers to "how long is this"

The count is reported five ways because the five disagree: characters as people perceive them, characters excluding whitespace, words, lines, and UTF-8 bytes. A 100-character Chinese sentence is about 300 bytes, so a field that allows 200 bytes accepts roughly 66 of those characters. Which number matters depends entirely on where the text is going.

Characters are counted by iterating the string as code points, not by reading .length. That matters because JavaScript's .length counts UTF-16 code units: an emoji is 2 and a flag is 4, so a tweet of 140 emoji reports 280 by .length and 140 by code points. Platforms that enforce a limit use one rule or the other, and guessing wrong is how a post gets rejected.

What counts as a word

Words are counted by splitting on whitespace, which is right for English and wrong for Chinese and Japanese — text with no spaces reports one word no matter how long it is. The interface therefore also reports the CJK character counts separately, because for those languages the character count is the meaningful measure and the word count is noise.

Hyphenated compounds count as one word, as do URLs and email addresses, which is what most editorial guidelines intend but not what every CMS does. If a hard limit is being enforced somewhere, measure with that system's rule rather than trusting a general counter.

The limits people actually hit

A meta description starts truncating around 155–160 characters in search results, a title tag around 60, an X/Twitter post at 280 (with CJK and emoji weighted differently than Latin text), an SMS segment at 160 ASCII characters or 70 for anything non-GSM. All of those are measured in different units, which is why the byte count is shown alongside the character count.

Line counting treats CRLF, CR and LF as one break each, so a file saved on Windows and one saved on Unix with the same visible content report the same number. Byte counting does not — there the line endings differ by one byte per line, and that difference is enough to break a signature or a checksum comparison.

How to use

  1. 1.Paste your text
  2. 2.Read the results
  3. 3.Copy the numbers you need

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveNothing is stored, which also means a closed tab cannot be recoveredThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

Are spaces counted?

Yes. A separate count without spaces is shown too, so you can use whichever you need.

Does it handle Japanese and emoji?

Yes. Text is counted by Unicode code points, so an emoji counts as one character.

Is my text uploaded?

No. Counting happens entirely in your browser.

What this kind of conversion cannot keep

Text tools never leave the page: the string you paste is transformed in memory and written back to the result box. There is no request, no log and no retention, which also means there is no way to recover a value you closed the tab on.

More in Text