# String Length

say it: **“string LENGKTH”** **/strɪŋ lɛŋkθ/**

The number of UTF-16 code units in a String.

## What is **String Length** in C#?

**String Length** — The number of UTF-16 code units in a String.

```csharp
class Location
{
    void InspectName()
    {
        string city = "Denver";
        int characterCount = city.Length;
        char firstCharacter = city[0];
        string firstThree = city[..3];
    }
}
```

Level: Apprentice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=2)

Updated: November 17, 2026

## In other subjects

- [String Length in Java](https://www.ask-codey.com/glossary/string-length)
- [String Length in JavaScript](https://www.ask-codey.com/glossary/string-length-javascript)

Source: https://www.ask-codey.com/glossary/string-length-c-sharp
