Binary to octal

This converter converts the binary to octal by default, enters the binary number, then clicks the Convert Now button, and you can also select other base numbers(8 10 16 32 36 58 64) for conversion. Hex to binary

          | )


To baseConversion resultDescription
8
Other conversions:
10
16
26Lower case letters
32Does not contain ILOU characters
36Number + lowercase
52Uppercase letters + lowercase letters
58Does not contain 0OlI characters
62Number + lowercase + uppercase
64

The range of safe integers specified in js is -2^53~2^53, so the number conversion greater than 9007199254740991 may have accuracy problems.

Knowledge of converter

In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically 0 (zero) and 1 (one).

The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit. Because of its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used by almost all modern computers and computer-based devices.

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010. Two zeroes can be added at the left: (00)1 001 010, corresponding the octal digits 1 1 2, yielding the octal representation 112.

In the decimal system each decimal place is a power of ten. For example:

6510 = 6x10 1 + 5x10 0

In the octal system each place is a power of eight. For example:

1238 = 1x 82 + 2x81 + 3x80

Binary to octal conversion table

binaryoctal
0000
0011
0102
0113
1004
1015
1106
1117