Loading...
Calculate string length online for free. Count bytes, characters, and code points. UTF-8 support.
Enter text to calculate various string lengths
Type or paste text to measure length
Generate comprehensive length measurements
See different length calculations and what they mean
Type or paste text to measure length
Generate comprehensive length measurements
See different length calculations and what they mean
Different encodings and counting methods produce different lengths. Unicode emoji can be 1 character, 2-4 code units, or 1 grapheme cluster.
For VARCHAR fields, use UTF-8 bytes for storage planning. For character limits, use grapheme clusters for user-perceived count.
Grapheme clusters represent user-perceived characters, correctly counting complex emoji (like 👨👩👧) as 1 instead of multiple code points.
UTF-8 bytes indicate actual file size, transmission size, and storage size in databases using UTF-8 encoding.