Calculate the length of any string including spaces and special characters.
String Length Calculator gives you the exact character count of any string, including spaces, punctuation, and unicode characters — useful for hitting exact length limits in code, database fields, or forms. It's free and calculates entirely in your browser as you type.
Made for writers and students. Typical uses:
Explore more in Text Tools, read the guides and articles, or see how we test our tools.
Count characters, letters, and spaces in any text.
Best for fitting a post, caption or bio inside a platform limit
Count words, characters, sentences, and paragraphs in any text.
Best for checking word count for essays, articles, and blog posts
Count characters for SEO meta titles and descriptions.
Best for finalizing a page's title and meta description together before publishing
Truncate text to a specific character or word limit.
Best for trimming a meta description to fit Google's roughly 155-160 character display limit
Count lines in any text instantly.
Best for checking how many lines of code a snippet has before pasting into a form with line limits
Convert regular expressions to plain string patterns.
Best for storing a regex pattern as a string field in a JSON config file