Table of Contents
What is 21 in binary? Below we show you the result of the decimal to binary conversion straightaway 🙂
The binary for 21 is 10101
As any other integer, 21 can be written as sum of potencies to the power of 2, known as binary code. Here’s the proof that 10101 is the binary of 21:
1×2^4 + 0x2^3 + 1×2^2 + 0x2^1 + 1×2^0 = 21
Yet, make sure to learn about 21 in binary signed in the next section.
If you like to know the binary code for any other decimal number than 21 please use our converter above.
Enter any number and hit Decimal to Binary.
Similar decimal to binary conversions on this web site include:
Convert 21 to Binary
Now you already know the most important thing about 21 in binary form. 10101 is binary 21. That is if the binary in unsigned.
The reason to have the binary 21 signed is to accommodate for negative numbers, in which case the sign bit is 1 in our example.
Therefore, minus 21 signed using two’s complement, will start with one or more 1’s, but the exact code for -21 decimal to binary depends on the signed number representation system and number of bits available.
Here you can convert binary to decimal. If you like to know what decimal 21 is on other number systems, we have that too:
21 in Hexadecimal = 1516
21 in Octal = 258
Summary
21 in binary is 10101 usually, that is if not signed. If you want to know more about signed number representations look it up on Wikipedia for example.
If 21 decimal to binary was useful to you please hit the sharing button and tell your friends about it. Or place a link on your website or blog.
Thanks for visiting us and spreading the word out about the binary of 21 and decimaltobinary.com.