TechCompare LogoTechCompare

Count characters with or without spaces

No whitespace excludes spaces, tabs, and line breaks. It still includes letters, numbers, punctuation, and emoji.

A character count with spaces measures the whole text, while a count without whitespace leaves out spaces, tabs, and line breaks. Those are different rules, and neither one is automatically right for every task. The Character Counter shows both totals together so you can inspect a draft without deleting its formatting. Use the setting that matches the instructions for your form, assignment, or publishing workflow.

By TechCompare · Updated

Example characters
33
Visible characters, including whitespace
Example words
6
Counting topic
Characters without spaces

Calculator

Character Counter

Example text

Count this text. Keep the spaces!

Characters
33
Words
6
Sentences
2
Paragraphs
1
Lines
2
No whitespace
28

How this is calculated

Consider a sentence with spaces between its words and a line break after it. Each space adds to the full total. The line break adds another character after line endings are normalized. The no whitespace count removes those characters from the calculation, leaving the visible content in place. It also excludes less obvious whitespace, such as a nonbreaking space copied from a web page. That matters when two drafts look alike but carry different spacing. The editor doesn't rewrite your draft when you switch the setting. It changes the count you see. The text breakdown lists whitespace separately, which gives you a quick way to explain the difference between the two totals.

Verdict

Start with the full count unless your destination explicitly asks for characters without spaces. If its instructions say only spaces are excluded, confirm whether tabs and newlines are treated the same way. This tool's no whitespace rule removes all three, so a destination with a narrower rule can report another total. After trimming a draft, check it in the actual submission field before sending. Don't remove useful spacing just to lower a number. Clear writing usually benefits from readable words and paragraphs, and a small rewrite often saves space without damaging that structure.

More Counting scenarios

Frequently asked questions

Does the character count include spaces?
Yes, the main count includes spaces, tabs, and line breaks by default. The No whitespace card excludes all of them. Open Counting options to change the main count. Windows and classic Mac line endings are normalized to one line break.
Can I count only certain characters or words?
Yes. In Count only, type characters together or enter one word or phrase per line. You can match case and choose whole words or substring matches. Duplicate targets are counted once. Matches don't overlap within one target, but separate targets can match the same text.
What's the difference between a line and a paragraph?
A line ends at a line break. Empty lines and a final line break count toward the line total. A paragraph is a nonempty block separated from the next block by a blank line. Visual wrapping in the editor doesn't add lines or paragraphs.
How are emoji, words, and sentences counted?
Visible character mode groups a complete emoji or an accented letter as one character when your browser supports it. Code point mode counts the underlying Unicode code points. Word and sentence boundaries use browser text segmentation with an English locale. Abbreviations and languages can affect counts. Older browsers use simpler fallback rules. See Unicode text segmentation for the underlying boundary concepts.
Is my text uploaded or saved?
Counting runs in your browser. This tool doesn't upload or save your text and doesn't put it or your custom search terms in the URL. Share links open an empty counter. Copy text or counts if you want to keep them before closing or reloading the tab.
Can I count just part of my text?
Select text in the editor, then choose Selected text. The counts, custom matches, writing limit, breakdown, and word frequency panel all use that selection. Choose Full text to return to the entire document.