Home » Binary Converter Tools » Hex to Octal Converter
Enter a hex value and get the exact octal value in seconds, with the steps shown.
Last updated 13 November 2026
Everything runs in your browser, so your value never leaves your device. Whole numbers only for number base conversions.
A hex to octal converter turns a hexadecimal value into an octal number. Hex and octal are both shorthand systems for binary, but they group bits differently, so converting between them by hand is easy to get wrong.
The route this tool uses goes through the decimal value. Each hex digit is worked out from its place value, the place values are added to give the decimal value, and that decimal value is then converted to octal. The steps are shown with the answer, so you can check the result, with no rounding and no sign up.
This converter is useful for computing study, embedded work and reading older code that uses octal. Everything runs in your browser, so your value never leaves your device.
Start with the place values: F is 15, so 15 times 16 plus 15 is 255. That is the decimal value of FF.
Convert the decimal value to base 8: 255 divided by 8 is 31 with a remainder of 7, 31 divided by 8 is 3 with a remainder of 7, and 3 divided by 8 is 0 with a remainder of 3. Read the remainders from last to first: 377.
Put it together: FF in hex is 377 in octal. You can check it, since 3 times 64 plus 7 times 8 plus 7 equals 255.
| Input | Output |
|---|---|
| A in hex | 12 in octal |
| 2A in hex | 52 in octal |
| FF in hex | 377 in octal |
| 100 in hex | 400 in octal |
| 1F4 in hex | 764 in octal |
If you need a different direction, try the Hex to Binary Converter, Hex to Decimal Converter, Octal to Hex Converter and Binary to Octal Converter. Each one works the same way, in your browser, with the steps shown so you can check the answer.
Yes, it is completely free with no sign up.
The hex value is first worked out as a decimal value from its place values, and that decimal value is then converted to octal.
You get a plain error message and no output, because hex digits are only 0 to 9 and A to F.
No. All conversion happens in your browser on your own device, so your value never leaves your computer.
FF in hex is 377 in octal, because FF is 255 in decimal, and 255 in octal is 377.
Yes. You can type 0xFF or FF, and the tool gives the same answer. The 0x prefix is stripped before the conversion, so it does not change the result.
There is no fixed limit in the tool. It uses BigInt, so long hex values stay exact with no rounding. Very long values still convert, but the steps shown grow with the value.
Hex to octal gives the value in base 8, while hex to decimal gives it in base 10. FF is 377 in octal and 255 in decimal. The steps here go through the decimal value, so you see both on the way. To convert hex straight to decimal, use the Hex to Decimal Converter.
Hexadecimal is a number system with base 16. It uses the digits 0 to 9 and the letters A to F, where A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15. One hex digit holds exactly four bits, which is why programmers use it. You see hex in color codes like #FF5733, in memory addresses, in MAC addresses, in file hashes, and in code where a byte is written as two hex digits. A byte can hold any value from 00 to FF, which is 0 to 255 in decimal.
Octal is a number system with base 8. It uses only the digits 0 to 7, so the digit 8 never appears in an octal value. One octal digit holds exactly three bits, which is why octal was common on early computers with word sizes that were multiples of three. Today you still see octal in Unix file permissions, in older code, and in some embedded systems. The value 377 in octal is 255 in decimal, and 10 in octal is 8 in decimal.
This table lists every hex digit from 0 to F with its binary, octal and decimal value. Use it to check a conversion by hand.
| Hex | Binary | Octal | Decimal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| A | 1010 | 12 | 10 |
| B | 1011 | 13 | 11 |
| C | 1100 | 14 | 12 |
| D | 1101 | 15 | 13 |
| E | 1110 | 16 | 14 |
| F | 1111 | 17 | 15 |
Each example below follows the same decimal route the tool uses: hex to decimal by place values, then decimal to octal.
Unix file permissions are the best known use of octal. A permission value like 755 gives the file owner read, write and execute rights, while the group and everyone else get read and execute rights. A value like 644 gives the owner read and write rights, while the group and everyone else get read rights only. Hex values from code and config files often need to be read as octal permission values, and that is where this converter helps.
Octal also appears in older systems and retro computing, where programmers worked in base 8, and in embedded work where hardware registers are grouped in threes. If you work with those systems, keep the reference table above close by.
Hex to octal is one of several number conversions on this site. To go the other way, use the Octal to Hex Converter. To convert hex to another base, use the Hex to Decimal Converter or the Hex to Binary Converter. For binary, use the Binary to Decimal Converter, the Decimal to Binary Converter, or the Binary to Hex Converter. To convert octal, use the Octal to Decimal Converter, the Octal to Binary Converter, or the Decimal to Octal Converter. To convert decimal to hex, use the Decimal to Hex Converter. To convert text, use the Text to Binary Converter, the Text to Hex Converter, or the Text to ASCII Converter. To convert binary to octal, use the Binary to Octal Converter.