Octal to hex converter

Enter an octal number to get its hex value along with the bits that link the two bases.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter octal number.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Turn each octal digit into 3 bits, then regroup the bits into groups of 4 from the point and turn each group into one hex digit.

Example

Inputs: Octal number = 777. Result: Result in hexadecimal: 1FF.

777
1FF

Limits and caveats

  • Negative numbers keep a minus sign in front of the magnitude; they are not shown in two's complement.
  • Up to 2000 digits before the point and 200 after it.

Questions about this tool

Why does the conversion go through binary?

Each octal digit is 3 bits and each hex digit is 4 bits, so binary links them directly with no division.

What is 777 in hex?

777 = 111 111 111 in binary = 1 1111 1111 = 1FF, which is 511 in decimal.

Can the result contain letters?

Yes. Values 10 to 15 are written A to F in hexadecimal.