How can I convert a binary number to hexadecimal?

A. There are some operations in Windows NT where you need to give a value as hexadecimal rather than binary or decimal, for example setting which drives 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 Scientific mode:

  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.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish