One Click Answers

Characters with spaces vs without spaces: which count do you need?

Use the count that matches whoever set the limit: with spaces or without. Every character counter can give two totals, one that counts spaces and one that does not, and which you need depends on who set the limit, and the wrong one can leave you a few characters over.

The same text, counted twice

Characters in two sample strings
TextWith spacesWithout spaces
Hello, world!1312
One Click Answers1715

Spaces are characters like any other, so the with-spaces total is always equal to or larger than the other. The difference is the number of spaces, tabs and line breaks.

Which count is usually used

  • Social posts, text messages and form fields normally count spaces, because the limit is on what is stored or sent.
  • Meta descriptions and titles count the whole string, spaces included.
  • Some academic, translation and publishing requirements count without spaces. The instructions should say.

Line breaks

A line break counts as at least one character in many systems and as two in some older ones. If you are close to a limit, remove extra blank lines before you count.

When in doubt

Read the instructions for the exact words they use. If they just say characters, assume spaces are included. Keep a small margin under the limit, because the destination may count slightly differently from your tool.

A quick way to check by hand

The two totals are linked: characters with spaces minus the number of spaces equals characters without. In the sample sentence Hello, world! there is one space, so 13 minus 1 gives 12. If the two figures from a tool do not fit that rule, the text probably contains tabs, line breaks or other whitespace that you cannot see.

Character Counter: Paste your text to see characters with and without spaces, and how close you are to common limits.

Published by OneClickAnswers.

You might also wonder...

Try it yourself

← All articles

Got another question?

Free, no account. Answers show how they were worked out.