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');
Call
What 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
Parameter
Description
c
Character to convert.
Return Value
Return Value
Description
char
Invariant 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'));
}
}
Output
a
z
How It Works
A → a. Classic Latin mapping.
Z → z. Same for the end of the alphabet.
Invariant. Independent of user culture.
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);
}
}
Output
code
How It Works
Per char. Convert each unit.
Build string. Append lowered chars.
code result. Whole word normalized.
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));
}
}
Output
5
True
How It Works
Digit five. No case mapping.
Same char. Output equals input.
Safe on mixed text. Letters change; digits stay.
Invariant still. Culture does not invent a mapping.