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

Perform the conversion of numbers between different numerical systems.

Hexadecimal (Base 16) = Octal (Base 8)

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

Information about conversion units:

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.

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.

Hexadecimal (Base 16) vs Octal (Base 8)

Hexadecimal (Base 16)Octal (Base 8)
00
11
22
33
44
55
66
77
810
911
a12
b13
c14
d15
e16
f17

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

Note: To convert a hexadecimal number (base 16) to any other base, first convert the hexadecimal value to decimal (base 10). Follow these steps:

  1. Identify each digit of the hexadecimal 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 (1, 2, 3, etc.).
  3. Calculate the decimal value of each digit by multiplying it by the base (16) raised to the position of the digit. For example: digit * 16^position.
  4. Add up the values obtained in the previous step to get the equivalent decimal number.

Applying these steps to the hexadecimal number 9F:

  1. 9 and F are the digits.
  2. Starting from the rightmost, the positions are 0 and 1.
  3. 9 * 16^1 = 144; F (which is 15 in decimal) * 16^0 = 15.
  4. 144 + 15 = 159 decimal.

So, 9F hexadecimal = 159 decimal.

Conversion process from hexadecimal number or base 16 to decimal number or base 10.

Note: To convert a decimal number (base 10) to an octal number (base 8), follow these steps:

  1. Divide the decimal number by 8 and record the remainders of the divisions until the division result is 0.
  2. The remainders from the divisions should be written in reverse order as they were obtained, as they represent the weights of the corresponding octal digits.

Here's an example of converting the decimal number 159 to octal:

  1. Divide 159 by 8: 159 ÷ 8 = 19 with a remainder of 7.
  2. Divide 19 by 8: 19 ÷ 8 = 2 with a remainder of 3.
  3. Divide 2 by 8: 2 ÷ 8 = 0 with a remainder of 2.

The remainders of the divisions are written in reverse order: 237.

Therefore, the decimal number 159 converts to 237 in octal.

Visual example of the procedure to convert a decimal (base 10) number to octal (base 8).

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

Hexadecimal (Base 16) Octal (Base 8)
11
22
33
44
55
66
77
810
911
a12
b13
c14
d15
e16
f17
1020
1121
1222
1323
1424
1525
1626
1727
1830
1931
1a32
1b33
1c34
1d35
1e36
1f37
2040
2141
2242
2343
2444
2545
2646
2747
2850
2951
2a52
2b53
2c54
2d55
2e56
2f57
3060
3161
3262
3363
3464
3565
3666
3767
3870
3971
3a72
3b73
3c74
3d75
3e76
3f77
40100
41101
42102
43103
44104
45105
46106
47107
48110
49111
4a112
4b113
4c114
4d115
4e116
4f117
50120
51121
52122
53123
54124
55125
56126
57127
58130
59131
5a132
5b133
5c134
5d135
5e136
5f137
60140
61141
62142
63143
64144
65145
66146
67147
68150
69151
6a152
6b153
6c154
6d155
6e156
6f157
70160
71161
72162
73163
74164
75165
76166
77167
78170
79171
7a172
7b173
7c174
7d175
7e176
7f177
80200
81201
82202
83203
84204
85205
86206
87207
88210
89211
8a212
8b213
8c214
8d215
8e216
8f217
90220
91221
92222
93223
94224
95225
96226
97227
98230
99231
9a232
9b233
9c234
9d235
9e236
9f237
a0240
a1241
a2242
a3243
a4244
a5245
a6246
a7247
a8250
a9251
aa252
ab253
ac254
ad255
ae256
af257
b0260
b1261
b2262
b3263
b4264
b5265
b6266
b7267
b8270
b9271
ba272
bb273
bc274
bd275
be276
bf277
c0300
c1301
c2302
c3303
c4304
c5305
c6306
c7307
c8310
c9311
ca312
cb313
cc314
cd315
ce316
cf317
d0320
d1321
d2322
d3323
d4324
d5325
d6326
d7327
d8330
d9331
da332
db333
dc334
dd335
de336
df337
e0340
e1341
e2342
e3343
e4344
e5345
e6346
e7347
e8350
e9351
ea352
eb353
ec354
ed355
ee356
ef357
f0360
f1361
f2362
f3363
f4364
f5365
f6366
f7367
f8370
f9371
fa372
fb373
fc374
fd375
fe376
ff377
100400
101401
102402
103403
104404
105405
106406
107407
108410
109411
10a412
10b413
10c414
10d415
10e416
10f417
110420
111421
112422
113423
114424
115425
116426
117427
118430
119431
11a432
11b433
11c434
11d435
11e436
11f437
120440
121441
122442
123443
124444
125445
126446
127447
128450
129451
12a452
12b453
12c454