How to use the Base 12 to Binary tool
- Enter a duodecimal number in the Base-12 number box, using 0 to 9 plus A for ten and B for eleven. Example loads 39.
- Select Convert to run the conversion.
- Read the binary digits in the Result box. The value 39 in base 12 gives 101101.
- Select Copy to copy the binary number, or Clear to enter another value.
How base 12 to binary conversion works
Base 12, also called duodecimal or dozenal, counts in dozens. Each position is worth twelve times the one to its right: units, twelves, 144s, 1,728s and so on. It needs twelve digit symbols, so this tool follows the programming convention of 0 to 9, then A for ten and B for eleven.
Twelve is not a power of two, so there is no shortcut that maps each digit to a fixed group of bits, the way hex digits map to four bits. The converter works out the full value first. It starts at zero and, for every digit from left to right, multiplies the running total by 12 and adds the digit. The total is then written in base 2. The arithmetic uses arbitrary-precision integers, so long inputs convert exactly.
Worked example: 1B6 in base 12
Read 1B6 as 1 gross, 11 dozens and 6 units. That is 1 × 144 + 11 × 12 + 6 = 282. In binary, 282 is 256 + 16 + 8 + 2, which sets bits 8, 4, 3 and 1.
1B6 (base 12) = 1*144 + 11*12 + 6 = 282
282 (base 10) = 100011010 (base 2)Digits and notation the tool accepts
Input is case-insensitive and surrounding whitespace is ignored. The rules below come straight from the parser.
- Valid digits are 0 to 9, A and B. Lowercase a and b work too.
- A leading minus sign is allowed. The value -B converts to -1011.
- Other dozenal notations are not recognized. X and E, T and E, or the turned digits used by dozenal societies cause an Invalid base-12 digit error.
- Spaces inside the number, a plus sign and decimal points are rejected, so fractions such as 3.6 cannot be converted.
- The input can be up to 4,096 characters long, including any minus sign. Longer input returns Enter at most 4,096 digits.
A quick check using the last digit
Because 12 is divisible by 4, the last base-12 digit fixes the last two binary digits. Take the final digit, find its remainder when divided by 4 and write that remainder in two bits. For 39 the last digit is 9, the remainder is 1, and the binary result 101101 ends in 01. For 1B6 the last digit is 6, the remainder is 2, and 100011010 ends in 10.
Round dozenal numbers are not round in binary. The value 10 in base 12 is twelve, or 1100. The value 100 is 144, or 10010000.
Where base 12 turns up
Dozens and grosses in packaging, twelve inches to a foot, twelve months in a year and the twelve-hour clock are all base-12 groupings. Twelve has more divisors than ten (2, 3, 4 and 6), which is why thirds and quarters come out even.
Frequently asked questions
What do A and B mean in a base 12 number?
A stands for ten and B stands for eleven. Base 12 needs twelve single-character digits, and 0 through 9 only supply ten, so two letters fill the gap in the same way hexadecimal uses A through F.
How do I convert 100 in base 12 to binary?
The number 100 in base 12 is one gross, which is 144 in decimal. In binary that is 10010000, since 144 = 128 + 16. The tool returns the same string.
Does the result have leading zeros or a 0b prefix?
No. The output is the shortest binary form of the value, with no prefix and no padding. Negative inputs produce a minus sign followed by the binary magnitude, not a two's complement pattern.
How do I go from binary back to base 12?
Use the Binary to Base 12 tool. It reads a binary whole number and prints the duodecimal digits in uppercase, so eleven appears as B.