Premium tools, free for everyone. Most run right in your browser.

OpenMultiURL

Text and writing

How to Count Characters in Text, With and Without Spaces

How to Count Characters in Text title on a coloured card with a text counting theme

A short answer can still be too long for a form. And counting words won't tell you whether it fits. When I explain how to count characters in text, I start with the exact text you're about to submit, including its spaces and punctuation. I built Character Counter for that quick check. But I also want you to understand why a document, a spreadsheet and a message app can show different totals for what looks like the same text.

How do I count characters in text online?

For a single answer, title or message, I use Character Counter. I built it and tried the paste, edit and recheck steps below. I test my tools on a budget Android phone and a laptop, because a quick text check should be practical on either. My aim here isn't to make you learn technical terms before you can finish a form.

My step-by-step check with Character Counter

  1. Copy the exact passage you need to measure, rather than the whole document around it.
    • I check that the selection starts with the first word of my answer and includes its final punctuation.
    • I leave out headings and notes that won't go into the destination field.
  2. Open Character Counter and paste your text into its text area.
  3. Read the character total and check the wording beside it. Don't use a word total as a substitute.
  4. Edit your wording if necessary, then check the updated text again.
  5. Paste the final version into the destination field and confirm that it accepts the complete text.

I keep the destination's instructions beside me. A requirement for characters excluding spaces is different from a general character limit. If the rule is unclear, I work from the count including spaces until I can confirm it. That avoids treating the smaller total as permission to submit more text.

Tip from me: On my phone, I check the start and end of the pasted passage before editing. A missed sentence or an extra copied heading makes an accurate counter answer the wrong question.

What counts as a character, including spaces?

For ordinary text, I start by counting letters, numbers, punctuation and spaces. A comma isn't decoration outside the text. It's part of it. But I avoid saying every tool counts every character the same way, because line breaks and Unicode text need a closer look.

I use these short examples to make the difference between the two totals clear.
TextIncluding spacesExcluding spaces
Open URL87
Count this text1513
Hello, world!1312

How I read a count without spaces

When instructions say characters without spaces, I look for a total explicitly labelled that way. I don't delete all the spaces from my actual answer. That would change readable text into joined words. I keep the original passage intact and use the requested measurement.

I also separate the idea of a space from all blank-looking text. A trailing space sits after the final visible character. A line break separates lines. A tab may look like a wide gap. I check how the destination handles these instead of assuming that excluding spaces means ignoring every kind of blank area.

And I keep word count separate. If an assignment asks for words, I use Word Counter. If a form asks for characters, a word total doesn't answer it. Two passages with the same number of words can contain quite different amounts of text.

How do I count characters in Word and Google Docs?

If I'm already writing in a document, I usually check its built-in count before copying anything elsewhere. The main thing I watch is scope: am I measuring the whole document or just the answer I need? A correct document total can still be useless for a limit on one paragraph.

My Google Docs method

In Google Docs, I open Tools > Word count. The dialog reports characters and characters without spaces, so I match the figure to the requirement. For a passage, I select that text before opening the count. I check that my selection doesn't include a heading or a note that won't be submitted.

My Microsoft Word method

In Word, I open the Word Count box and read its character statistics rather than stopping at the visible word total. Microsoft documents that Word counts as you type and that selecting text lets you count the selection. If I only need an answer from the middle of a document, I select that answer first.

I use the official Google Docs word-count instructions and Microsoft Word counting instructions when checking these steps. After editing, I reopen the count. The total from an earlier draft doesn't prove that my final wording fits.

How do I count characters in Excel cells?

For a list of text entries, I prefer a spreadsheet to repeatedly copying each entry into a browser. Excel's LEN function measures the text in a cell. That makes it useful when my task is checking a column of titles or short answers rather than polishing one passage.

  1. Put the text you want to measure in cell A1.
  2. In another cell, enter =LEN(A1).
  3. Read the result as the length of A1, not as a word count.
  4. For further rows, use the matching cell reference so each formula measures the intended entry.

I pay particular attention to trailing spaces here. Microsoft's Excel character-count documentation says LEN counts letters, numbers, punctuation and spaces, including spaces at the end of a cell. A cell can therefore look finished while still containing a space after its final word.

I don't remove spaces blindly just to make a result smaller. First I check whether they belong in the text. Then I correct the entry and recalculate. And if the final destination has its own counter, I still check there. A spreadsheet result isn't a promise that another system uses identical counting rules.

Which character-counting method should I use?

I choose the method that keeps me closest to the actual text. Moving a whole document into another tool just to measure one sentence adds an unnecessary selection step. But opening a document editor for a short copied answer can be unnecessary too.

This is how I choose a counting method for the task in front of me.
My taskMy first choiceWhat I verify
Check one copied passageCharacter CounterExact text and the count label
Edit a Google documentTools > Word countWhole document or selection
Edit a Word documentWord Count boxCharacter statistics, not just words
Review text in spreadsheet rowsExcel LENCell references and trailing spaces
Submit a strict form answerDestination fieldIts limit and accepted final text
Prepare an SMSMessaging service's rulesEncoding and segment count

My preference for a quick browser counter is about convenience, not a claim that its result overrides every other system. For formal submissions, the destination's rule is the one I need to satisfy. If its total differs, I investigate the difference rather than choosing whichever number makes my draft fit.

I also separate measurement from editing. A counter tells me how much text I have under its rules. It doesn't tell me which sentence matters most. I decide that from the purpose of the answer, then count again after making the change.

Why do character counters show different totals?

When totals disagree, I first check that I'm comparing identical text and the same kind of count. Characters including spaces and characters excluding spaces aren't competing answers. They're different measurements. If those checks don't explain it, I look at line breaks and how the systems represent text.

Why one visible character can contain more

Unicode distinguishes a code point from a user-perceived character. I think of a code point as a numbered unit used to represent text. A visible letter with an accent can be represented by a letter followed by a combining accent. What looks like one character can therefore involve multiple code points.

Unicode uses grapheme clusters as a best-effort approximation of the characters people perceive. I don't treat that as a perfect universal definition either. The appropriate count can depend on the script and context, as the Unicode text segmentation standard explains.

This matters for emoji and accented text. I can't promise that one visible symbol always adds one to every counter. Nor do I assume a line break is ignored because it has no printed shape. When a destination rejects text that appears to fit elsewhere, I check its rules before removing meaningful characters.

Tip from me: I change one suspected cause at a time in a copy of the text. That lets me see whether spaces, line breaks or a particular symbol explain the difference without damaging my original.

How do I count characters in a text message?

For SMS, I check more than the ordinary character total. The encoding and number of message segments matter too. I wouldn't use a general-purpose character counter as an SMS billing calculator, because the same-looking amount of text can require different handling.

  • For Twilio SMS using GSM-7, a single segment holds up to 160 characters.
    • For concatenated messages, Twilio documents 153 GSM-7 characters per segment.
  • For Twilio SMS using UCS-2, a single segment holds up to 70 characters.
    • For concatenated messages, Twilio documents 67 UCS-2 characters per segment.
  • A non-GSM character, such as an emoji or smart quote, can cause Twilio to use UCS-2.
    • I check the encoding instead of assuming that every message has the 160-character capacity.

These figures come from Twilio's SMS character-limit documentation. I name the service because I don't want you to mistake its documented rules for a permanent rule covering every messaging app, carrier or channel.

My workflow is to draft the message, count the text, then check the final version in the sending service. I review its encoding and segment information before sending. If I change punctuation afterward, I check again. A small visual change can matter more than its appearance suggests.

What mistakes should I avoid when counting characters?

The mistakes I watch for are mostly mismatches between the task and the measurement. I can count a passage perfectly and still submit the wrong thing if I measured an older draft or included a heading that wasn't part of the answer.

  • Using word count for a character limit. I check the label, not just the number.
  • Assuming spaces don't count. I follow the written requirement rather than choosing the smaller total.
  • Forgetting the selection. I check both ends of the passage I copied.
  • Cleaning text without reviewing the changes. I keep paragraph breaks that carry meaning.
  • Editing after the final check. I recount the version I will actually submit.

If I find unwanted spacing, I can use Text Cleaner as part of the cleanup. If unwanted breaks are the specific problem, I can use Remove Line Breaks. But I review the result before counting again. Joining separate paragraphs isn't an improvement if it makes the answer confusing.

I also avoid cutting useful words at random. I remove repeated ideas first, then rewrite a long phrase in simpler words. My goal is a complete answer that fits, not merely a smaller number. Once I've edited, I return to the counter with the revised passage.

How do I verify a character limit before submitting?

My final check happens where the text will be used. A counter helps me prepare, but a strict form or app applies its own rules. I read any instructions beside the field and look for whether the limit includes spaces or excludes them.

  1. Copy the final version, after all wording and punctuation changes.
  2. Paste it into the actual destination field.
  3. Read the destination's displayed count or warning, if it provides one.
  4. Check that the ending is still present and the complete answer was accepted.
  5. If it doesn't fit, revise the original text and repeat the check.

If totals still disagree, I compare the exact selection, spaces at the edges, empty lines and special characters. I don't assume either counter is broken before checking those differences. And I don't delete accents or meaningful punctuation just to make the numbers agree.

I prefer clear wording with some room left rather than filling every available character for its own sake. But I don't invent a universal safety margin. The right length is the shortest version that says what you need and meets the destination's stated requirement.

Questions people ask

Do spaces count as characters?

I normally include spaces unless the instructions explicitly exclude them. Punctuation matters too. But I check the destination's wording instead of treating that as a universal rule. If it offers separate counts, I use the one matching the requirement and verify the final text in the actual field.

How do I count characters without spaces?

I use a result specifically labelled characters without spaces, such as the one in Google Docs under Tools > Word count. I keep spaces in the actual writing. Removing them from the answer would change the text, while reading the appropriate statistic gives me the measurement I need.

Do line breaks count as characters?

I don't assume line breaks are ignored. Some tools include them, and different systems can handle them differently. If a count changes after I paste a passage, I inspect paragraph breaks and empty lines. For a strict submission, I check the destination's own count or acceptance rules.

Do emojis count as one character?

I don't treat one visible emoji as a guaranteed single character in every system. A visible character can involve multiple code points, and tools may measure different units. For SMS, I also check encoding, because Twilio documents that an emoji can trigger UCS-2 and reduce single-segment capacity.

How can I count characters in only part of a document?

I select the exact passage before opening the document's count feature. In Word, I use the Word Count box; in Google Docs, I use Tools > Word count. Alternatively, I copy only that passage into Character Counter, checking that I haven't included a heading or missed the final sentence.

Why do different character counters show different totals?

I first compare the selected text and whether both totals include spaces. Then I check trailing spaces, line breaks and Unicode characters. A visible accented letter can contain multiple code points, so counting methods can differ. For a submission limit, I verify the final version in the destination.

What to do next

I start with the exact passage, count it under the right rule and finish by checking it where it will be submitted. That's more reliable than guessing from word count or assuming every visible symbol counts the same way. Copy your final text into Character Counter now and read the total. Then compare it with your requirement, revise any repeated wording and paste it into the destination. If the numbers disagree, check the selection, spaces, line breaks and special characters before changing the meaning of your answer.

Sources I checked

Tools from this guide

Keep reading