How to convert Upper case to Lower Case using C#?

To convert Upper case to Lower case, use the ToLower() method in C#.

Let’s say your string is −

str = "TIM";

To convert the above uppercase string in lowercase, use the ToLower() method −

Console.WriteLine("Converted to LowerCase : {0}", str.ToLower());

The following is the code in C# to convert character case −


using System;
using System.Collections.Generic;
using System.Text;

namespace Demo {
   class MyApplication {
      static void Main(string[] args) {
         string str;
         str = "TIM";
         Console.WriteLine("UpperCase : {0}", str);

         // convert to lowercase
         Console.WriteLine("Converted to LowerCase : {0}", str.ToLower());

Updated on: 21-Jun-2020

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started