How to Count Characters With and Without Spaces

A character count either includes spaces or leaves them out, and the difference is usually 15% to 20% of the total. Most forms specify which they want, and the ones that do not are the ones that cause trouble.

Why the two counts exist

Counting without spaces measures the amount of actual content. Counting with spaces measures how much room the text takes up. Typists were once paid by the keystroke including spaces, which is one reason the distinction survives.

Forms that ask for a character limit almost always mean with spaces, because that is what the field stores. The without-spaces figure is useful for comparing the density of two pieces of writing.

Paste text to get both counts at once.

Open the Character Counter →

The size of the gap

In ordinary English prose, spaces make up roughly 15% to 18% of the characters, because the average word is about five letters and is followed by one space.

Text typeWithout spacesWith spacesGap
500 words of prose2,6003,10016%
A tweet of 240 characters20524015%
A code snippet48056014%
A list of short items30038021%

Lists and headlines have a bigger gap, because the words are shorter. Code has a smaller gap unless it is indented.

What else counts as a character

Line breaks are characters. In most systems a newline counts as one, and a Windows line ending counts as two. That is why pasting text from a document can change the count without any visible difference.

Tabs, non-breaking spaces and other invisible characters all count. Copying from a web page often brings them along, which is why a pasted paragraph can be longer than the same text retyped.

Emoji and accented letters

Emoji usually take more than one code unit. A simple smile can be a single code point but two UTF-16 units, so a platform that counts code units will charge you two for it. Family emoji built from several people can take seven or more.

Accented letters are usually one character but can be two if the accent is a separate combining mark. Both forms look identical on screen and count differently, which is a common surprise in forms with tight limits.

Where the distinction matters

Bio fields, meta descriptions, SMS messages, database columns and form validations all have limits, and each may count differently. A 160-character SMS limit counts spaces, and an accented character can push a message into a second segment.

Meta descriptions are usually measured in characters including spaces, with roughly 155 to 160 being the point where search results truncate. Our guide on post limits covers the platform figures.

Counting in a word processor

Word processors report characters with and without spaces, and they usually exclude line breaks from the second figure. That difference from a web form is small but real.

For anything that will be pasted into a form, count with the tool the form uses rather than with the word processor. The safest check is to paste the text in and see what the counter says.

Trimming a text to fit

If a text is over the limit, the fastest cuts are the same ones that improve it: remove adverbs, replace phrases with single words, and drop the second half of any sentence that restates the first.

Cutting a character at a time from the end is what people do under pressure, and it produces an abrupt ending. Cut a clause instead, so the text still finishes properly.

Bytes are not characters

A byte count is different again. In UTF-8, an ASCII letter is one byte, an accented letter is two, and many emoji are four. A database column defined in bytes can therefore hold fewer characters than its size suggests.

If a system rejects text that fits the character limit, the column is probably measured in bytes. That is worth knowing before you rewrite the text.

Common mistakes

A quick way to estimate

Divide the without-spaces count by 0.84 to get a rough with-spaces figure for ordinary prose. It is accurate enough to know whether you are near a limit.

For lists and headlines, use 0.80. For code, use 0.86. These are estimates for planning, not for submitting.

Why this shows up so often

Every platform with a limit has to define what it counts, and almost none of them explain it in the interface. The result is a small, recurring frustration that a two-second check removes.

Once you know that most limits count spaces and that invisible characters are the usual culprit, most of the surprises disappear.

Frequently asked questions

Do spaces count as characters?

In most form limits, yes. The without-spaces count is a separate measure used for content analysis.

How many characters is 500 words?

About 2,600 without spaces and 3,100 with spaces for ordinary prose.

Why does my pasted text count higher?

It probably brought invisible characters such as non-breaking spaces or Windows line endings.

Sources

More free tools

Related guides