In C#, Char.IsUpper returns true when the character is a Unicode uppercase letter (category Lu).
Use it to detect capitals. To create uppercase characters, call ToUpper / ToUpperInvariant.
This is a static member of System.Char. You call it with the type name, such as Char.IsUpper(...) or char.IsUpper(...). A char holds one 16-bit UTF-16 code unit.
Syntax
Pass the character to test.
C#
bool ok = Char.IsUpper('A');
Call
What it does
Char.IsUpper(c)
True if c is uppercase.
Char.IsUpper(s, i)
Tests s[i].
Titlecase characters are a separate Unicode category; IsUpper focuses on uppercase.
Library declarations
C#
public static bool IsUpper(char c);
public static bool IsUpper(string s, int index);
Parameters
Parameter
Description
c
Character to test.
s, index
Optional string index overload.
Return Value
Return Value
Description
true
Uppercase letter.
false
Not uppercase.
C# Examples
Example 1 — Detect Capitals
Test A, a, and a digit.
C#
using System;
class Program {
static void Main() {
Console.WriteLine(Char.IsUpper('A'));
Console.WriteLine(Char.IsUpper('a'));
Console.WriteLine(Char.IsUpper('3'));
}
}
Output
True
False
False
How It Works
Capital A. IsUpper returns true.
Lower a. Returns false.
Digit three. Not a letter case.
Simple trio. Shows the common outcomes quickly.
Example 2 — Check a Title Character
See if the first character of a word is uppercase.
C#
using System;
class Program {
static void Main() {
string name = "Ada";
Console.WriteLine(Char.IsUpper(name, 0));
Console.WriteLine(Char.IsLower(name, 1));
}
}
Output
True
True
How It Works
Index overload. Test name[0] without copying a char first.
Leading capital. A is uppercase.
Next letter. d is lowercase.
Word shape. Useful for light title checks.
Example 3 — IsUpper vs IsAsciiLetterUpper
Compare Unicode and ASCII uppercase helpers.
C#
using System;
class Program {
static void Main() {
char c = 'É';
Console.WriteLine(Char.IsUpper(c));
Console.WriteLine(Char.IsAsciiLetterUpper(c));
}
}
Output
True
False
How It Works
Accented capital. É is uppercase in Unicode.
ASCII-only false. Not in A–Z.
Newer API. IsAsciiLetterUpper needs .NET 7+.
Rule selection. Unicode vs ASCII depends on your accepted alphabet.