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.
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.
- Paste or type textPaste a social post, meta description, text message or form entry.
- Add a limit (optional)Enter the maximum, e.g. 280, and choose what it counts: characters, non-space characters, bytes or words.
- 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.
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 toolsReverse text, words or lines, or flip text upside down.
Put a list in random order or draw a random sample of lines.
Wrap each line in quotes, tags or text and join it all into one list.
Replace words or patterns in text, with regex and whole-word options.
Turn HTML into tidy Markdown with tables, lists, links and code.
Align Markdown table columns and turn spreadsheet data into tables.