FinanceHealthMathDev ToolsDate & TimeText ToolsConvertersUtilitiesBusinessConstructionAgricultureAutomotiveScienceStatisticsEducationLegal & TaxAbout

Number System Converter

Convert between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter any value and instantly see all four representations with conversion steps.

Enter Value
Decimal (base 10)
10
Binary (base 2)
Octal (base 8)
Decimal (base 10)
Hexadecimal (base 16)
Base 32
Base 64 (number, not encoding)
Quick Examples
Frequently Asked Questions
How do I convert binary to decimal?

Multiply each binary digit by 2 raised to its position (right to left, starting at 0), then sum. For 1011: (1×8)+(0×4)+(1×2)+(1×1) = 11 in decimal.

How do I convert decimal to binary?

Repeatedly divide by 2 and record remainders. Read remainders from bottom to top. For 13: 13÷2=6r1, 6÷2=3r0, 3÷2=1r1, 1÷2=0r1. Binary = 1101.

What is hexadecimal used for in computing?

Hex (base 16) represents binary data compactly — each hex digit represents exactly 4 binary bits. Memory addresses, color codes (#FF5733), error codes, and network addresses use hex because it is more readable than binary.

How do I convert hex to decimal?

Each hex digit has a positional value based on powers of 16. For FF: (15×16)+(15×1) = 240+15 = 255. This converter handles the calculation automatically. Click any result to copy it.

What is octal and where is it used?

Octal (base 8) uses digits 0-7. It was historically used in computing because 3 binary bits map to one octal digit. Unix file permissions use octal: chmod 755 = 111 101 101 in binary.

Why does binary use only 0 and 1?

Binary corresponds to two physical states in electronics: off (0) and on (1). Digital circuits detect voltage levels — low voltage is 0, high voltage is 1. All digital data is ultimately stored and transmitted as binary.

How many values can n binary bits represent?

n bits can represent 2ⁿ values (0 to 2ⁿ-1). 4 bits: 16 values (0-15). 8 bits (1 byte): 256 values (0-255). 16 bits: 65,536 values. 32 bits: about 4.3 billion values.