Base 16 to Base 8

Hexadecimal to Octal Converter

Convert each hex character to a 4-bit binary nibble. Once the full binary stream is formed, regroup the bits into sets of 3 from right to left to get octal digits.

Allowed: 0–9, A–F
base 16
Examples:
Octal Result (Primary Target)base 8
37
Binary (base 2)
11111
Decimal (base 10)
31

Step-by-Step Calculation Steps

Two-Step Conversion (Bridge)
Convert from Hexadecimal to Decimal/Binary first, then convert to Octal:
Step 1: Hexadecimal to Decimal
1F (Hexadecimal) = 31 (Decimal)
Step 2: Decimal to Octal
31 (Decimal) = 37 (Octal)

How to Convert Hexadecimal to Octal

Convert each hex character to a 4-bit binary nibble. Once the full binary stream is formed, regroup the bits into sets of 3 from right to left to get octal digits.

Conversion Formula / Rule
Hex (base 16) ➔ 4-bit binary ➔ regroup into 3-bit chunks ➔ Octal (base 8)

Worked Example: B4 (Hexadecimal) to Octal

Problem Convert B4 (base 16) into base 8
Step-by-Step Solution
  1. Convert hex to binary: B (11) = 1011, 4 = 0100
  2. Full binary stream: 10110100
  3. Regroup into 3-bit chunks from right: [010] [110] [100]
  4. Convert chunks to octal digits: 010 = 2, 110 = 6, 100 = 4
  5. Octal result = 264₈
Final Result 264 (Octal)

Quick Conversion Reference Table (0–15)

Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):

Decimal (10) Binary (2) Octal (8) Hexadecimal (16)
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

Image preview

Fit