Binary to Octal
Convert one nonnegative binary integer to octal.
Make this result useful
Use it now, or keep a copy for later. We never save your tool input automatically.
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.