Divide by the number repeatedly by two (until it is zero) and collect the remainders. For example:
13 / 2 = 6 Remainder 1
6 / 2 = 3 Remainder 0
3 / 2 = 1 Remainder 1
1 / 2 = 0 Remainder 1
Reading remainders from bottom yields: 1101
Chat with our AI personalities