Binary to Octal Converter

A binary to octal converter groups binary digits into sets of three, starting from the right, and writes each group as one octal digit.

Example: 11111111 = 377

Text tools on this site use UTF-8 (the letter A is the byte 01000001). This page converts a whole number between bases and does not encode characters.

Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).

BinaryOctal
377

Convert 11111111 to octal

  1. Pad to a multiple of 3. 11111111 has 8 bits. Add a leading 0 so you can split evenly: 011 111 111.
  2. Convert each group. 011 is 3, 111 is 7, and 111 is 7.
  3. Join the digits. The octal result is 377. Check: 3×64 + 7×8 + 7 = 192 + 56 + 7 = 255, and 11111111 is also 255.

Binary to octal examples

BinaryGroups of 3Octal
00000
1111117
1000001 00010
1111001 11117
11111111011 111 111377

Frequently Asked Questions

How do you convert binary to octal?

Start at the right and mark groups of three bits. Convert 000–111 into the digits 0–7. Pad the leftmost group with zeros if it is short.

What is 11111111 in octal?

11111111 is 377 octal. The groups are 011, 111, and 111 after a leading zero is added.

Why group by three instead of four?

Octal is base 8, and 8 is 2³, so three bits make one octal digit. Hexadecimal uses four bits because 16 is 2⁴.

Is 377 the same as chmod 377?

As a number, 377 octal is decimal 255. Unix permission modes are usually three digits such as 755; 377 would set a different pattern of permission bits. The arithmetic conversion is the same either way.

Related tools & guides