C# Char IsUpper() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Char

Definition

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');
CallWhat 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

ParameterDescription
cCharacter to test.
s, indexOptional string index overload.

Return Value

Return ValueDescription
trueUppercase letter.
falseNot 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'));
    }
}

How It Works

  1. Capital A. IsUpper returns true.
  2. Lower a. Returns false.
  3. Digit three. Not a letter case.
  4. 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));
    }
}

How It Works

  1. Index overload. Test name[0] without copying a char first.
  2. Leading capital. A is uppercase.
  3. Next letter. d is lowercase.
  4. 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));
    }
}

How It Works

  1. Accented capital. É is uppercase in Unicode.
  2. ASCII-only false. Not in A–Z.
  3. Newer API. IsAsciiLetterUpper needs .NET 7+.
  4. Rule selection. Unicode vs ASCII depends on your accepted alphabet.

Frequently Asked Questions

No. It only tests.
No. Unicode uppercase letters are included.
Use IsLower.
Yes with the index overload.
IsAsciiLetterUpper (.NET 7+).

Next: IsWhiteSpace()

Return true when the character is Unicode whitespace with System.Char.

IsWhiteSpace() 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.

11 people found this page helpful