String Length Calculator
Paste text and see its length in characters, bytes, words, lines and sentences, updated live as you type.
- Runs in your browser
- Free, no sign-up
What this tool gives you
Characters vs bytes
Unicode characters, UTF-16 units and UTF-8 bytes, because emoji and accents are not one byte.
Words and sentences
Quick totals for editors, copywriters and anyone fighting a character limit.
Line statistics
Total lines, non-empty lines and the length of the longest one.
Frequently asked questions
Why are characters and bytes different?
UTF-8 stores ASCII in one byte but accented letters in two and most emoji in four. Database and API limits are often in bytes, not characters.
What are UTF-16 units?
The length JavaScript and Java report with .length. Characters outside the Basic Multilingual Plane, like many emoji, count as two units.
How are words counted?
Any run of non-whitespace characters is a word. Hyphenated words count once; numbers and URLs count as words too.
What is the ideal meta description length?
Keep it under about 155 characters so search engines do not truncate it, and put the key message in the first 100.