At first glance all this switching between number systems (decimal, binary and hex) may not seem to be a help at all, but we’ve seen that only a very little effort can make it perfectly clear, not only in principle but also in practice.

To enable you to get more practice, this interactive tool will help you to see how the conversions work, and get in a little practice.

NB: you need to have JavaScript enabled on your browser for this to work!

Instructions

First, either hit the random button, or enter a number of your own to convert. Remember, if it’s a binary number, precede it with 0b, and if it’s a hexadecimal number precede it with 0x. Then, in the Answers section, enter the conversions. The corresponding number answer will be filled in automatically – in other words, if you enter a hex number (or a hex number is randomly generated) then the hex answer field will be filled in.

You can fill in your conversions in the your answers boxes, then hit the check answers button to see if you’re correct. If you are, then the correct answers field will be filled in. Keep going until you get the right answer, or you can hit the show answers button, and the conversions will be done for you.

You should know that there is no validation of numbers that you enter. In other words, if you enter some nonsense like 0bAJ3r in the Number to Convert field, just for instance, then the code simply will not work. So, it’s up to you to make sure that you enter valid numbers!

Binary, Hexadecimal and Decimal Conversion Tool

Number To Convert

Enter your number to convert or click

Answers
Your Answers Correct Answers
Check/Reveal answers

If you’d like to view the Javascript for this tool, you can see it at this link: Number Base Conversion Tool. It’s available under the GNU license of the site, so you are allowed to use it for your own purposes, but please put a link back to this page and leave the header notice in the file.

Pin It on Pinterest

Share This

Share This

Share this post with your friends!