Getting The ASCII Value of a character in a C# string June 15, 2023 by Tarik Just cast each character to an int: for (int i = 0; i < str.length; i++) Console.Write(((int)str[i]).ToString());