Binary to Octal Converter

2
8
10

How to convert Binary to Octal?

To convert a binary number to octal, the process is straightforward because binary ($2^3=8$) fits perfectly into 3-bit groups.

Step-by-Step Method

  1. Group: Starting from the rightmost digit, divide the binary number into groups of three.

  2. Pad: If the last group on the left has fewer than three digits, add leading zeros until it has three.
  3. Translate: Convert each 3-bit group into its corresponding octal digit using the conversion table.
  4. Combine: Join the octal digits together to get the final result.

Conversion Table (Reference)

Binary (3-bit) Octal Digit
000 0
001 1
010 2
011 3
100 4
101 5
110 6
111 7

Example: Convert $1011011_2$ to Octal

  • Step 1 & 2 (Group and Pad):

    Working from right to left:

    $(1) (011) (011)$

    Pad the left group with two zeros: $(001) (011) (011)$

  • Step 3 (Translate):

    • $001 = 1$

    • $011 = 3$

    • $011 = 3$

  • Step 4 (Combine):

    $133_8$

Therefore, $1011011_2 = 133_8$.