In C#, Char.IsAsciiLetter returns true for ASCII letters A–Z and a–z only.
Accented letters fail. These ASCII helpers are available in .NET 7 and later. On older runtimes, use range checks such as c >= '0' && c <= '9'.
This is a static member of System.Char. You call it with the type name, such as Char.IsAsciiLetter(...) or char.IsAsciiLetter(...). A char holds one 16-bit UTF-16 code unit.
Syntax
Pass a character to test for A–Z/a–z.
C#
bool ok = Char.IsAsciiLetter('Z');
Call
What it does
Char.IsAsciiLetter(c)
True for A–Z or a–z.
Digits return false.
Library declarations
C#
public static bool IsAsciiLetter(char c);
Parameters
Parameter
Description
c
Character to test.
Return Value
Return Value
Description
true
ASCII letter.
false
Not an ASCII letter.
C# Examples
Example 1 — Z and é
Compare ASCII and non-ASCII letters.
C#
using System;
class Program {
static void Main() {
Console.WriteLine(Char.IsAsciiLetter('Z'));
Console.WriteLine(Char.IsAsciiLetter('é'));
Console.WriteLine(Char.IsLetter('é'));
}
}
Output
True
False
True
How It Works
Z passes. Plain ASCII letter.
é fails ASCII. Outside A–Z/a–z.
IsLetter true. Unicode still sees a letter.
Choose scope. ASCII vs full Unicode.
Example 2 — Upper and Lower
Show A and a both pass.
C#
using System;
class Program {
static void Main() {
Console.WriteLine(Char.IsAsciiLetter('A'));
Console.WriteLine(Char.IsAsciiLetter('a'));
Console.WriteLine(Char.IsAsciiLetter('1'));
}
}
Output
True
True
False
How It Works
Upper A. Accepted.
Lower a. Accepted.
Digit fails. Not a letter.
Both cases. No case restriction here.
Example 3 — Keep ASCII Letters
Strip non ASCII-letter characters.
C#
using System;
class Program {
static void Main() {
string raw = "Go#1";
string keep = "";
foreach (char ch in raw) {
if (Char.IsAsciiLetter(ch)) keep += ch;
}
Console.WriteLine(keep);
}
}