Count characters with and without spaces, letters, digits and lines in any text.
How to use
- Paste or type your text.
- Press Count.
- Read the totals.
Good to know
Counting happens in your browser. Nothing is uploaded. Line breaks count as characters in the with spaces total.
Need to know exactly how many characters your text has? Use this free online character counter
This free online character counter takes any text you paste in and, when you press the Count button, reports six figures: characters with spaces, characters without spaces, letters, digits, spaces and lines. Nothing is sent anywhere. The counting happens in your browser, so it is safe for drafts, notes and private messages.
What does the Character Counter do and why is it useful?
Many writing tasks come with a hard limit measured in characters rather than words. Meta descriptions, product titles, ad headlines, form fields, SMS messages, database columns and bio sections all cut you off at a fixed number. A word counter tells you how long a piece feels to read, but only a character count tells you whether it will fit in the box.
The tool gives you a small breakdown instead of a single number, because different limits count different things. One system counts every character including spaces, another ignores spaces, and a validation rule may only care about digits. Seeing all figures side by side saves you from running the text through several tools.
How does the character counter work under the hood?
There is one textarea and one button. Nothing updates while you type. The results appear only after you press Count, and pressing it again recalculates from whatever is currently in the box. Each figure follows a simple definition:
- Characters with spaces: the total length of the text, with spaces included.
- Characters without spaces: the length after every whitespace character has been removed. That means spaces, tabs and line breaks are all dropped.
- Letters: only the basic Latin letters A to Z and a to z. Accented letters such as e with an acute accent, and letters from other alphabets, are not included in this figure.
- Digits: the characters 0 to 9.
- Spaces: only the ordinary space character. Tabs and line breaks are not counted here.
- Lines: the number of lines in the text.
Because letters and digits use fixed ranges, punctuation, symbols, emoji and accented characters appear in the totals but not in the letters or digits figures. That is why letters plus digits plus spaces will often be lower than the total.
How do you use the Character Counter step by step?
- Paste or type your text into the textarea.
- Press the Count button.
- Read the six results: characters with spaces, characters without spaces, letters, digits, spaces and lines.
- Edit the text if you are over a limit, then press Count again to see the new figures.
Remember that the numbers do not change by themselves. If you edit the text and forget to press the button, the old results stay on screen.
What do real results look like? Worked examples
Example 1: a short greeting
Input: Hello World
- Characters with spaces: 11
- Characters without spaces: 10
- Letters: 10
- Digits: 0
- Spaces: 1
- Lines: 1
Example 2: letters and numbers mixed
Input: Order 66 now
- Characters with spaces: 12
- Characters without spaces: 10
- Letters: 8
- Digits: 2
- Spaces: 2
- Lines: 1
Example 3: alternating letters and digits
Input: A1 B2 C3
- Characters with spaces: 8
- Characters without spaces: 6
- Letters: 3
- Digits: 3
- Spaces: 2
- Lines: 1
Example 4: an accented letter
Input: café, with the final letter typed as a single accented character.
- Characters with spaces: 4
- Characters without spaces: 4
- Letters: 3, because the accented letter is outside A to Z and a to z
- Digits: 0
- Spaces: 0
- Lines: 1
Example 5: three lines
Input, with each phrase on its own line:
Line one Line two Line three
- Characters without spaces: 23, because all whitespace including the line breaks is removed
- Letters: 23
- Digits: 0
- Spaces: 3, one inside each line
- Lines: 3
The two figures matching in the last example is a handy check: when the text contains only letters and whitespace, characters without spaces and letters should be equal.
Notice that every example is small enough to check by hand. Doing that once with your own short sample is a good way to confirm the definitions above before relying on the tool for a long document.
Tips and best practices
- Check which kind of count your target uses. A platform that says "characters" almost always includes spaces, so use the with-spaces figure. A rule that says "no spaces" needs the other one.
- Leave a small safety margin under hard limits. Some systems count certain characters differently, for example emoji, so landing exactly on the limit can still fail.
- For search snippets, count your title and description before publishing. The slug generator and the meta tag generator pair well with this step, since the meta tag tool also shows lengths for titles and descriptions.
- Use the digits figure to sanity check codes, phone numbers or reference numbers where an exact number of digits is required.
- If you need to change capitalisation before counting, the case converter can prepare the text first. Capitalisation does not change character counts, but it helps when you are tidying a draft.
Common mistakes to avoid
- Forgetting to press the button. The tool does not recount as you type. Press Count after each edit.
- Mixing up the two totals. Characters with spaces is always equal to or higher than characters without spaces. Using the wrong one is the most common reason a text is rejected.
- Expecting accented letters in the letters figure. Only A to Z and a to z are counted as letters, so text in other alphabets will show a low letters figure while the totals stay accurate.
- Counting spaces as all whitespace. The spaces figure is only the ordinary space character. A text that uses tabs for alignment will show fewer spaces than you might expect.
- Pasting extra blank lines. Trailing blank lines from copied text can raise the line count. Trim the end of your text if the number looks too high.
Who uses a character counter?
Writers and marketers use it for headlines, ad copy and meta descriptions. Students use it for assignments and application forms that cap answers at a given length. Developers use it to test input validation, database field sizes and API payload limits. Social media managers use it to fit posts into platform limits. Translators and editors use it to compare how much space two language versions take up. Anyone filling in an online form with a strict maximum will find it saves guesswork.
Is my text private?
Yes. The tool runs entirely in your browser. The text you enter is not uploaded to a server and is not stored by the tool. When you close or refresh the page, the content is gone. You can paste confidential drafts without worrying about where they end up. As with any web page, avoid pasting passwords or other secrets into a text box unless you need to.
What are the limitations?
- Results appear only after pressing Count. There is no live updating.
- The letters figure covers A to Z and a to z only.
- The tool reports counts. It does not highlight, trim or edit your text, and it has no copy button, file upload or history.
- Different platforms may measure length in their own way, for example by bytes or by weighted characters. If a platform uses an unusual rule, treat this count as a close guide and confirm with the platform itself.
Frequently asked questions
Does the character count include spaces?
The tool shows both. Characters with spaces counts everything, and characters without spaces removes all whitespace first.
Are line breaks counted as spaces?
No. The spaces figure counts only the ordinary space character. Line breaks and tabs are removed in the without-spaces figure and are not counted as spaces.
Why is my letters count lower than I expected?
Only A to Z and a to z count as letters. Accented characters, other alphabets, numbers, punctuation and emoji are excluded from that figure, although they are included in the totals.
Does it update while I type?
No. Press Count to see results, and press it again after every change.
Is there a limit on text length?
The tool sets no limit of its own. Very large pastes depend on your browser and device memory.
Can I count the characters in a single line only?
Yes. Paste just that line into the textarea and press Count. The lines figure will show 1.
What is the difference between this and a word counter?
A word counter measures words, while this tool measures characters. For reading time and essay length use the Word Counter. For fitting text into a fixed-size field, use this one.
Count once, publish with confidence
A quick count before you publish can prevent cut-off titles, rejected forms and truncated messages. Try the character counter whenever a limit matters, and browse the rest of our free tools for more small utilities that run in your browser.
