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
- Type or paste your text.
- Look at characters with spaces and without spaces.
- Compare with a limit such as 280, 160 or your form's own number.
- 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:
- Remove words that add nothing, such as "very" and "really".
- Change "in order to" into "to".
- Change "is able to" into "can".
- 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.
