C# – Convert String to Lowercase

To convert String to lowercase in C#, call String.ToLower() method on the String instance. ToLower() returns a transformed string of our original string, where uppercase characters are converted to lowercase characters.

Reference to C# String.ToLower() method.

Example

In the following program, we will take a string "Hello World" and convert the string to lowercase using ToLower() method.

C# Program

</>
Copy
using System;
  
class Example {
    static void Main(string[] args) {
        String str = "Hello World";
        String result = str.ToLower();
        Console.WriteLine($"Original String  : {str}");
        Console.WriteLine($"Lowercase String : {result}");
    }
}

Output

Original String  : Hello World
Lowercase String : hello world

Conclusion

In this C# Tutorial, we have learned how to convert a given string into lowercase using String.ToLower() method.