# Online Converter From Decimal to Binary, Octal and Hexadecimal

An online converter from decimal to different bases such as binary, octal and hexadecimal is included at the bottom of this page. But we first explain what are bases?
A number N may be written in any base B as follows
N = a0 + a1 B 1 + a2 B 2 +...+ak B k
where any of the coefficient ai has a value such that

0 ≤ a i < B

The bases that are used in computing are:

Decimal or (denary) base 10 , binary base 2, octal base 8 and hexadecimal base 16.

Example 1: Base 10

This base uses all digits from 0 to 9

3234 = 4 + 3×101 + 2×102 + 3×103

Example 2: Base 2 (binary)

This base uses the digits 0 and 1

110110 = 0 + 1×21 + 1×22 + 0×23 + 1×24 + 1×25

Example 3: Base 8 (octal)

This base uses the digits 0 to 7

2674 = 4 + 7×81 + 6×82 + 2×83

This base uses the folllowing as digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

with A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15.

A67B = B + 7×81 + 6×82 + A×83 = 11+ 7×81 + 6×82 + (10)×83

## ONLINE CONVERTER

 Enter Non Negative Integer (Base 10):

Books and References

1 - 1+ 1 = 10 Computer Number Bases: Computer Maths Series (Computer Mathematics Series) - by William Parks , Albert Fadell (Editor)
2 - en.wikibooks.org/wiki/A-level_Computing_2009/AQA/Problem_Solving,_Programming,_Data_Representation_and_Practical_Exercise/Fundamentals_of_Data_Representation/Binary_number_system
3 - en.wikipedia.org/wiki/Binary_number