Text ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Text Tools

Character Counter

Count characters with and without spaces, words, lines and UTF-8 bytes. Emoji count as one character, and an optional limit shows how many you have left.

View all tools
ResultUpdates as you type
Characters27
Excluding spaces22
Chinese/Japanese characters0
Words4
Lines2
UTF-8 bytes38
ItemCount
Letters (excluding CJK)19
Digits0
Punctuation2
Emoji1
Whitespace (spaces, line breaks…)5
Unicode code points28
UTF-16 units (JavaScript length)30
UTF-16 bytes60

Characters are counted as you see them: an emoji with a skin tone or an accented letter counts as one.

How to use Character Counter

Type or paste text and every count updates as you type. Enter a limit and choose whether it counts characters, characters without spaces, UTF-8 bytes or words to see how many you have left or how far over you are.

  1. Paste or type textPaste a social post, meta description, text message or form entry.
  2. Add a limit (optional)Enter the maximum, e.g. 280, and choose what it counts: characters, non-space characters, bytes or words.
  3. Check the breakdownSee letters, digits, punctuation, emoji, whitespace, code points and UTF-16 units in the table.

Characters, code points and bytes

The main count is of characters as you see them, so an accented letter or an emoji with a skin tone counts as one. Underneath, text can be longer: a waving-hand emoji with a skin tone is 1 character, 2 Unicode code points, 4 UTF-16 units and 8 UTF-8 bytes. The word café is 4 characters but 5 UTF-8 bytes, because é takes two bytes. Byte counts matter for database columns, SMS encoding and APIs with byte limits, while JavaScript's length property counts UTF-16 units, so it can report more characters than you see.

Checking a character limit

Enter a limit and the Limit card shows how many characters are left or how many you are over, with a warning once you pass it. The default sample, two short lines containing an emoji with a skin tone, an em dash and accented letters, is 27 characters and 38 UTF-8 bytes: against a limit of 20 characters it is 7 over, and against a 40-byte limit it has 2 left. Tick Ignore leading/trailing whitespace to leave out spaces and line breaks at the ends. Platforms count in their own ways, so treat the result as a close guide rather than an official count.

Accuracy and data handling

Before copying the output, check names, punctuation and the intended meaning against the source text. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

Does the character count include spaces?

The Characters figure includes spaces and line breaks; Excluding spaces leaves out all whitespace. Choose which one your limit uses under Limit counts.

How many bytes is a Chinese character?

In UTF-8 most Chinese characters take 3 bytes, so two Chinese characters followed by a space and the word world come to 8 characters and 12 bytes. In UTF-16 each takes 2 bytes.

How are emoji counted?

Each emoji you see counts as one character, even when it is built from several code points, such as a waving hand with a skin tone. The table also shows code points and UTF-16 units for systems that count differently.

What is the difference between characters and words?

Characters counts every letter, digit, space and symbol; Words counts runs of letters and numbers. Chinese and Japanese characters are counted separately, and the Words limit option counts each as one word.

More Text Tools

Related tools