Too many people are creating and/or downloading special apps for this. It seems to be undocumented but converting to and from decimal, binary, and hexadecimal numbers is a standard function of the basic Calculator of Windows Phone. This video demonstrates how to access these functions: