Binary to Base 6 (Senary) Converter – Free

This binary to base 6 converter reads a whole number written in bits and prints it in senary, the number system whose digits run from 0 to 5.

How to use the Binary to Base 6 tool

  1. Enter the value in the Binary number box as a continuous run of bits.
  2. Select Convert to work out the senary digits.
  3. Read the base-6 result in the Result box.
  4. Select Copy to take it, or Example to convert the sample value 101101.

What base 6 looks like

Senary positions are worth 1, 6, 36, 216, 1,296 and so on. The number 113 in base 6 is one 36, one 6 and three units, which is 45. Because six is 2 x 3, base 6 handles halves and thirds cleanly: one half is 0.3 and one third is 0.2, with no repeating digits.

A standard die is a natural base-6 device. Subtract one from each roll and a sequence of rolls becomes a senary number, which is one way to turn dice into a uniformly random integer.

Worked example: binary to base 6

Start with 101101, the value 45. Thirty-six goes into 45 once with 9 left. Six goes into 9 once with 3 left. The digits are 1, 1 and 3, so the answer is 113.

A larger case: 10000000000 is 1,024. It contains four 216s (864), leaving 160. That holds four 36s (144), leaving 16, which is two 6s and four units. The result is 4424.

101101  ->  113
1100100  ->  244
11111111  ->  1103
10000000000  ->  4424

Divisibility shortcuts in senary

The final senary digit tells you about the factors 2 and 3 at a glance. If it is 0, 2 or 4, the number is even. If it is 0 or 3, the number is divisible by three. If it is 0, the number is a multiple of six. In the example above, 113 ends in 3, and 45 is indeed odd and divisible by three.

Binary shows factors of two through trailing zeros but says nothing obvious about three. Converting to base 6 is a quick way to see both.

How the tool reads your input

The input is trimmed, lowercased and checked. It may start with a minus sign and may carry a 0b prefix. After that, every character must be 0 or 1. A space between groups of bits is not skipped. It is reported as an invalid base-2 digit, so remove any grouping before converting.

The maximum length is 4,096 characters and fractions are not supported. The Base 6 to Binary tool reverses the conversion.

Frequently asked questions

What is base 6 called?

The usual name is senary. Some writers call it heximal. It is a positional system with six digits, 0 through 5, and place values that are powers of six.

How do I convert a binary number to base 6 by hand?

First get the decimal value. Then divide by 6 repeatedly, recording each remainder. Writing the remainders from last to first gives the senary digits. For 45 the remainders are 3, 1 and 1, so the result is 113.

Can I get base 6 by grouping bits?

No. Six has a factor of three, so it is not a power of two and no fixed group of bits equals one senary digit. The conversion has to use the whole value.

Why would a developer use base 6?

Mostly for anything driven by six-way choices: dice simulations, encoding rolls as integers, cube faces, and teaching material on number bases. It is also a handy check for divisibility by 2 and 3.

Does the output ever contain the digit 6?

No. The highest digit in base 6 is 5. Six itself is written 10, in the same way that ten is written 10 in decimal and two is written 10 in binary.

Related tools