Convert from Binary (Base 2) to Hexadecimal (Base 16)

Perform the conversion of numbers between different numerical systems.

Binary (Base 2) = Hexadecimal (Base 16)

Convert from Hexadecimal (Base 16) to Binary (Base 2)

Information about conversion units:

About Binary (Base 2)

The binary system is a numbering technique that uses only two digits, 0 and 1. It is commonly used in computing. This method relies solely on two symbols, the one and the zero. Any number can be expressed in both the decimal and binary systems.

About Hexadecimal (Base 16)

The hexadecimal system reduces an eight-bit number to just two hexadecimal digits. This reduces the confusion that can arise from reading long strings of binary numbers and the amount of space required to write binary numbers.

Binary (Base 2) vs Hexadecimal (Base 16)

Binary (Base 2)Hexadecimal (Base 16)
00
11
102
113
1004
1015
1106
1117
10008
10019
1010a
1011b
1100c
1101d
1110e
1111f

¿How to convert from Binary (Base 2) to Hexadecimal (Base 16)?

Note: To convert a number in binary (base 2) to any other base, we must first convert the binary value to decimal (base 10). Follow these steps:

  1. Identify each digit of the binary number.
  2. Calculate the position of each digit. Start from the rightmost digit, which will have a position of 0. Each digit to the left will have an incremental position of 1 (1, 2, 3, etc.).
  3. Calculate the decimal value of each digit by multiplying it by the base (2) raised to the position of the digit. For example: digit * 2^position.
  4. Add up the values obtained in the previous step to get the equivalent decimal number.

Applying these steps to the binary number 10011111:

Let's see how to convert the binary number 10011111 to decimal.

  1. 1, 0, 0, 1, 1, 1, 1, and 1 are the digits.
  2. Starting from the rightmost, the positions are 0, 1, 2, 3, 4, 5, 6, and 7.
  3. 1 * 2^7 = 128; 0 * 2^6 = 0; 0 * 2^5 = 0; 1 * 2^4 = 16; 1 * 2^3 = 8; 1 * 2^2 = 4; 1 * 2^1 = 2; 1 * 2^0 = 1;
  4. 128 + 0 + 0 + 16 + 8 + 4 + 2 + 1 = 159 decimal.

Therefore, 10011111 binary = 159 decimal.

Steps to convert a number from base 2 (Binary) to base 10 (Decimal).

To convert a decimal number (base 10) to hexadecimal (base 16), follow these steps:

  1. Divide the decimal number by 16.
  2. Take the quotient and divide it by 16 again.
  3. Repeat this process until the quotient is less than 16.
  4. Assign a letter to each remainder if the remainder is greater than 9.
  5. Numbers 10, 11, 12, 13, 14, and 15 are represented by the letters A, B, C, D, E, and F, respectively.
  6. Write down the remainders obtained in reverse order to how they were calculated.

Applying these steps to the decimal number 159:

  1. 159 / 16 = 9 with a remainder of 15.
  2. 9 / 16 = 0 with a remainder of 9.
  3. 15 is represented as F.
  4. 9 is represented as 9.
The hexadecimal number equivalent to decimal 159 is 9F.The process of converting a number expressed in decimal to its equivalent in hexadecimal.

Conversion table of Binary (Base 2) to Hexadecimal (Base 16)

Binary (Base 2) Hexadecimal (Base 16)
11
102
113
1004
1015
1106
1117
10008
10019
1010a
1011b
1100c
1101d
1110e
1111f
1000010
1000111
1001012
1001113
1010014
1010115
1011016
1011117
1100018
1100119
110101a
110111b
111001c
111011d
111101e
111111f
10000020
10000121
10001022
10001123
10010024
10010125
10011026
10011127
10100028
10100129
1010102a
1010112b
1011002c
1011012d
1011102e
1011112f
11000030
11000131
11001032
11001133
11010034
11010135
11011036
11011137
11100038
11100139
1110103a
1110113b
1111003c
1111013d
1111103e
1111113f
100000040
100000141
100001042
100001143
100010044
100010145
100011046
100011147
100100048
100100149
10010104a
10010114b
10011004c
10011014d
10011104e
10011114f
101000050
101000151
101001052
101001153
101010054
101010155
101011056
101011157
101100058
101100159
10110105a
10110115b
10111005c
10111015d
10111105e
10111115f
110000060
110000161
110001062
110001163
110010064
110010165
110011066
110011167
110100068
110100169
11010106a
11010116b
11011006c
11011016d
11011106e
11011116f
111000070
111000171
111001072
111001173
111010074
111010175
111011076
111011177
111100078
111100179
11110107a
11110117b
11111007c
11111017d
11111107e
11111117f
1000000080
1000000181
1000001082
1000001183
1000010084
1000010185
1000011086
1000011187
1000100088
1000100189
100010108a
100010118b
100011008c
100011018d
100011108e
100011118f
1001000090
1001000191
1001001092
1001001193
1001010094
1001010195
1001011096
1001011197
1001100098
1001100199
100110109a
100110119b
100111009c
100111019d
100111109e
100111119f
10100000a0
10100001a1
10100010a2
10100011a3
10100100a4
10100101a5
10100110a6
10100111a7
10101000a8
10101001a9
10101010aa
10101011ab
10101100ac
10101101ad
10101110ae
10101111af
10110000b0
10110001b1
10110010b2
10110011b3
10110100b4
10110101b5
10110110b6
10110111b7
10111000b8
10111001b9
10111010ba
10111011bb
10111100bc
10111101bd
10111110be
10111111bf
11000000c0
11000001c1
11000010c2
11000011c3
11000100c4
11000101c5
11000110c6
11000111c7
11001000c8
11001001c9
11001010ca
11001011cb
11001100cc
11001101cd
11001110ce
11001111cf
11010000d0
11010001d1
11010010d2
11010011d3
11010100d4
11010101d5
11010110d6
11010111d7
11011000d8
11011001d9
11011010da
11011011db
11011100dc
11011101dd
11011110de
11011111df
11100000e0
11100001e1
11100010e2
11100011e3
11100100e4
11100101e5
11100110e6
11100111e7
11101000e8
11101001e9
11101010ea
11101011eb
11101100ec
11101101ed
11101110ee
11101111ef
11110000f0
11110001f1
11110010f2
11110011f3
11110100f4
11110101f5
11110110f6
11110111f7
11111000f8
11111001f9
11111010fa
11111011fb
11111100fc
11111101fd
11111110fe
11111111ff
100000000100
100000001101
100000010102
100000011103
100000100104
100000101105
100000110106
100000111107
100001000108
100001001109
10000101010a
10000101110b
10000110010c
10000110110d
10000111010e
10000111110f
100010000110
100010001111
100010010112
100010011113
100010100114
100010101115
100010110116
100010111117
100011000118
100011001119
10001101011a
10001101111b
10001110011c
10001110111d
10001111011e
10001111111f
100100000120
100100001121
100100010122
100100011123
100100100124
100100101125
100100110126
100100111127
100101000128
100101001129
10010101012a
10010101112b
10010110012c