How to Use the String Length Checker
Paste or type any text and get instant analysis:
- Characters: Total count, with and without spaces
- Words: Whitespace-delimited word count
- Sentences: Based on terminal punctuation (.!?)
- Paragraphs: Based on line breaks
- Bytes: Size in UTF-8, UTF-16, and ASCII encoding
- Unicode: Grapheme clusters (visual characters) vs. code points vs. JavaScript .length
All counts update in real time as you type.
Why Different Counts Differ
String length varies by measurement:
- JavaScript .length: Counts UTF-16 code units. Most characters = 1, but emojis and CJK characters may = 2 (surrogate pairs)
- Grapheme clusters: What humans perceive as 'one character'. The family emoji 👨👩👧👦 is 1 grapheme cluster but 7 code points joined by ZWJ (zero-width joiner)
- UTF-8 bytes: ASCII characters = 1 byte, most European characters = 2 bytes, CJK = 3 bytes, emojis = 4 bytes each
This tool shows all three so you can pick the right measurement for your use case.
Platform Character Limits
Common character limits to check against:
- Twitter/X: 280 characters
- SMS: 160 characters (GSM-7) or 70 (Unicode)
- Meta description: ~155-160 characters for Google SERPs
- Meta title: ~50-60 characters
- Instagram caption: 2,200 characters
- YouTube title: 100 characters
- URL slug: Recommended under 60 characters
The tool highlights when your text exceeds these limits.
Step-by-Step Instructions
- 1Type or paste your text into the input area.
- 2View real-time counts for characters, words, sentences, and paragraphs.
- 3Check byte sizes in UTF-8 and UTF-16 for technical applications.
- 4Review platform limit indicators to ensure your text fits Twitter, SMS, or SEO requirements.
- 5Explore the character frequency breakdown for text analysis.