Character Counter

Count characters with and without spaces, accurately for emoji, accented letters and every writing system. Set a limit to see how many characters you have left.

Options

Result

Characters
0
Without spaces
0
Remaining
0
Spaces and tabs
0
Line breaks
0
Words
0
Unicode code points
0
UTF-16 code units
0
UTF-8 bytes
0

Processed in your browser. Nothing you type is uploaded.

How it works

Text is divided into grapheme clusters, the units a reader perceives as single characters, using your browser’s built-in Unicode segmentation. That means “é”, “👍🏽” and a flag emoji each count once, even though computers store them as two to eight code units.

Because some systems count differently, the tool also shows Unicode code points, UTF-16 code units (what JavaScript’s length and many older limits use) and UTF-8 bytes (what databases and file sizes often use).

Rules this tool follows

  • Characters includes letters, digits, punctuation, symbols, spaces, tabs and line breaks. A Windows line break (\r\n) counts as one character.
  • Without spaces removes all whitespace, including tabs, line breaks and non-breaking spaces.
  • Remaining compares your limit with the character count and shows how far over you are if you exceed it.
  • Code points count each Unicode scalar value; UTF-16 code units count pairs for emoji and rare characters; UTF-8 bytes count 1–4 bytes per code point.

Example

Input

Café 👍🏽

Output

Characters: 6
Without spaces: 5
Code points: 7
UTF-16 code units: 9
UTF-8 bytes: 14
The thumbs-up with a skin tone is one visible character but two code points and four UTF-16 units.

Common uses

  • Staying within limits for SMS, social posts, bios, ad copy and form fields.
  • Checking database column sizes (use the UTF-8 byte count).
  • Understanding why two platforms count the same message differently.

Limitations and notes

  • Platforms apply their own rules. Some count each emoji as two characters, some count URLs as a fixed length, and some count bytes. Use the extra figures to match the platform you are writing for.
  • Grapheme boundaries follow the Unicode version your browser supports; brand-new emoji may count as more than one character in older browsers.

Questions

Why does an emoji count as 1 here but 2 elsewhere?

Many systems count UTF-16 code units, and most emoji use two of them. This tool’s main count reflects what you see; the UTF-16 figure shows what those systems count.

Do spaces count as characters?

In the main count, yes. The “Without spaces” figure excludes them, along with tabs and line breaks.

All text counters