Base 6 (Senary) to Binary Converter – Free

This base 6 to binary converter reads a senary whole number, digits 0 through 5, and writes the same value in base 2 using exact integer arithmetic.

How to use the Base 6 to Binary tool

  1. Type a senary number with digits 0 to 5 into the Base-6 number box, or use Example to load 113.
  2. Select Convert to process the input.
  3. Read the binary output in the Result box. For 113 the answer is 101101.
  4. Select Copy to copy the output, or Clear to wipe the box.

How base 6 to binary conversion works

Senary, also called heximal or seximal, has six digits and place values of 1, 6, 36, 216, 1,296 and so on. The converter evaluates the input as a number, then prints that number in binary. Internally it processes digits left to right, multiplying the accumulated value by 6 and adding the next digit.

Six is 2 × 3. The factor of 2 gives senary a partial link to binary, but the factor of 3 prevents a clean digit-to-bits mapping. One senary digit carries about 2.585 bits, so the binary form is usually a little more than two and a half times as long as the input.

Worked example: 5432 in senary

Expand by place value: 5 × 216 + 4 × 36 + 3 × 6 + 2 = 1,080 + 144 + 18 + 2 = 1,244. In powers of two, 1,244 is 1,024 + 128 + 64 + 16 + 8 + 4, which gives an 11-bit result.

5432 (base 6) = 5*216 + 4*36 + 3*6 + 2 = 1244
1244 (base 10) = 10011011100 (base 2)

The last digit predicts the last bit

Every place above the units in base 6 is a multiple of 6, and therefore even. So whether the number is odd or even depends only on its final digit. If the last senary digit is 0, 2 or 4, the binary result ends in 0. If it is 1, 3 or 5, the result ends in 1.

The example 113 ends in 3, and 101101 ends in 1. The value 5432 ends in 2, and 10011011100 ends in 0. It is a fast sanity check before you rely on the output.

Reference values for senary numbers

A few fixed points help when estimating a result or checking one by eye.

  • 10 in base 6 is six, or 110 in binary.
  • 12 in base 6 is eight, or 1000.
  • 100 in base 6 is thirty-six, or 100100.
  • 555 in base 6 is 215, the largest three-digit value, or 11010111.
  • 1000 in base 6 is 216, or 11011000.

Accepted input and failure cases

Only the six digits 0 to 5 are valid. A 6, 7, 8 or 9 produces an error such as Invalid base-6 digit: 6. This catches the common slip of typing a decimal number into the box. A minus sign in front is fine, and -41 returns -11001. Embedded spaces, separators and fractional parts are refused. Input longer than 4,096 characters is rejected before any conversion starts.

Frequently asked questions

What is base 6 called?

Base 6 is known as senary. Some enthusiasts also say heximal or seximal. It uses the digits 0 to 5, and each place is worth six times the place to its right.

How do I convert senary 113 to binary?

Work out 1 × 36 + 1 × 6 + 3 = 45, then convert 45 to binary: 101101. Entering 113 in the tool and selecting Convert gives the same six bits.

Why is the digit 6 not allowed in base 6?

Each place holds values from 0 to 5. Six itself rolls over to the next place and is written 10. The tool flags a 6 or any higher digit as an invalid base-6 digit.

Do dice rolls count as base 6 numbers?

Almost. A die shows 1 to 6, while senary digits run 0 to 5. Subtract 1 from each roll to get a valid digit. People use this to turn dice rolls into random binary numbers.

Will long senary numbers lose precision?

No. The converter uses big integers instead of floating-point numbers, so a value with hundreds or thousands of digits is converted exactly. The only cap is the 4,096-character input limit.

Is the number I enter sent anywhere?

No. Conversion happens in the page with JavaScript, and the digits you type are not transmitted.

Related tools