Guide

How to Count Characters (With and Without Spaces)

Understand the difference between character counts with and without spaces, and where exact character limits matter online.

A character counter measures the exact length of a string. The two numbers that matter most are characters with spaces and characters without spaces, because different platforms count differently.

With spaces vs. without spaces

The "with spaces" count includes every character — letters, digits, punctuation, and whitespace. The "without spaces" count excludes spaces, tabs, and newlines. A 160-character SMS limit counts spaces; some database fields and display counters do not. Knowing which one a platform uses prevents nasty surprises.

Where character limits matter

  • SMS: 160 characters per segment (with spaces).
  • Twitter/X: 280 characters per post.
  • SEO meta description: ~155–160 characters before Google truncates.
  • SEO title tag: ~60 characters before truncation.
  • URL slugs and alt text: keep concise for usability.

How to use a character counter

  1. Paste your text and watch the live count as you edit.
  2. Identify which count the platform uses (with or without spaces).
  3. Trim filler words, redundant adjectives, or extra whitespace to fit.
  4. Re-check after editing — small cuts add up fast.

Examples

The meta description "Free online tools for words, math, converters and developers — no sign-up required." is 82 characters with spaces, comfortably under the 155–160 truncation point. Adding a call-to-action such as "Try them now." brings it to 99 characters, still safe.

When a character counter is useful

  • Writing social posts, ad copy, and SMS within hard caps.
  • Crafting SEO titles and meta descriptions that won't be truncated.
  • Checking the exact length of a password or token.
  • Measuring strings for form fields with maxlength attributes.

Put it into practice

Use the Character Counter right now — free, in your browser, no sign-up required.

Try the Character Counter