About Octal to Hex Converter
This converter turns a octal number (base 8) into a hexadecimal number (base 16). It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.
A octal number is written with the digits 0 to 7, and each place is worth a power of 8, counted from the right starting at 8^0. The converter turns the number into a value and then writes it out in the target base.
There is no digit-for-digit shortcut between octal and hex, because 8 and 16 are different powers of two. Going through binary keeps it simple and avoids arithmetic.
The tool also accepts negative numbers, fractions (with the repeating block shown), numbers of any length and two’s complement for 8, 16, 32 or 64 bits.
How to use Octal to Hex Converter
- Choose the Numbers mode to convert a value, or Text and ASCII to convert text.
- In Numbers mode, pick the base you are starting from, then type the number. Use a minus sign for negatives and a point for a fraction.
- Pick the target base. The result for binary, octal, decimal and hexadecimal appears together, with the target base and an extra base you can choose.
- Show steps is on by default. Turn on Group digits to split long results into blocks of 4 (binary and hex) or 3 digits.
- Turn on two’s complement and pick 8, 16, 32 or 64 bits to see how a signed whole number is stored.
- In Text mode, choose encode or decode and the base (2, 8, 10 or 16), then enter text or the bytes to decode.
Features
- Any base from 2 to 36, with results shown in binary, octal, decimal and hexadecimal together.
- Negative numbers and fractions, with a repeating block detected and shown in brackets, such as 0.0(0011) for 0.1.
- Step-by-step working for fractions by repeated multiplication, as well as for whole numbers.
- Big integers, with no 53-bit limit.
- Two’s complement for 8, 16, 32 and 64-bit signed integers.
- Step-by-step working for whole numbers: place values for the source base and repeated division for the target.
- Digit grouping in blocks of 4 or 3 for readable bit patterns.
- Text to and from UTF-8 bytes in bases 2, 8, 10 and 16.
- An ASCII table for codes 0 to 127 with decimal, hex, octal, binary and the character.
- Prefixes 0b, 0o and 0x accepted, and spaces, commas and underscores ignored.
- A copy button on each result.
Worked examples
234 (octal) gives 9C (hexadecimal)
156 in decimal.
3750 (octal) gives 7E8 (hexadecimal)
2024 in decimal.
Place values in octal
| Place | Power | Value |
|---|---|---|
| 1 | 8^0 | 1 |
| 2 | 8^1 | 8 |
| 3 | 8^2 | 64 |
| 4 | 8^3 | 512 |
| 5 | 8^4 | 4096 |
| 6 | 8^5 | 32768 |
| 7 | 8^6 | 262144 |
| 8 | 8^7 | 2097152 |
0 to 15 in binary, octal, decimal and hex
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
Good to know
Worked example: 234 from octal to hexadecimal
Write the octal number in binary: 010 011 100.
Regroup the same bits in 4s from the right: 1001 1100. Each group is one hexadecimal digit, which gives 9C.
Worked example: 3750 from octal to hexadecimal
Write the octal number in binary: 011 111 101 000.
Regroup the same bits in 4s from the right: 0111 1110 1000. Each group is one hexadecimal digit, which gives 7E8.
Privacy: how it works
- All conversions are done by code running in your browser tab. The numbers and text you enter are never sent to Ulkaa or anyone else.
- There is no account and no sign-up, and the tool costs nothing to use.
Tips
- Use Group digits to read long binary numbers: blocks of 4 line up with hex digits.
- Pick binary to hex when you want to read bits quickly: convert each group of four on its own.
- Use two’s complement with the width of your data type, for example 8 bits for a byte and 32 bits for a typical integer.
- If a result has a repeating block in brackets, the digits inside repeat forever, so a stored value is only an approximation of it.
Frequently asked questions
Is it really free?
Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.
Do I need an account?
No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.
Does it run in my browser?
Yes. Your numbers are processed by code running in your browser tab, on your own device.
Is my data uploaded?
No. Your numbers are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.
How do I convert octal to hexadecimal?
Write the octal number in binary: 010 011 100. Regroup the same bits in 4s from the right: 1001 1100. Each group is one hexadecimal digit, which gives 9C.
What is 3750 in hexadecimal?
3750 in octal is 7E8 in hexadecimal.
Which digits are valid in octal?
Octal uses the digits 0 to 7. Anything else is rejected with a message naming the digit.
More Number Base Converter pages
- Number Base ConverterConvert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, or turn text into bytes.
- Binary to Decimal ConverterTurn a binary number into decimal, with the working shown.
- Decimal to Binary ConverterTurn a decimal number into binary, with the working shown.
- Binary to Hex ConverterTurn a binary number into hexadecimal, with the working shown.
- Hex to Binary ConverterTurn a hexadecimal number into binary, with the working shown.
- Decimal to Hex ConverterTurn a decimal number into hexadecimal, with the working shown.
- Hex to Decimal ConverterTurn a hexadecimal number into decimal, with the working shown.
- Decimal to Octal ConverterTurn a decimal number into octal, with the working shown.
- Octal to Decimal ConverterTurn an octal number into decimal, with the working shown.
- Binary to Octal ConverterTurn a binary number into octal, with the working shown.
- Octal to Binary ConverterTurn an octal number into binary, with the working shown.
- Hex to Octal ConverterTurn a hexadecimal number into octal, with the working shown.
- Binary to Text ConverterTurn binary bytes into text.