C# Char ToLowerInvariant() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Char

Definition

In C#, Char.ToLowerInvariant returns the lowercase form of a character using the invariant culture, not the user’s current culture.

Prefer this (or ToLowerOrdinal) when building case-insensitive keys, file formats, or comparisons that must not depend on locale.

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

Syntax

Pass the character to lowercase invariantly.

C#
char low = Char.ToLowerInvariant('A');
CallWhat it does
Char.ToLowerInvariant(c)Lowercase with invariant culture.

Does not use the current UI culture.

Library declarations
C#
public static char ToLowerInvariant(char c);

Parameters

ParameterDescription
cCharacter to convert.

Return Value

Return ValueDescription
charInvariant lowercase character.

C# Examples

Example 1 — A Becomes a

Lowercase with invariant rules.

C#
using System;

class Program {
    static void Main() {
        Console.WriteLine(Char.ToLowerInvariant('A'));
        Console.WriteLine(Char.ToLowerInvariant('Z'));
    }
}

How It Works

  1. A → a. Classic Latin mapping.
  2. Z → z. Same for the end of the alphabet.
  3. Invariant. Independent of user culture.
  4. Stable keys. Good for identifiers.

Example 2 — Lowercase a Word

Normalize each letter invariantly.

C#
using System;

class Program {
    static void Main() {
        string word = "Code";
        string low = "";
        foreach (char ch in word) {
            low += Char.ToLowerInvariant(ch);
        }
        Console.WriteLine(low);
    }
}

How It Works

  1. Per char. Convert each unit.
  2. Build string. Append lowered chars.
  3. code result. Whole word normalized.
  4. String API exists. word.ToLowerInvariant() is shorter for full strings.

Example 3 — Digit Unchanged

Digits pass through unchanged.

C#
using System;

class Program {
    static void Main() {
        char d = '5';
        Console.WriteLine(Char.ToLowerInvariant(d));
        Console.WriteLine(d == Char.ToLowerInvariant(d));
    }
}

How It Works

  1. Digit five. No case mapping.
  2. Same char. Output equals input.
  3. Safe on mixed text. Letters change; digits stay.
  4. Invariant still. Culture does not invent a mapping.

Frequently Asked Questions

ToLower uses culture; ToLowerInvariant does not.
Yes—ToLowerOrdinal in .NET 7+.
Yes, for culture-neutral keys.
It applies invariant mappings where they exist.
Yes.

Next: ToLowerOrdinal()

Convert a character to lowercase using ordinal (simple) mapping. .NET 7+ with System.Char.

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

15 people found this page helpful