Number Base Converter

Convert between binary, octal, decimal, and hexadecimal number systems

Input Number

Only 0-9 allowed

Base Conversion Table (0-15)

DecimalBinaryOctalHexadecimal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Number Base Knowledge

Binary

Base 2, uses only 0 and 1. The number system used internally by computers.

Octal

Base 8, uses digits 0-7. Commonly used for Unix file permissions.

Decimal

Base 10, uses digits 0-9. The number system used in daily life by humans.

Hexadecimal

Base 16, uses digits 0-9 and A-F. Commonly used for color codes and memory addresses.

Conversion Methods

Decimal to Other Bases

Division method: Continuously divide by the target base, arrange remainders in reverse order.

Other Bases to Decimal

Positional notation: Multiply each digit by the corresponding power of the base, then sum.

Binary and Octal

Three binary digits correspond to one octal digit (2³ = 8).

Binary and Hexadecimal

Four binary digits correspond to one hexadecimal digit (2⁴ = 16).