How to convert text into Binary


This fantastic chart comes from today’s guest blogger, Liam McSherry.

In Liam’s words…

=============================

 

If anyone wants to know how to convert text into a series of binary digits, I quickly made this little graphic.

 

Note that this sort of system applies to all radices as a way of converting to them, with the divisor “2” changed to the value of the radix.

 
This is on the topic of the blog article, Text to Binary Converter – Small Basic Featured Program.
 
Thanks to Liam for this cool diagram!
 
Enjoy!
 
   – Ninja Ed
Comments (14)

  1. User Ed says:

    Jacob, make sure you check out Amir's Text to Binary Converter if you haven't yet: blogs.msdn.com/…/text-to-binary-converter-small-basic-featured-program.aspx

  2. User Ed says:

    This conversation originated from this Small Basic forums thread: social.msdn.microsoft.com/…/9d6f6e01-84e7-42af-bd2f-3818929102d8

  3. Confused says:

    And how exactly does 1 divided by 2 have a remainder of 0?

  4. possible explanation says:

    @confused

    65 divided by 2 is 32 with a remainder of 1, so 32 times 2 plus 1 equals 65 and  1 divided by 2 is 0 with a remainder of 1 because you multiply 0 by 2 plus 1 you get 1

  5. Matthew says:

    How did you get the letters into numbers?

  6. yuuri says:

    this is cool. I get everything perfectly.

  7. User Ed says:

    Thanks for explaining, Possible Explanation! =^)

  8. User Ed says:

    If anyone is confused, like Confused and Matthew, please ask in the Small Basic forum: social.msdn.microsoft.com/…/threads

    Thanks!

  9. unknown says:

    why does the ABCD has the decimal of 65,66,67 and 68?

  10. joseph says:

    How did you get the letters into numbers?

  11. User Ed says:

    Unknown/Joseph, those are the ASCII values.

    http://www.bing.com/search

    65 = A  

    66 = B  

    67 = C  

    68 = D  

  12. User Ed says:

    And that's also the answer to Matthew's question earlier. Thanks!

  13. Lightwill says:

    Great, helped in understanding this a lot, easily