converting int to bit in c# code example Example: convert-integer-to-binary-in-c-sharp int value = 8; string binary = Convert.ToString(value, 2);