How to convert octal to hexadecimal (example: 234)
The simplest way is to go through decimal (or through binary): convert octal 234 to decimal (156), then convert decimal to hexadecimal (9C).
Place value chart
Every digit of 234 (base 8) is worth its value multiplied by a power of 8. Adding the last column gives the decimal value 156.
| Digit | Place value | Contribution |
|---|---|---|
2 | 82 = 64 | 128 |
3 | 81 = 8 | 24 |
4 | 80 = 1 | 4 |
Remember: in base 16 the allowed digits are 0123456789ABCDEF; in base 8 they are 01234567.
Octal to Hexadecimal table
| Octal | Hexadecimal |
|---|---|
0 | 0 |
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
7 | 7 |
10 | 8 |
12 | A |
17 | F |
20 | 10 |
31 | 19 |
40 | 20 |
62 | 32 |
100 | 40 |
144 | 64 |
177 | 7F |
200 | 80 |
377 | FF |
400 | 100 |
1000 | 200 |
1750 | 3E8 |
2000 | 400 |
3752 | 7EA |
Where number systems are used
- Binary — how CPUs, memory and network packets store every value.
- Octal — Unix/Linux file permissions such as chmod 755.
- Hexadecimal — colour codes (#FF5733), MAC addresses, memory dumps and Unicode code points.
- Decimal — everyday arithmetic, prices and measurements.
About these number systems
Octal
Octal (base 8) uses digits 0–7. It is used for Unix file permissions (e.g. chmod 755).
Hexadecimal
Hexadecimal (base 16) uses 0–9 and A–F, common in programming, colour codes and memory addresses.
Frequently asked questions
What is 234 (octal) in hexadecimal?
234 in base 8 equals 9C in base 16.
Can it convert very large numbers?
Yes. The converter uses arbitrary-precision integers (BigInt), so large numbers convert exactly.
Is this useful for HSC ICT?
Yes. Number systems are part of the HSC ICT syllabus in Bangladesh, and the step-by-step method matches textbook solutions.