CCalclabhub

Number Bases

Regrouping binary into octal and hex

Because eight and sixteen are powers of two, bits can be regrouped directly without passing through decimal.

Last updated

The Formula

1 octal digit = 3 bits, 1 hex digit = 4 bits

Because eight and sixteen are powers of two, bits can be regrouped directly without passing through decimal.

SymbolMeaning
octalOctal digit
hexHex digit

What Each Symbol Means

octalbits

Octal digit

Three binary digits.

hexbits

Hex digit

Four binary digits.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to convert number bases page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Convert Number Bases, filed under Unit Conversion. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Regrouping binary into octal and hex?

The formula for Regrouping binary into octal and hex is 1 octal digit = 3 bits, 1 hex digit = 4 bits. Because eight and sixteen are powers of two, bits can be regrouped directly without passing through decimal.

What units should I use with Regrouping binary into octal and hex?

Substitute octal in bits, hex in bits. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Regrouping binary into octal and hex?

Using a digit the base does not have. Binary only has 0 and 1, octal only 0 to 7. A 9 in an octal number is invalid, not a large digit.