How to use the Base 7 to Binary tool
- Enter a septenary number in the Base-7 number box using only the digits 0 to 6. Example fills in 63.
- Select Convert to compute the bits.
- Read the binary number in the Result box. The sample value 63 produces 101101.
- Select Copy to copy the digits, or Clear to begin again.
How base 7 to binary conversion works
In septenary each place is worth seven times the one before it: 1, 7, 49, 343, 2,401. The tool finds the value of your input by taking the digits in order, multiplying the total so far by 7 and adding the next digit. It then prints that value using binary digits.
Seven is prime, so base 7 shares no structure with base 2. There is no grouping trick. One septenary digit is worth about 2.81 bits, which means a base-7 number converts to a binary string close to three times as long.
Worked example: weeks and days
A count of weeks and leftover days is a two-part base-7 number. Six weeks and three days is written 63 in septenary: 6 × 7 + 3 = 45 days. In binary, 45 is 101101.
A longer value works the same way. For 1654, compute 1 × 343 + 6 × 49 + 5 × 7 + 4 = 676. In binary 676 is 512 + 128 + 32 + 4.
63 (base 7) = 6*7 + 3 = 45 = 101101 (base 2)
1654 (base 7) = 343 + 294 + 35 + 4 = 676 = 1010100100 (base 2)Do not confuse base 7 with octal
Every base-7 numeral is also a valid octal numeral, because both avoid the digits 8 and 9 and octal merely adds the digit 7. The values differ, though. Read as octal, 63 is 51 and converts to 110011. Read as base 7, it is 45 and converts to 101101.
Octal converts to binary three bits per digit. Base 7 does not. If you mentally expand 63 to 110 011 you have done an octal conversion. Use the Octal to Binary tool when the source really is base 8.
A parity check for septenary input
Seven is odd, so every power of seven is odd. That makes the whole number odd or even according to the sum of its digits. For 63 the digit sum is 9, which is odd, and the result ends in 1. For 1654 the digit sum is 16, which is even, and the result ends in 0. A mismatch means the input or the copy went wrong.
What the converter accepts and rejects
The parser trims whitespace at both ends, lowercases the input and then checks each character.
- Digits 0 to 6 are valid. Entering 78 returns Invalid base-7 digit: 7.
- One leading minus sign is allowed, and -16 converts to -1101.
- Thousands separators, internal spaces and decimal points are not allowed.
- At most 4,096 characters are read. Longer input returns Enter at most 4,096 digits.
Frequently asked questions
What is 100 in base 7 as binary?
Septenary 100 is 49, one seven squared. In binary 49 is 110001, which is 32 + 16 + 1. The tool returns that six-bit string.
Which digits does base 7 use?
The seven digits 0, 1, 2, 3, 4, 5 and 6. The digits 7, 8 and 9 never appear. Seven is written 10, meaning one seven and no units.
How is base 7 different from octal?
Octal is base 8 with digits 0 to 7 and maps to binary three bits at a time. Base 7 has digits 0 to 6 and no such mapping. The same digits give different values: 63 is 51 in octal and 45 in base 7.
What is the largest three-digit base 7 number in binary?
It is 666, which equals 342 in decimal, one less than 343. The binary form is 101010110, nine bits long.
Can the tool convert negative septenary numbers?
Yes. A minus sign before the digits is carried over to the output. The binary part is the magnitude of the number. No sign bit or two's complement encoding is applied.
Where is base 7 used?
Mostly in teaching number systems and in calendar arithmetic, where days of the week repeat every seven. Weekday calculations work modulo 7, so the last base-7 digit of a day count gives the weekday offset.