- No data uploaded
- Instant results
Hexadecimal to Octal Converter
Enter a hexadecimal number to convert it to octal immediately. Paste multiple values (one per line) for bulk conversion. Arbitrary-precision math means even 128-bit values convert exactly.
Hexadecimal to Octal Converter
How to convert hexadecimal to octal
Hexadecimal (base 16) uses 0–9 and A–F; each hex digit maps to exactly four bits, so one byte is always two hex digits (00–FF). Octal (base 8) uses digits 0–7; each octal digit maps to exactly three bits, which is why Unix file permissions (e.g. 755) are written in octal.
Worked example converting D6:
- Expand by place value:
13×161 + 6×160= 214 in decimal. - Repeatedly divide 214 by 8 and read the remainders bottom-up to get 326.
- Result:
D6(hexadecimal) =326(octal).
Accepted input formats
- Optional prefixes:
0b(binary),0o(octal),0x(hex). - Spaces, commas and underscores are ignored, so
1101_0110works. - A leading minus sign converts negative values (sign-magnitude, not two's complement).
- Hexadecimal is case-insensitive; output is upper-case.
Hexadecimal to Octal reference table
| Hexadecimal | Octal |
|---|---|
| 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 |
| 80 | 200 |
| FF | 377 |
| 100 | 400 |
| 400 | 2000 |
| 1000 | 10000 |
| FFFF | 177777 |
Frequently asked questions
What is D6 in octal?
D6 in hexadecimal equals 326 in octal.
Is there a size limit?
No practical limit. The converter uses JavaScript BigInt, so values with hundreds of digits convert exactly without rounding.
Is my data sent to a server?
No. The conversion runs entirely in your browser; nothing you type is uploaded.