C# Char IsLetter() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Char

Definition

In C#, Char.IsLetter returns true when a character is a Unicode letter. That includes Latin A–Z and a–z, plus letters from many other scripts.

It is the usual check when you want “is this alphabetic?” without accepting digits or punctuation.

This is a static member of System.Char. You call it with the type name, such as Char.IsLetter(...) or char.IsLetter(...). A char holds one 16-bit UTF-16 code unit.

Syntax

Pass a char (or a string index overload).

C#
char c = 'A';
bool ok = Char.IsLetter(c);
CallWhat it does
Char.IsLetter(c)True if c is a letter.
Char.IsLetter(text, 0)Tests the char at index 0.

Digits and spaces return false. For letters or digits together, use IsLetterOrDigit.

Library declarations
C#
public static bool IsLetter(char c);
public static bool IsLetter(string s, int index);

Parameters

ParameterDescription
cRequired. The character to test.
s, indexOptional overload. Character at that string index.

Return Value

Return ValueDescription
trueThe character is a Unicode letter.
falseNot a letter.

C# Examples

Example 1 — Test Latin Letters

Check uppercase and lowercase English letters.

C#
using System;

class Program {
    static void Main() {
        char a = 'A';
        char z = 'z';
        char five = '5';

        Console.WriteLine("A: " + Char.IsLetter(a));
        Console.WriteLine("z: " + Char.IsLetter(z));
        Console.WriteLine("5: " + Char.IsLetter(five));
    }
}

How It Works

  1. Uppercase letter. 'A' is a letter.
  2. Lowercase letter. 'z' also passes.
  3. Digit fails. '5' is a digit, not a letter.
  4. Static call. Use Char.IsLetter with the value.

Example 2 — Keep Only Letters

Strip non-letters from a short string.

C#
using System;

class Program {
    static void Main() {
        string raw = "C# 2026!";
        string letters = "";

        foreach (char ch in raw) {
            if (Char.IsLetter(ch)) letters += ch;
        }

        Console.WriteLine(letters);
    }
}

How It Works

  1. Scan text. Loop gives one char at a time.
  2. Letter gate. Only alphabetic characters are appended.
  3. Symbols dropped. Digits, #, space, and ! are skipped.
  4. Result C. Only the letter C remains from the sample.

Example 3 — Accented Letter Counts

Show that é is still a letter.

C#
using System;

class Program {
    static void Main() {
        char eAcute = 'é';
        Console.WriteLine(Char.IsLetter(eAcute));
        Console.WriteLine(Char.IsAsciiLetter(eAcute));
    }
}

How It Works

  1. Unicode aware. IsLetter accepts letters beyond plain ASCII.
  2. Accented e. é is a lowercase letter category.
  3. ASCII helper differs. IsAsciiLetter is false because é is outside 0–127.
  4. Choose deliberately. Use ASCII helpers only when you want A–Z/a–z strictly.

Frequently Asked Questions

No. It accepts Unicode letters from many scripts.
No. Use IsDigit or IsLetterOrDigit.
Spaces are not letters; IsWhiteSpace covers them.
Yes: Char.IsLetter(s, index).
IsAsciiLetter (.NET 7+) is true only for A–Z and a–z.

Next: IsLetterOrDigit()

Return true when the character is a letter or a decimal digit with System.Char.

IsLetterOrDigit() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful