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.


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

C# Program

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}");


Original String  : Hello World
Lowercase String : hello world


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