Convert hexadecimal numbers (integers and floats) to octal instantly with batch conversion support. Essential tool for programmers, students, and engineers.
Batch Conversion: Convert multiple hexadecimal numbers at once. Enter one hex value per line, or separate values with commas, spaces, or tabs. Supports integers and floating-point numbers.
Converting hexadecimal (base-16) to octal (base-8) is most efficiently done via binary (base-2) since both bases are powers of 2. Each hexadecimal digit represents 4 binary digits, and each octal digit represents 3 binary digits.
Conversion Algorithm (Binary Method):
Important Notes on Float Conversion:
| Hex | Binary (4-bit) | Octal | Hex | Binary (4-bit) | Octal |
|---|---|---|---|---|---|
| 0 | 0000 | 0 | 8 | 1000 | 10 |
| 1 | 0001 | 1 | 9 | 1001 | 11 |
| 2 | 0010 | 2 | A | 1010 | 12 |
| 3 | 0011 | 3 | B | 1011 | 13 |
| 4 | 0100 | 4 | C | 1100 | 14 |
| 5 | 0101 | 5 | D | 1101 | 15 |
| 6 | 0110 | 6 | E | 1110 | 16 |
| 7 | 0111 | 7 | F | 1111 | 17 |
Hexadecimal A.8 to Octal:
A (hex) = 1010 (binary)
. (separator)
8 (hex) = 1000 (binary)
Binary: 1010 . 1000 = 1 010 . 100 0 (grouped by 3)
Need to pad: 001 010 . 100 000 (pad left and right)
001 (binary) = 1 (octal), 010 (binary) = 2 (octal)
. (separator)
100 (binary) = 4 (octal)
Result: 12.4 (octal)
Hexadecimal FF to Octal:
F (hex) = 1111 (binary)
F (hex) = 1111 (binary)
Binary: 1111 1111 = 011 111 111 (grouped by 3 with padding)
011 (binary) = 3 (octal), 111 (binary) = 7 (octal), 111 (binary) = 7 (octal)
Result: 377 (octal)
Hexadecimal 0.2 to Octal:
0 (hex) = 0000 (binary)
. (separator)
2 (hex) = 0010 (binary)
Binary: 0000 . 0010 = 0.0010 = 0.001 000 (padded)
001 (binary) = 1 (octal)
Result: 0.1 (octal) (but 0.001 binary = 0.125 decimal = 0.1 octal)
Calculator Features:
0xA.8
12.4
0x0.8
0.4
0x0.4
0.2
0x3.243F6
3.11037...
0xF.C
17.6
0xFF.2
377.1
0x0.2
0.1