Convert from Octal (Base 8) to Hexadecimal (Base 16)

Perform the conversion of numbers between different numerical systems.

Octal (Base 8) = Hexadecimal (Base 16)

Convert from Hexadecimal (Base 16) to Octal (Base 8)

Information about conversion units:

About Octal (Base 8)

The octal system is the positional numeral system with a base of 8, using the Arabic-Indic digits: 0, 1, 2, 3, 4, 5, 6, 7. In computing, octal numbering is sometimes used instead of hexadecimal. It has the advantage of not requiring symbols other than digits.

About Hexadecimal (Base 16)

The hexadecimal system reduces an eight-bit number to just two hexadecimal digits. This reduces the confusion that can arise from reading long strings of binary numbers and the amount of space required to write binary numbers.

Octal (Base 8) vs Hexadecimal (Base 16)

Octal (Base 8)Hexadecimal (Base 16)
00
11
22
33
44
55
66
77
108
119
12a
13b
14c
15d
16e
17f

¿How to convert from Octal (Base 8) to Hexadecimal (Base 16)?

Note: To convert a number from octal (base 8) to any other base, we first need to convert the octal value to decimal (base 10). To do this, follow these steps:

  1. Identify each digit of the octal number.
  2. Calculate the position of each digit. Start from the rightmost digit, which will have a position of 0. Each digit to the left will have an incremental position of 1 (1, 2, 3, etc.).
  3. Calculate the decimal value of each digit by multiplying it by the base (8) raised to the position of the digit. For example: digit * 8^position.
  4. Add up the values obtained in the previous step to get the equivalent decimal number.

Applying these steps to the octal number 237:

  1. 2, 3, and 7 are the digits.
  2. From right to left, the positions are 0, 1, and 2.
  3. 2 * 8^2 = 128; 3 * 8^1 = 24; 7 * 8^0 = 7.
  4. 128 + 24 + 7 = 159 decimal

Therefore, 237 octal = 159 decimal.

Visual example of the procedure to convert an octal number to decimal.

To convert a decimal number (base 10) to hexadecimal (base 16), follow these steps:

  1. Divide the decimal number by 16.
  2. Take the quotient and divide it by 16 again.
  3. Repeat this process until the quotient is less than 16.
  4. Assign a letter to each remainder if the remainder is greater than 9.
  5. Numbers 10, 11, 12, 13, 14, and 15 are represented by the letters A, B, C, D, E, and F, respectively.
  6. Write down the remainders obtained in reverse order to how they were calculated.

Applying these steps to the decimal number 159:

  1. 159 / 16 = 9 with a remainder of 15.
  2. 9 / 16 = 0 with a remainder of 9.
  3. 15 is represented as F.
  4. 9 is represented as 9.
The hexadecimal number equivalent to decimal 159 is 9F.The process of converting a number expressed in decimal to its equivalent in hexadecimal.

Conversion table of Octal (Base 8) to Hexadecimal (Base 16)

Octal (Base 8) Hexadecimal (Base 16)
11
22
33
44
55
66
77
108
119
12a
13b
14c
15d
16e
17f
2010
2111
2212
2313
2414
2515
2616
2717
3018
3119
321a
331b
341c
351d
361e
371f
4020
4121
4222
4323
4424
4525
4626
4727
5028
5129
522a
532b
542c
552d
562e
572f
6030
6131
6232
6333
6434
6535
6636
6737
7038
7139
723a
733b
743c
753d
763e
773f
10040
10141
10242
10343
10444
10545
10646
10747
11048
11149
1124a
1134b
1144c
1154d
1164e
1174f
12050
12151
12252
12353
12454
12555
12656
12757
13058
13159
1325a
1335b
1345c
1355d
1365e
1375f
14060
14161
14262
14363
14464
14565
14666
14767
15068
15169
1526a
1536b
1546c
1556d
1566e
1576f
16070
16171
16272
16373
16474
16575
16676
16777
17078
17179
1727a
1737b
1747c
1757d
1767e
1777f
20080
20181
20282
20383
20484
20585
20686
20787
21088
21189
2128a
2138b
2148c
2158d
2168e
2178f
22090
22191
22292
22393
22494
22595
22696
22797
23098
23199
2329a
2339b
2349c
2359d
2369e
2379f
240a0
241a1
242a2
243a3
244a4
245a5
246a6
247a7
250a8
251a9
252aa
253ab
254ac
255ad
256ae
257af
260b0
261b1
262b2
263b3
264b4
265b5
266b6
267b7
270b8
271b9
272ba
273bb
274bc
275bd
276be
277bf
300c0
301c1
302c2
303c3
304c4
305c5
306c6
307c7
310c8
311c9
312ca
313cb
314cc
315cd
316ce
317cf
320d0
321d1
322d2
323d3
324d4
325d5
326d6
327d7
330d8
331d9
332da
333db
334dc
335dd
336de
337df
340e0
341e1
342e2
343e3
344e4
345e5
346e6
347e7
350e8
351e9
352ea
353eb
354ec
355ed
356ee
357ef
360f0
361f1
362f2
363f3
364f4
365f5
366f6
367f7
370f8
371f9
372fa
373fb
374fc
375fd
376fe
377ff
400100
401101
402102
403103
404104
405105
406106
407107
410108
411109
41210a
41310b
41410c
41510d
41610e
41710f
420110
421111
422112
423113
424114
425115
426116
427117
430118
431119
43211a
43311b
43411c
43511d
43611e
43711f
440120
441121
442122
443123
444124
445125
446126
447127
450128
451129
45212a
45312b
45412c