Octal to Hexadecimal

Convert an octal number to its hexadecimal (base-16) value.

About the Octal to Hexadecimal converter

This tool converts between two compact computing bases, octal (base-8) and hexadecimal (base-16). Since the two do not share a clean digit grouping, the value is read in full and re-expressed in hex, so octal 777 becomes 1FF. It is handy when a value arrives in octal, such as a permission code, but your tooling or documentation expects hex.

How to use it

  • Enter an octal number using only the digits 0 to 7.
  • The hexadecimal equivalent appears straight away.
  • Copy the hex result for use in code or a hex editor.

A typical use is normalising mixed-base data into one consistent format for a report or config. The converter treats the input as an unsigned whole number and handles long values exactly, so large numbers convert without rounding. Inputs containing an 8 or 9 are not valid octal. Everything runs in your browser, so the numbers you enter are never uploaded.

Frequently asked questions

Why is there no simple digit grouping between octal and hex?

Octal groups bits in threes and hex groups them in fours, so the two do not align digit for digit. The number is converted through its full value rather than by regrouping digits.

What digits will the hex output use?

Hexadecimal uses 0-9 and A-F, where A is 10 up to F which is 15. The result contains only those characters.

Why might my octal input be rejected?

Octal allows only the digits 0 through 7, so a value containing an 8 or 9 is invalid and will not convert.

Is my input sent to a server?

No. The conversion runs in your browser, so the numbers you enter stay on your device.

Related tools