Text Tools
Character Counter
Count characters with and without spaces.
Your information is processed in your browser and is not uploaded to our servers.
Text
Characters
Characters (with spaces)
0
Characters (no spaces)
0
Lines
0
Words
0
About this tool
Characters are counted with JavaScript string length (UTF-16 code units), with a second total that ignores whitespace.
How to use
- Paste text.
- Compare characters with spaces, without spaces, lines and words.
Formula and methodology
characters = value.length. charactersNoSpaces = value.replace(/\s/g, '').length. lines split on newline.
Worked example
"Hi there" is 8 characters with spaces and 7 without.
Frequently asked questions
Do emojis count as one character?+
Some emojis use two UTF-16 code units, so they count as 2 here, matching JavaScript string length.
Is text stored?+
No.
Related tools
Word Counter
Count words, characters, sentences and estimated reading time.
Open tool →
Remove Extra Spaces
Collapse repeated spaces, trim lines and optionally squeeze blank lines.
Open tool →
Slug Generator
Turn a title into a URL-safe slug with lowercase letters, numbers and hyphens.
Open tool →
Case Converter
Switch text between uppercase, lowercase, title case, sentence case, camelCase, snake_case and kebab-case.
Open tool →
Remove Duplicate Lines
Drop duplicate lines from a list while keeping the original order.
Open tool →
Text Sorter
Sort lines A–Z, Z–A, by length, or shuffle them with a local random generator.
Open tool →