Type a number in any box:

Result: (press enter to show)

Decimal:
Binary:

## Binary Digit Explained

Binary digit system is a notation to repsent numbers.

In decimal system, we use 10 symbols, 0 to 9. When a number is larger than 9, we start over by placing a new digit on the left. For example, 10 is 1 on left and 0 on right.

A binary number notation uses just 2 symbols.

A binary digit is either 1 or 0. For example, `1001` is four binary digits.

A binary digit is also called bit. So, `1001` is 4 bits.

Here's a table showing decimal and binary:

decimalbinary
00
11
210
311
4100

Binary digits is used in computers, because electronics deal with on/off signals, most easily represented by binary digits.

### Possible Size in Binary Number

If a binary number has n digits, it has 2^n possible values.

bitstotal values
12
24
38
416

In hexadecimal notation, we represent numbers using 16 symbols.

Each digit is any 0 to 9 and A to F (sometimes lowercase).

Here's examples:

000
111
2102
3113
41004
51015
61106
71117
810008
910019
101010a
111011b
121100c
131101d
141110e
151111f
161000010
171000111
181001012
191001113
201010014
211010115
221011016
231011117
241100018
251100119
26110101a
27110111b
28111001c
29111011d
30111101e
31111111f

Hexadecimal is used often in computing, because each hexadecimal digit is equivalent to 4 binary digits, so is shorter and more readable.

• 1 hexadecimal digit has the same number of possible values as 4 bits.
• 2 hexadecimal digit has the same number of possible values as 8 bits.
• 3 hexadecimal digit has the same number of possible values as 12 bits.
• 4 hexadecimal digit has the same number of possible values as 16 bits.

So, 4 bits can be written as 1 hexadecimal. 8 bits can be written as 2 hexadecimal, etc.

### Possible Size in Hex Number

If a Hex number has n digits, it has 16^n possible values.

number of digitstotal values
116
2256
34096
465536