Home » Binary Converter Tools » Octal to Hex Converter
Enter an octal number and get the exact hex 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.
An octal to hex converter turns an octal number into a hexadecimal value. Octal and hex group binary bits differently, so converting directly between them is a common source of mistakes. The reliable route is through binary, and this tool follows it for you.
Each octal digit becomes three binary digits, and then those binary digits are grouped in fours from the right to make hex digits. Hex uses digits from 0 to 9 and letters from A to F, where A is 10 and F is 15. This tool shows the result with no rounding and no sign up.
This converter is useful for computing study, embedded work and reading code that mixes octal and hex values. Everything runs in your browser, so your number never leaves your device.
Convert 52 to binary first: 5 is 101, and 2 is 010, giving 101010.
Group the binary digits in fours from the right: 10 and 1010. Pad the left group with zeros to make 0010.
Convert each group: 0010 is 2, and 1010 is A.
Put the groups together: 2A. So 52 in octal is 2A in hex. You can check it, since 52 in octal is 42 in decimal, and 2 times 16 plus 10 equals 42.
| Octal | Hex | Decimal | Binary |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 2 | 2 | 10 |
| 3 | 3 | 3 | 11 |
| 4 | 4 | 4 | 100 |
| 5 | 5 | 5 | 101 |
| 6 | 6 | 6 | 110 |
| 7 | 7 | 7 | 111 |
| 10 | 8 | 8 | 1000 |
| 11 | 9 | 9 | 1001 |
| 12 | A | 10 | 1010 |
| 13 | B | 11 | 1011 |
| 14 | C | 12 | 1100 |
| 15 | D | 13 | 1101 |
| 16 | E | 14 | 1110 |
| 17 | F | 15 | 1111 |
| 20 | 10 | 16 | 10000 |
| 21 | 11 | 17 | 10001 |
| 22 | 12 | 18 | 10010 |
| 23 | 13 | 19 | 10011 |
| 24 | 14 | 20 | 10100 |
| 377 | FF | 255 | 11111111 |
| 644 | 1A4 | 420 | 110100100 |
| 755 | 1ED | 493 | 111101101 |
| 1000 | 200 | 512 | 1000000000 |
| 7777 | FFF | 4095 | 111111111111 |
If you need a different direction, try the Octal to Binary Converter, Octal to Decimal Converter, Hex to Octal Converter and Decimal to Hex 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.
Each octal digit becomes three binary digits. Those binary digits are then grouped in fours from the right, and each group of four becomes one hex digit. For example, octal 52 becomes binary 101010, which groups as 0010 and 1010, giving hex 2A. You can also go through decimal if you prefer, and that second method is shown further up this page.
Because octal numbers only use digits from 0 to 7, so 8 and 9 are not valid octal digits.
No. All conversion happens in your browser on your own device, so your value never leaves your computer.
Yes. You can work out the decimal value first, then convert that decimal value to hex. For example, octal 755 is 493 in decimal, and 493 in hex is 1ED. The binary route is usually quicker by hand, because each octal digit maps straight to three binary digits.
755 in octal is 1ED in hex. In binary, 755 is 111101101, which groups as 0001, 1110 and 1101, giving 1, E and D. 755 is also the usual Unix permission for a script or program file, where the owner can read, write and run it and everyone else can read and run it.
No. This tool works with whole numbers only. A fraction such as 52.4 or a negative value such as -52 is rejected, so convert the whole number part on its own.
The formula is the binary bridge: each octal digit becomes three binary digits, and each group of four binary digits becomes one hex digit. For a check, use place values: multiply each octal digit by 8 to the power of its position, counting from 0 on the right, and add the results. For 52, that check is 5 times 8 plus 2, which is 42, and 2A in hex is 42 in decimal.
The binary bridge is the quickest route, but there is a second method that works just as well: go through decimal. First work out the decimal value of the octal number from its place values, then convert that decimal value to hex by repeated division by 16. Here is the full working for 755:
Read the remainders from the last division to the first: 1, E, D. So 755 in octal is 1ED in hex, which matches the binary bridge answer. Use whichever method you find easier. If you want the decimal value on its own, use the Octal to Decimal Converter, and to turn a decimal value into hex, use the Decimal to Hex Converter. To go from binary to decimal as part of the same working, use the Binary to Decimal Converter.
755 is a value you meet often, because it is the usual Unix permission for a script or program file. Here is the binary bridge working, step by step:
Put the groups together: 1ED. So 755 in octal is 1ED in hex. Check it with the decimal bridge: 755 in octal is 493 in decimal, and 1 times 256, plus 14 times 16, plus 13, is 493. Try it in the tool above: enter 755 and the converter shows 1ED with the steps worked out. To turn the binary value into hex on its own, use the Binary to Hex Converter.
Here is a second worked example with a smaller value, 345:
Put the groups together: E5. So 345 in octal is E5 in hex. Check it with the decimal bridge: 3 times 64, plus 4 times 8, plus 5, is 192 plus 32 plus 5, which is 229, and 14 times 16 plus 5 is also 229. Try it in the tool above: enter 345 and the converter shows E5. To convert a hex value back to decimal for a check like this, use the Hex to Decimal Converter, and to build the binary value first, use the Decimal to Binary Converter.
The most common place you meet octal to hex conversion in real work is Unix file permissions. Each file has three permission digits: one for the owner, one for the group, and one for everyone else. Each digit is the sum of 4 for read, 2 for write, and 1 for execute. So 7 means read, write and execute, 6 means read and write, 5 means read and execute, and 4 means read only.
| Octal | Hex | Decimal | Meaning |
|---|---|---|---|
| 755 | 1ED | 493 | Owner can read, write and run it; everyone else can read and run it |
| 644 | 1A4 | 420 | Owner can read and write it; everyone else can only read it |
| 777 | 1FF | 511 | Everyone can read, write and run it |
755 is the usual permission for a script or program file, 644 is the default for a plain file, and 777 gives full permission to everyone, which is rarely a good idea on a shared system. When a tool or a log shows a permission in hex, 755 is 1ED, 644 is 1A4, and 777 is 1FF. You can check each one in the tool above. To go the other way, from hex back to octal, use the Hex to Octal Converter, and to see the permission value in binary, use the Octal to Binary Converter. To convert text values to hex, use the Text to Hex Converter.