How can I convert a binary number to hexadecimal?

John Savill

October 7, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. There are some operations in Windows NT where you need to give avalue as hexadecimal rather than binary or decimal, for example setting whichdrives should be excluded from a users view (see 'Q. How can I hide drive x from users?')

The easiest way to convert is to use the Calculator application in Scientificmode:

  1. Start Calculator (calc.exe)

  2. From the view menu select 'Scientific'

  3. Select 'Bin' and set the data type to 'Dword' (Dword is 4 bytes (32 bits), the biggest possible in calc)

  4. Enter you binary string

  5. Select 'Hex' and your binary number is converted to Hex

Click here to view image

Hexadecimal is base 16 and each digit can therefore be between 0 and 15 (0-9,A-F). Binary is base 2 and each digit can therefore be 0 or 1.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like