Binary / Decimal / Hex Converter

Convert binary, decimal and hexadecimal numbers instantly. Perfect for programming, networking, and computer science.

Result will appear here.
Awaiting input.

Conversion Formulas

Binary → Decimal: sum(bit × 2ⁿ)
Decimal → Binary: repeated division by 2
Decimal → Hex: repeated division by 16
    

What is Binary?

Binary is a base-2 number system using only 0 and 1. It is the fundamental language of computers, CPUs, memory, and digital electronics.

What is Decimal?

Decimal is the base-10 system used in everyday life. It uses digits from 0 to 9 and is the most familiar numbering system to humans.

What is Hexadecimal?

Hexadecimal (Hex) is a base-16 system using digits 0–9 and letters A–F. It is widely used in programming, memory addressing, colors, and debugging.

How to Convert Between Binary, Decimal, and Hex

  1. Choose the source number system.
  2. Apply base conversion rules.
  3. Verify digits match the allowed symbols.

Example: Binary 101010 = Decimal 42 = Hex 2A

Binary, Decimal, and Hexadecimal Conversion Table (0–64)

This table shows how numbers from 0 to 64 are represented in decimal (base-10), binary (base-2), and hexadecimal (base-16). These values are frequently used in programming, networking, memory allocation, and digital electronics.

Decimal Binary Hex
000
111
2102
3113
41004
51015
61106
71117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F
161000010
201010014
241100018
3210000020
4010100028
4811000030
5611100038
64100000040

Why Binary, Decimal, and Hexadecimal Matter

Computers internally operate using binary numbers, while humans naturally work with decimal numbers. Hexadecimal acts as a bridge between the two, offering a compact and readable way to represent long binary sequences.

For example, a single hexadecimal digit represents exactly 4 binary bits, making it ideal for debugging memory, CPU registers, and low-level programming.

Frequently Asked Questions

Why do programmers use hexadecimal?

Because hex is compact and maps cleanly to binary.

Can binary represent all numbers?

Yes, any number can be represented in binary.

Is hex faster than decimal?

No, it is just a representation, not a performance change.

Real-Life Examples

Binary vs Decimal vs Hexadecimal

Each number system serves a specific purpose:

Understanding how to convert between these systems is essential for software developers, engineers, students, and IT professionals.

Download Binary–Decimal–Hex Table (CSV)

Related Converters