My Learning

Keep this for later

Sign in or create a free account to save it. You’ll return to this page afterward.

Sign inCreate an account

Binary to Octal

Convert one nonnegative binary integer to octal.

Enter one nonnegative whole number, not a list of bytes.

How to use this tool

Enter one binary number, optionally prefixed with 0b.

Important to know

Convert one nonnegative binary integer to octal.

Only binary digits 0 and 1 are valid; the input is treated as one integer.

Formula and methodology

Convert the base-2 integer to base 8, equivalent to grouping binary digits from the right in threes.

Example

11111111 in binary is 377 in octal.

Frequently asked questions

Are leading zeroes retained?

No. The result is the canonical integer representation without unnecessary leading zeroes.