Convert hex to octal
Hexadecimal (base 16) to octal (base 8). Type a value below, or use the reference table further down.
Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 377 in octal.
How to convert hex to octal
Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 377 in octal.
Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.
hex to octal conversion table
Use this hex to octal chart for quick reference.
| Hexadecimal (base 16) | Octal (base 8) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 10 |
| 9 | 11 |
| A | 12 |
| B | 13 |
| C | 14 |
| D | 15 |
| E | 16 |
| F | 17 |
| 10 | 20 |
| 20 | 40 |
| 40 | 100 |
| 64 | 144 |
| 7F | 177 |
| 80 | 200 |
| FF | 377 |
| 100 | 400 |
| 200 | 1000 |
| 3E8 | 1750 |
| 3FF | 1777 |
| 400 | 2000 |
| FFF | 7777 |
| 1000 | 10000 |
| FFFF | 177777 |
| 10000 | 200000 |
What is hexadecimal?
Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.
What is octal?
Octal is base 8, using the digits 0 to 7. One octal digit encodes exactly three bits, which is why Unix file permissions are written as octal numbers such as 755.
Frequently asked questions
How do you convert hexadecimal to octal?
Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 377 in octal.
What is FF hexadecimal in octal?
FF in hexadecimal is 377 in octal. In plain decimal that value is 255.
What digits does hexadecimal use?
Hexadecimal is base 16 and uses 0-9 and A-F. Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.