Base 9 (Nonary) to Binary Converter – Free

This base 9 to binary converter takes a nonary whole number, written with the digits 0 to 8, and returns its binary form. The math is exact and local.

How to use the Base 9 to Binary tool

  1. Enter a nonary number, digits 0 to 8 only, in the Base-9 number box. Select Example to load 50.
  2. Select Convert to get the result.
  3. Read the binary value in the Result box. Nonary 50 gives 101101.
  4. Select Copy to copy the value, or Clear to remove it.

How base 9 to binary conversion works

Nonary place values are powers of nine: 1, 9, 81, 729, 6,561. To convert, the tool accumulates the value of the input one digit at a time. It multiplies the total by 9, adds the next digit and repeats until the digits run out. The result is then written in base 2 with no padding.

Nine is odd, so no nonary digit lines up with a whole number of bits. Each digit is worth about 3.17 bits. A nonary number is slightly more compact than octal, and its binary form is a little over three times its length.

Worked example: 728 in nonary

Multiply out the places: 7 × 81 + 2 × 9 + 8 = 567 + 18 + 8 = 593. Then express 593 in powers of two. It is 512 + 64 + 16 + 1, so the ten-bit result has ones at positions 9, 6, 4 and 0.

728 (base 9) = 7*81 + 2*9 + 8 = 593
593 (base 10) = 1001010001 (base 2)

Base 9 as shorthand for ternary

Nine is three squared, so nonary relates to ternary the way hexadecimal relates to binary. Each nonary digit stands for exactly two ternary digits: 0 is 00, 4 is 11, 5 is 12 and 8 is 22.

The example value shows the link. Nonary 50 splits into 5 and 0, which are 12 and 00, giving ternary 1200. Both 50 in base 9 and 1200 in base 3 equal 45, and both convert to 101101. If you work with ternary data, base 9 is the compact way to write it, and this tool takes it straight to binary.

Common input mistakes

Nonary looks a lot like decimal, which makes one error more likely than the rest: typing a 9. The list covers what the parser rejects.

  • The digit 9 is not valid. Entering 19 returns Invalid base-9 digit: 9.
  • A number copied with a thousands separator or spaces fails on the separator character.
  • Fractions are not supported, so a decimal point is reported as an invalid digit.
  • Input over 4,096 characters is refused with Enter at most 4,096 digits.
  • An empty box returns Enter a base-9 whole number.

Checkpoints for nonary values

Round nonary numbers make useful checkpoints. Nonary 10 is nine (1001), 100 is eighty-one (1010001) and 1000 is 729 (1011011001). The largest two-digit value, 88, is 80, or 1010000. Negative values keep their sign: -17 is minus sixteen and converts to -10000.

Frequently asked questions

What is a base 9 number system called?

It is called nonary. It uses nine digits, 0 through 8, and each position is worth nine times the position to its right.

How do I convert nonary 50 to binary?

Nonary 50 means 5 × 9 + 0, which is 45. Written in binary, 45 is 101101. The Example button on this page runs exactly this conversion.

Why is 9 rejected as a digit?

A base-9 place can only hold values up to 8. Nine carries into the next place and is written 10. If your number contains a 9 it is probably decimal, so use the Decimal to Binary tool.

How many bits does a nonary digit take?

About 3.17 on average, the base-2 logarithm of 9. Four bits are needed to store a single nonary digit on its own, since the values 0 to 8 do not fit in three.

Can I convert base 9 to base 3 with this tool?

Not directly, since the output is always binary. That conversion is easy by hand, though: replace each nonary digit with its two-digit ternary equivalent, for example 7 with 21 and 2 with 02.

Does the converter keep my input private?

Yes. All parsing and arithmetic happen in your browser. The number is not sent to any server.

Related tools