Character Count (No Spaces)
Count only the non-whitespace characters in your text. Useful for length limits that exclude whitespace.
Characters (no spaces)
0
Characters (with spaces)
0
Words
0
Whitespace stripped
0
spaces, tabs, newlines
About Character Count (No Spaces)
This tool counts characters but excludes spaces, tabs, and newlines. Some platforms — academic word-limit calculators, certain SMS billing systems, and a few CMS fields — measure length without whitespace. The result is also useful when you want to know how much 'ink' a string contains independent of layout.
When to use it
- Meeting academic submission limits that count non-whitespace characters
- Estimating ink usage for printed labels
- Comparing two strings' substantive content regardless of formatting
- Counting characters in code where whitespace is mostly cosmetic
How it works
The text is iterated as Unicode code points; any code point matching the regex \s (space, tab, newline, and other Unicode whitespace) is excluded from the count. Everything else, including punctuation and emoji, is counted as one.
Examples
13 with the space; 12 without
Hello, world!
12 characters
Frequently asked questions
- What counts as whitespace?
- Any character matching \s in JavaScript regex: space, tab, line feed, carriage return, form feed, vertical tab, and various Unicode whitespace characters (no-break space, ideographic space, etc.).
- Does punctuation count?
- Yes. Only whitespace is excluded; punctuation, symbols, emoji, and letters all count.