# Why does the app I downloaded say that 1 in binary is 00110001?

I've just started learning binary so mind me if I'm bad at this. I think that the binary for 1 ought to be just "1" but, when I key it in to an app I downloaded, the answer has extra 0s and 11s in it. Why?

• Well, I say "it's pure coincidence"; the decimal digit $d$ is coded in ASCII as the decimal number $48+d$, so the last four bits of the ASCII representation of any decimal digit $d$ is actually $d$ represented in bianry. That was probably by design, rather than coincidence. Oct 27, 2018 at 22:07