Free · No account · Works in your browser

Number Base Converter

Binary ↔ Decimal ↔ Hex ↔ Octal — with bit-level breakdown

Examples:

Decimal (Base 10)

192

Hexadecimal (Base 16)

0xC0

Binary (Base 2)

11000000

Octal (Base 8)

0o300

Binary breakdown — grouped by nibble (4 bits)

1100
C
0000
0

Each group of 4 binary digits (nibble) = 1 hex digit (0–F)

Quick reference: 0–15

DecHexBinaryOct
0000000
1100011
2200102
3300113
4401004
5501015
6601106
7701117
88100010
99100111
10A101012
11B101113
12C110014
13D110115
14E111016
15F111117

Frequently asked questions

Why is hexadecimal used in networking and security?

Hexadecimal (base 16) is compact — each hex digit represents exactly 4 binary bits (a nibble). A byte (8 bits) maps to exactly 2 hex digits. This makes hex ideal for MAC addresses (e.g., AA:BB:CC:DD:EE:FF), IPv6 addresses, cryptographic hashes, and memory addresses.

How do you convert binary to decimal?

Each binary digit represents a power of 2 (right to left: 2⁰=1, 2¹=2, 2²=4, 2³=8, ...). Multiply each bit by its positional value and add the results. For 11000000: (1×128) + (1×64) = 192.

Where does the A+ exam test number bases?

The A+ exam tests binary-to-decimal conversion for understanding IP addresses and subnet masks. It also tests hexadecimal for understanding MAC addresses, RAM addressing, and error codes in Windows Event Viewer.

What is a nibble?

A nibble is 4 bits — half a byte. One nibble maps exactly to one hexadecimal digit (0–F). A byte (8 bits) is two nibbles, represented as two hex digits (e.g., 11001010 in binary = CA in hex).