Text & Developer tool

Character Counter: Count Characters and Spaces Online

Count characters with and without spaces, and check common length limits.

  • Instant results
  • Working shown
  • No sign-up
  • Runs in your browser
ToolUpdates as you type
0
characters including spaces
  • Characters without spaces0
  • Letters0
  • Digits0
  • Symbols and others0
  • Words0
  • Lines0
  • SMS (160)160 left
  • Meta description (160)160 left
  • X (Twitter) post (280)280 left
How it works

This character counter counts your text as you type. It shows characters with spaces and without spaces, letters, digits, special characters, words and lines. It also compares your text with limits for a tweet, SMS and meta description.

This character counter shows how long your text is. Paste or type it in, and you get the count with spaces, without spaces, and several useful details.

How to use the character counter online

  1. Type or paste your text.
  2. Look at characters with spaces and without spaces.
  3. Compare with a limit such as 280, 160 or your form's own number.
  4. Edit until the text fits.

What this character counter tool shows

Count What it includes
Characters with spaces Everything
Characters without spaces Everything except spaces
Letters Alphabet letters
Digits 0 to 9
Special characters Marks such as ! @ # , .
Words Groups separated by spaces
Lines Rows of text

Character counter with spaces: a worked example

Take the text Java 17 is fun!

  • Letters: J, a, v, a, i, s, f, u, n = 9.
  • Digits: 1, 7 = 2.
  • Special: ! = 1.
  • Spaces: 3.
Characters without spaces = 9 + 2 + 1 = 12
Character count including spaces = 12 + 3 = 15
Words = 4

If a form gives a limit and says nothing about spaces, use a character counter including spaces. Most software counts a space as a character.

Common mistake: A common mistake beginners make is leaving double spaces or a space at the end. They cannot be seen easily, but they use up the limit.

Common limits

Place Limit or target
Tweet (standard post on X) 280
Single SMS, basic alphabet 160
Single SMS with Unicode text 70
Meta description About 160, a target and not a fixed limit

Two warnings help here. X counts links and some emoji in its own way. An SMS in Telugu or Hindi normally uses Unicode, so it holds 70 characters instead of 160. A longer message is split into parts.

Limits can change, so check the box where you paste your text.

Counting a character in text

Sometimes you want to know how many times one letter appears. This tool counts totals, not one chosen letter. In a document, press Ctrl+F and search for the letter; many editors show the number of matches.

Programmers do it with a loop. This is a classic exercise, and our Java strings lesson and Java string methods guide explain the parts you need.

Pro tip: For a search for one whole word, include a space before and after it. Searching "cat" also finds "category".

How to shorten a long text

Try these in order:

  1. Remove words that add nothing, such as "very" and "really".
  2. Change "in order to" into "to".
  3. Change "is able to" into "can".
  4. Split off extra details into a second message.

An example: "I am writing this message in order to ask about the job" has 55 characters. "I am writing to ask about the job" has 33. The meaning is the same.

Characters or words?

Forms with small boxes usually limit characters. Essays usually limit words. For an essay, use the word counter, which also shows sentences, paragraphs and reading time.

A character is also not always one byte. English letters take 1 byte in UTF-8, while most Telugu and Hindi letters take 3. Database limits may use bytes or characters, so check which one your system means. The SQL commands guide is a good start if you are learning databases.

Your profile headline has a limit too. Draft it with help from resume summary for freshers, then check the length here.

Frequently asked questions

Do spaces count as characters?
Yes, in most limits. The tool shows the count both with spaces and without, so you can use whichever the form asks for.
How many characters are allowed in a tweet?
The standard limit is 280. X has special counting rules for links and emoji, so its own count can differ from a plain count.
How many characters are in one SMS?
A single SMS holds 160 characters in the basic alphabet. Messages that use other scripts or emoji usually drop to 70.
How long should a meta description be?
About 150 to 160 characters is a common writing target. Google has no fixed limit and may show a shorter or different text.
Does a line break count as a character?
It is stored as a character, though some sites count it differently. Trust the count on the form where you submit.

Try another tool

See all free tools
Chat with us