Numbers Converter - Convert Binary, Decimal, Hexadecimal, Octal & More

Result:

10 (dec) = 1010 (bin)

🔥 Popular Converters

Quick access to most used tools

How Number System Conversion Works

1

Input Number

Enter number in source base

2

Convert to Decimal

Parse using source base

3

Convert to Target

Convert to target base

parseInt(n, base₁)
toString(base₂)
Conversion process

Number System Conversion Formulas

Binary to Decimal

Decimal = Σ(digit × 2^position)

Example: 1011₂ = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 11₁₀

Decimal to Binary

Divide by 2, collect remainders

Example: 11₁₀ ÷ 2 = 5 R1, 5 ÷ 2 = 2 R1, 2 ÷ 2 = 1 R0, 1 ÷ 2 = 0 R1 → 1011₂

Hexadecimal to Decimal

Decimal = Σ(digit × 16^position)

Example: A3₁₆ = 10×16¹ + 3×16⁰ = 163₁₀

Octal to Decimal

Decimal = Σ(digit × 8^position)

Example: 75₈ = 7×8¹ + 5×8⁰ = 61₁₀

Number System Conversion Table

DecimalBinaryHexadecimalOctal
0000
1111
21022
31133
410044
510155
611066
711177
81000810
91001911
101010A12
111011B13
121100C14
131101D15
141110E16
151111F17

Number System Progression Chart

Decimal: 1

Binary:1
Hex:1
Octal:1

Decimal: 8

Binary:1000
Hex:8
Octal:10

Decimal: 16

Binary:10000
Hex:10
Octal:20

Decimal: 32

Binary:100000
Hex:20
Octal:40

Decimal: 64

Binary:1000000
Hex:40
Octal:100

Decimal: 255

Binary:11111111
Hex:FF
Octal:377

Practice Problems

Problem 1:

Convert 1010₂ to decimal

Solution: 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 8 + 0 + 2 + 0 = 10₁₀

Problem 2:

Convert 25₁₀ to binary

Solution: 25 ÷ 2 = 12 R1, 12 ÷ 2 = 6 R0, 6 ÷ 2 = 3 R0, 3 ÷ 2 = 1 R1, 1 ÷ 2 = 0 R1 → 11001₂

Problem 3:

Convert FF₁₆ to decimal

Solution: 15×16¹ + 15×16⁰ = 240 + 15 = 255₁₀

Problem 4:

Convert 64₁₀ to octal

Solution: 64 ÷ 8 = 8 R0, 8 ÷ 8 = 1 R0, 1 ÷ 8 = 0 R1 → 100₈

Problem 5:

Convert 111₂ to hexadecimal

Solution: 111₂ = 7₁₀ = 7₁₆

Daily Uses of Number Systems

Computer programming uses binary and hexadecimal for memory addresses

Digital electronics design requires binary and octal number systems

Network administration uses hexadecimal for MAC addresses and IP configuration

Web development uses hexadecimal color codes for CSS styling

Cybersecurity analysis involves converting between different number bases

Export Options

Quick Reference

📏1 meter
3.28 feet
⚖️1 kilogram
2.2 pounds
🌡️0°C
32°F
🥤1 liter
0.26 gallon