JSONToonPro
Number converter tool

Hex to Octal Converter

Convert hexadecimal numbers (base 16) to octal (base 8) instantly. The converter handles the hex → binary → octal process automatically. Paste any hex value with or without the 0x prefix.

100% client sideInstant resultNo data sent
Hexadecimal to Octal
Hexadecimal (Base 16)
Octal (Base 8)
Result appears here...

How to Convert Hexadecimal to Octal

Converting hexadecimal to octal by hand is straightforward once you know the routine. The converter above does it instantly, but working through the steps yourself is the fastest way to understand what is actually happening to the digits.

  1. Convert each hexadecimal digit into its 4 digit binary form.
  2. Join all the bits together into one binary string.
  3. Regroup that binary string into blocks of 3, working from the right and padding the left with zeros.
  4. Convert each block into a single octal digit.

Worked example: 1F4

Each digit to binary: 0001 1111 0100
Joined binary: 111110100
Regrouped into 3 bit blocks: 111 110 100
Each block converted: 111 = 7, 110 = 6, 100 = 4

Result: (1F4)¹⁶ = (764)⁸

The Hexadecimal System

Hexadecimal is the base 16 system. It uses the digits 0 through 9 and then the letters A through F to stand for the values 10 through 15. Its key property is that one hex digit represents exactly four binary digits, a nibble, so a single byte is always two hex characters. That compactness is why hex shows up everywhere in computing: HTML colour codes such as FFFFFF for white and 000000 for black, memory addresses, MAC addresses, hash digests, and byte level debugging output.

Hexadecimal uses the digits 0 through 9 and A through F.

The Octal System

Octal is the base 8 numeral system and uses the digits 0 through 7. Its usefulness comes from the fact that one octal digit maps exactly onto three binary digits, so it is a compact way to write binary without doing real arithmetic. Octal was common on early minicomputers with 12, 24, and 36 bit words. Today the place most developers still meet it is Unix file permissions, where a command such as chmod 755 sets read, write, and execute bits three at a time.

Octal uses the digits 0 through 7.

Hexadecimal to Octal Conversion Examples

(40)¹⁶ = (100)⁸
(FF)¹⁶ = (377)⁸
(400)¹⁶ = (2000)⁸

Hexadecimal to Octal Conversion Chart

A full reference table for the values 1 to 256. Use it to check a conversion quickly or to look up a common value without typing anything.

HexadecimalOctal
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
HexadecimalOctal
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
HexadecimalOctal
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
HexadecimalOctal
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

Need a different pair of bases? Browse every number converter tool including binary, octal, decimal, and hexadecimal in both directions.

Frequently asked questions

4 answers
The easiest method is to convert hex to binary first (each hex digit = 4 bits), then regroup the binary into groups of 3 bits from the right and convert each group to octal. For example, 0xAF → 1010 1111 in binary → 010 101 111 → octal 257.

More JSON Tools

About Hex to Octal Conversion

Hex and octal both derive from binary but use different groupings, 4 bits per hex digit vs. 3 bits per octal digit. Because they do not share a common power, direct conversion is not possible with a single lookup table. The standard method expands hex to binary (4 bits per digit), then regroups those bits into threes for octal. This tool automates that process, making it useful for computer science students, embedded developers, and anyone bridging hex-based tools with octal-based legacy systems.