Convert a Character to the String in C# Last Updated : 15 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Given a character, the task is to character to the string in C#. Examples: Input : X = 'a' Output : string S = "a" Input : X = 'A' Output : string S = "A" Approach: The idea is to use ToString() method, the argument is the character and it returns string converting Unicode character to the string. // convert the character x // to string s public string ToString(IFormatProvider provider); C# // C# program to character to the string using System; public class GFG{ static string getString(char x) { // Char.ToString() is a System.Char // struct method which is used // to convert the value of this // instance to its equivalent // string representation string str = x.ToString(); return str; } static void Main(string[] args) { char chr = 'A'; Console.WriteLine("Type of "+ chr +" : " + chr.GetType()); string str = getString(chr); Console.WriteLine("Type of "+ str +" : " + str.GetType()); } } Output: Type of A : System.Char Type of A : System.String Comment More infoAdvertise with us Next Article Different Methods to Read a Character in C# S shubhamsingh10 Follow Improve Article Tags : C# CSharp-string Similar Reads How to Replace a Character with the String in C#? Given a string, now our task is to replace a specified character with the string. This task is performed with the help of Replace() method. This method is used to replace all the Unicode characters with the specified string and return a modified string. Syntax: string.Replace(character, new_string) 2 min read Different Ways to Convert Char Array to String in C# We have given a character array arr and the task is to convert char array to string str in C#. Input: arr = [s, t, r, i, n, g] Output: string Input: arr = [G, e, e, k, s, F, o, r, G, e, e, k, s] Output: GeeksForGeeks In order to do this task, we have the following methods: Method 1: Using string() M 3 min read Different Methods to Read a Character in C# In C#, we know that Console.Read() method is used to read a single character from the standard output device. And also there are different methods available to read the single character. Following methods can be used for this purpose: Console.ReadLine()[0] MethodConsole.ReadKey().KeyChar MethodChar. 3 min read Converting a String to its Equivalent Byte Array in C# Given a string, the task is to convert this string into a Byte array in C#. Examples: Input: aA Output: [97, 65 ] Input: Hello Output: [ 72, 101, 108, 108, 111 ] Method 1: Using ToByte() Method: This method is a Convert class method. It is used to converts other base data types to a byte data type. 3 min read C# | Char.ConvertToUtf32(String, Int32) Method This method is used to converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into a Unicode code point. Syntax: public static int ConvertToUtf32 (string s, int index); Parameters: s: A string that contains a character or surrogate pair. index: The ind 3 min read C# | Char.ConvertFromUtf32(Int32) Method This method is used to converts the specified Unicode code point into a UTF-16 encoded string.Syntax: public static string ConvertFromUtf32 (int utf32); Here, utf32 is a 21-bit Unicode code point.Return Value: This method returns a string consisting of one Char object or a surrogate pair of Char obj 2 min read Like