Use standard numeric format specifier: X
using System; using System.Globalization; public class ParseInt32 { public static void Main() { int value = -11111; string specifier; specifier = "X"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); } } //X: FFFFD499