Skip to the content

Binary to Octal Converter

Convert binary to octal three bits at a time, and see which group becomes which octal digit.

Type a binary number in the first field and read it in octal in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.

Working

Group of 3 bitsOctal digit
0011
0113
1015

Side by side: 135

Other bases

from 2 to 36
Bit length
7 bits
Fits in
1 byte
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

How to convert binary to octal by hand

Eight is 2³, so one octal digit stands for exactly three bits.

Split the bits into groups of three, starting from the right, and fill the left-hand group with zeros if it is short. Then write down the value of each group. For 1011101 the groups are 001, 011 and 101. Those are 1, 3 and 5, so the answer is 135.

The working under the two fields at the top of the page does this for whatever number you type.

Good to know

  • Group from the right, as with hexadecimal. Only the left-hand group may be filled up with zeros.
  • The value of a group is the sum of 4, 2 and 1 for the bits that are set: 110 is 4 + 2 = 6.
  • Three bits per digit is why octal suits Unix permissions. Read, write and execute are one bit each, so rwx is 111, which is 7, and r-x is 101, which is 5.

Binary to octal table

BinaryOctal
0000
0011
0102
0113
1004
1015
1106
1117
001 00010
001 00111
001 01012
001 01113
001 10014
001 10115
001 11016
001 11117
010 00020
BinaryOctal
010 10024
100 00040
110 01062
001 000 000100
001 100 100144
001 111 111177
010 000 000200
011 001 000310
011 111 111377
100 000 000400
111 110 100764
001 000 000 0001000
001 111 101 0001750
010 000 000 0002000
001 000 000 000 00010000
001 111 111 111 111 111177777

The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.

See all 9