Ad Slot — 728×90 Header Banner

Binary / Hex / Decimal Converter

A number base converter converts between binary, octal, decimal, and hexadecimal number systems.

Convert numbers between binary, octal, decimal, and hexadecimal in real time as you type.

A number base converter translates numbers between different positional numeral systems: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Each system uses a different set of digits — binary uses 0-1, octal uses 0-7, decimal uses 0-9, and hexadecimal uses 0-9 plus A-F. For example, the decimal number 255 equals 11111111 in binary, 377 in octal, and FF in hexadecimal.
Base 2 (0-1) | Base 8 (0-7) | Base 10 (0-9) | Base 16 (0-9, A-F)

Enter a Number

All Representations

Binary (Base 2)
—
Octal (Base 8)
—
Decimal (Base 10)
—
Hexadecimal (Base 16)
—

Common Values Reference

DecimalBinaryOctalHex
0000000
1000111
7011177
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
12711111111777F
1281000000020080
25511111111377FF
1024100000000002000400
40951111111111117777FFF
Ad Slot — 300×250 Sidebar

Frequently Asked Questions

What is a number base?

A number base (or radix) is the number of unique digits used to represent numbers in a positional numeral system. Binary (base 2) uses 0-1, octal (base 8) uses 0-7, decimal (base 10) uses 0-9, and hexadecimal (base 16) uses 0-9 and A-F.

How do you convert binary to decimal?

Each binary digit represents a power of 2. For example, 1101 in binary = 1×8 + 1×4 + 0×2 + 1×1 = 13 in decimal. Start from the rightmost bit (2^0) and multiply each bit by its corresponding power of 2.

Why is hexadecimal used in computing?

Hexadecimal (base 16) is used because it provides a compact representation of binary data. Each hex digit represents exactly 4 bits, making it easy to convert between binary and hex. It is commonly used for memory addresses, color codes (#FF0000), and MAC addresses.

How do you convert decimal to binary?

Repeatedly divide the decimal number by 2 and record the remainders. Read the remainders from bottom to top. For example, 13 ÷ 2 = 6 remainder 1, 6 ÷ 2 = 3 remainder 0, 3 ÷ 2 = 1 remainder 1, 1 ÷ 2 = 0 remainder 1. Reading bottom-up: 1101.

What is an octal number?

Octal is a base-8 number system using digits 0-7. Each octal digit represents exactly 3 binary digits. Octal was historically used in computing (e.g., Unix file permissions use octal: 755 = rwxr-xr-x).