- No data uploaded
- Instant results
Octal to Hexadecimal Converter
Enter a octal number to convert it to hexadecimal immediately. Paste multiple values (one per line) for bulk conversion. Arbitrary-precision math means even 128-bit values convert exactly.
Octal to Hexadecimal Converter
How to convert octal to hexadecimal
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. 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).
Worked example converting 326:
- Expand by place value:
3×82 + 2×81 + 6×80= 214 in decimal. - Repeatedly divide 214 by 16 and read the remainders bottom-up to get D6.
- Result:
326(octal) =D6(hexadecimal).
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.
Octal to Hexadecimal reference table
| Octal | Hexadecimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 10 | 8 |
| 11 | 9 |
| 12 | A |
| 13 | B |
| 14 | C |
| 15 | D |
| 16 | E |
| 17 | F |
| 20 | 10 |
| 40 | 20 |
| 100 | 40 |
| 144 | 64 |
| 200 | 80 |
| 377 | FF |
| 400 | 100 |
| 2000 | 400 |
| 10000 | 1000 |
| 177777 | FFFF |
Frequently asked questions
What is 326 in hexadecimal?
326 in octal equals D6 in hexadecimal.
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.