Character Counter
Count characters with and without spaces, code points, UTF-16 units and UTF-8 bytes for any text.
Runs in your browserText → Text
Loading tool…
Example
Héllo 👋
Characters: 7 Characters (no spaces): 6 Unicode code points: 7 UTF-16 code units (JavaScript length): 8 UTF-8 bytes: 11 Letters: 5 Digits: 0 Whitespace: 1 Punctuation & symbols: 1 Lines: 1
How to use the Character Counter
- Paste or type your Text into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the Text result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Frequently asked questions
Why do the counts differ?
An emoji is one visible character but can be several code points, two UTF-16 units and four UTF-8 bytes. Databases and APIs often limit bytes or UTF-16 units rather than visible characters.
Related converters
Word CounterCount words, characters, sentences and paragraphs, and estimate reading and speaking time.Remove Duplicate LinesDelete repeated lines while keeping the first occurrence and original order, with case options.Sort LinesSort lines alphabetically, in reverse, naturally (item2 before item10) or by length.Reverse TextReverse characters, word order or line order. Emoji and accented letters are kept intact.Remove Empty LinesDelete blank and whitespace-only lines from text, logs or code.Invert CaseSwap upper case letters to lower case and lower case to upper case (tOGGLE cASE).Trim WhitespaceTrim leading and trailing spaces from every line and collapse repeated spaces and tabs.CONSTANT_CASE ConverterConvert identifiers and phrases to SCREAMING_SNAKE_CASE for constants and environment variables.