# Number System Converter

The Number System Conversion is the one of basic conversion required when ever you are coding for a controller. You can read more about Number System in Micro-controller under Education. In the above converter we support conversion between Binary, Octal, Decimal and Hexadecimal. You can select number system from the drop-down list and enter the value to be converted in the "Convert From" text input field. As you type in the input it will show the converted values opposite to the other measuring unit.

The converter doesn't accepts fractional values. You can enter only "1" or "0" when "Binary" is selected, from "0" to "7" when "Octal" is selected, from "0" to "9" when "Decimal" is selected, and similarly alphabets from "A" or "a" to "F" or "f" in addition to numbers "0" to "9" when "Hexadecimal" is selected. You can enter any value of length 13, 15, 17 and 53 for Hexadecimal, Decimal, Octal and Binary respectively.

In our day to day life we use base 10 or decimal number for computation. For humans, decimal number are very easy to manipulate/calculate. But computers does not understand the decimal numbers as they only deal with binary numbers i.e. 1's and 0's. So it is required to convert decimal values to binary. Computers understand only binary numbers and it is very difficult to represent large numbers in binary form as it is difficult to read/understand by humans(programmers).

So the hexadecimal representation came into picture. The idea behind hexadecimal values is that, in common all processors or controllers uses minimum 4 bits for computations (no computer with less than 4 bit processor), so grouping 4 bits into single character. For example, representing 1011 as 0xB. By using hexadecimal values we can easily represent long binary values in more user friendly format. For example we can represent binary 1010 1010 1010 1010 as 0xAAAA which is human understandable format.

The octal number system is not much used in computers. It is required to learn the number system conversion for an software developer. You may not required to do the conversions on your own as your compiler will be doing it for you. When you are dealing with hardware dependent and memory related application, you need to perform few conversions on your own. Whenever you need any conversion, you can use our on-line number system converter.

In the above converter rather than using any conversion formula, we used inbuilt library function such as parseInt(value, type) and value.toString(type). However you can find all conversion formula with examples in our Number System article in Micro-controller under Education section.

All conversion examples with formula are discussed in our Number System article in Micro-controller under Education section.