string length

Text size measurement

String length is a count of the characters in a sequence of text.

In computing, determining string length is fundamental: validating input, allocating memory, or truncating display text.

Different systems count differently—some count bytes, others count visible characters, which matters for languages with complex scripts or emoji.

The password must have a string length of at least eight characters.

Related

substring · text · bytes · trim · truncate · overflow · buffer · buffer overflow · terminator · array · index · limit · maximum · resize · stretch · elastic · rubber band · measuring tape

Opposites
magnitude

string lengthempty

Holding nothing inside

null

measurement type

string lengthfile size

Storage space occupied

data type

Family

string, strings, stringed, stringing, stringer, stringy, stringiness, length, lengths

Familiarity
Top 500,000
Profile
Known to kids · Used worldwide · Timeless · Concrete · Rated G