C# Char ToUpper() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Char

Definition

In C#, Char.ToUpper returns the uppercase form of a character using culture casing rules.

Like ToLower, culture can surprise you. Prefer ToUpperInvariant or ToUpperOrdinal (.NET 7+) for stable results.

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

Syntax

Pass a char; optionally pass a CultureInfo.

C#
char up = Char.ToUpper('a');
CallWhat it does
Char.ToUpper(c)Uppercase using current culture.
Char.ToUpper(c, culture)Uppercase using a specific culture.

Non-letters usually return unchanged.

Library declarations
C#
public static char ToUpper(char c);
public static char ToUpper(char c, CultureInfo culture);

Parameters

ParameterDescription
cCharacter to convert.
cultureOptional culture for casing rules.

Return Value

Return ValueDescription
charUppercase character (or unchanged).

C# Examples

Example 1 — a to A

Uppercase a Latin letter.

C#
using System;

class Program {
    static void Main() {
        char up = Char.ToUpper('a');
        Console.WriteLine(up);
        Console.WriteLine(Char.IsUpper(up));
    }
}

How It Works

  1. Start lower. Character a.
  2. ToUpper. Becomes A.
  3. IsUpper true. Confirms case.
  4. Culture default. Uses current culture.

Example 2 — Capitalize First Letter

Uppercase only the first character of a word.

C#
using System;

class Program {
    static void Main() {
        string word = "ada";
        char first = Char.ToUpper(word[0]);
        string titled = first + word.Substring(1);
        Console.WriteLine(titled);
    }
}

How It Works

  1. First char. Take index 0.
  2. Upper it. ToUpper on that char.
  3. Rebuild. Join with the remainder.
  4. Ada result. Simple title pattern.

Example 3 — Invariant Alternative

Prefer invariant for stable uppercase.

C#
using System;

class Program {
    static void Main() {
        char c = 'i';
        Console.WriteLine(Char.ToUpper(c));
        Console.WriteLine(Char.ToUpperInvariant(c));
    }
}

How It Works

  1. Latin i. Often becomes I in both.
  2. Culture caveat. Some locales differ.
  3. Invariant choice. Better for fixed formats.
  4. Same demo culture. Still teach the safer habit.

Frequently Asked Questions

Yes.
ToUpperInvariant or ToUpperOrdinal (.NET 7+).
Usually no.
string.ToUpper / ToUpperInvariant.
char.

Next: ToUpperInvariant()

Convert a character to uppercase using the invariant culture with System.Char.

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

9 people found this page helpful