Number Base Converter

Instant two-way conversion between binary, octal, decimal and hex.

What is a base (radix) converter?

A number base converter translates a value between different counting systems. The most common bases are decimal (base 10, everyday numbers), binary (base 2, used by computers), octal (base 8) and hexadecimal (base 16, used in programming and color codes). Each digit in a number represents a power of the base, and the converter handles the arithmetic instantly.

How binary to decimal conversion works

Each binary digit (bit) represents a power of 2, starting from the right with 2⁰. To convert binary to decimal, multiply each bit by its corresponding power of 2 and sum them:

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

Hexadecimal works the same way but uses base 16, with digits 0–9 and A–F (where A=10, B=11, ..., F=15). For example, 1F₁₆ = 1×16 + 15 = 31.

Step-by-step: convert between bases

  1. Enter the number. Type the value you want to convert in the input field.
  2. Select its current base. Choose the base of the number you entered (binary, octal, decimal, or hexadecimal).
  3. Read all conversions. The converter instantly displays the value in all four bases simultaneously.

When to use each base

Practical examples

FAQ

How does binary to decimal conversion work?

Each binary digit represents a power of 2. Example: 1011₂ = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 11. Hexadecimal uses powers of 16 with digits 0–9 and A–F.

What is hexadecimal used for?

Hexadecimal (base 16) is used in programming for memory addresses, web color codes (like #2563EB), and Unicode code points. It is a compact way to represent binary data.

How do I convert decimal to binary?

Repeatedly divide the decimal number by 2 and collect the remainders from last to first. For example, 11 ÷ 2 gives remainders 1,1,0,1 (read backwards) = 1011 in binary.

Why do computers use binary?

Computers use binary because electronic circuits have two natural states: on (1) and off (0). This makes binary the simplest and most reliable way to store and process data electronically.

What is octal used for?

Octal (base 8) is mainly used in Unix-like systems for file permissions (chmod commands like chmod 755). It was more common in early computing but has largely been replaced by hexadecimal.