Binary to Base 12 (Duodecimal) Converter – Free

This binary to base 12 converter rewrites a base-2 whole number in duodecimal. The output uses the digits 0 to 9 plus A for ten and B for eleven.

How to use the Binary to Base 12 tool

  1. Enter the bits in the Binary number box without spaces. A leading minus sign is allowed.
  2. Select Convert to change the number from base 2 to base 12.
  3. Read the duodecimal digits in the Result box. Letters are always uppercase.
  4. Select Copy to take the result, or Example to convert the sample 101101.

What base 12 is

Base 12 counts in dozens. Each position is worth twelve times the one to its right: units, twelves, 144s (a gross), 1,728s (a great gross). Twelve single-symbol digits are needed, so two extra symbols follow 9. This tool writes ten as A and eleven as B, the same convention programming languages use for radix 12. Some dozenal texts use other symbols for those two digits, so translate them if you are comparing.

Twelve divides evenly by 2, 3, 4 and 6. That is why dozens survive in everyday units: 12 inches to a foot, 12 months, two 12-hour halves of a day, and items packed by the dozen.

Converting binary to base 12 step by step

Twelve is not a power of two, so bits cannot be grouped into base-12 digits the way four bits make a hex digit. The conversion goes through the value: divide by twelve repeatedly and collect the remainders from last to first.

The sample 101101 is 45. Dividing 45 by 12 gives 3 remainder 9, and 3 divided by 12 gives 0 remainder 3. Reading the remainders upward gives 39, meaning three dozens and nine. For 10001111, which is 143, the steps are 143 = 11 x 12 + 11, so both digits are eleven and the result is BB.

101101  ->  39
10001111  ->  BB
1111101000  ->  6B4
-101101  ->  -39

Rules for the binary input

The field takes one whole number. The tool trims whitespace at the ends but does not allow it inside the number.

  • Only 0 and 1 are valid digits. Anything else produces Invalid base-2 digit followed by the character.
  • A leading minus sign makes the result negative. The sign is copied to the output.
  • A 0b prefix is accepted and ignored.
  • Leading zeros do not affect the result and are not reproduced.
  • The input can be up to 4,096 characters long.

Reading duodecimal results

A base-12 number that ends in 0 is a multiple of twelve, and one that ends in 0 or 6 is a multiple of six. One thousand, 1111101000 in binary, comes out as 6B4: six gross (864), eleven dozens (132) and four units.

Do not mistake the output for hexadecimal. Both notations use A and B, but 1A in base 12 is 22, while 1A in hex is 26. To go the other way, use the Base 12 to Binary tool.

Frequently asked questions

What do A and B mean in the base-12 result?

A stands for ten and B stands for eleven. Base 12 needs twelve distinct digits, so two letters follow 0 to 9. The tool prints them in uppercase.

How do I convert binary to base 12 manually?

Work out the decimal value of the binary number, then divide by 12 over and over. Each remainder is one base-12 digit, starting with the rightmost. Stop when the quotient reaches zero.

Is base 12 the same as dozenal or duodecimal?

Yes. Duodecimal and dozenal are both names for the positional number system with radix twelve. Only the choice of symbols for ten and eleven varies between sources.

Can I group bits to get base-12 digits like I do for hex?

No. Grouping only works when the target base is a power of two, such as 4, 8 or 16. For base 12 the whole value has to be divided, which is what this tool does.

How long can the binary number be?

Up to 4,096 characters. The conversion uses exact integer arithmetic, so a number that long still converts without rounding. The base-12 result is a little more than a quarter of the length of the binary input.

Related tools