BigBigTools

功能建议

欢迎告诉我们您的建议,帮助我们改进工具。 支持粘贴图片或选择上传,最多5张,每张不超过1MB(PNG、JPEG、WebP)。

English简体中文日本語한국어FrançaisDeutschEspañolPortuguês
BigBigTools

Binary to Hex Converter

2
16
10

Binary

Binary number is a number expressed in the base 2 numeral system. Binary number's digits have 2 symbols: zero (0) and one (1). Each digit of a binary number counts a power of 2.

Binary number example:
11012 = 1×23+1×22+0×21+1×20 = 1310

Hexadecimal

Hexadecimal number is a number expressed in the base 16 numeral system. Hexadecimal number's digits have 16 symbols: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Each digit of a hexadecimal number counts a power of 16.

Hexadecimal number example:
62C16 = 6×162+2×161+12×160 = 158010

How to convert binary to hex

Convert every 4 binary digits (start from bit 0) to 1 hex digit, with this table:

Binary Hex
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F

Example

Convert binary 11011002 to hex:

Convert every 4 binary bits (from bit0) to hex digit:

11011002 = 110 1100 = 6 C = 6C16



Additional explanations and examples

How to convert binary to hex

How to convert from binary number to hexadecimal number.

How to convert base 2 to base 16.

How to convert from hex to binary

Convert each 4 binary digits to hex digit  according to this table:

Binary Hex
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F

Example #1

Convert (01001110)2 to hex:

(0100)2 = (4)16

(1110)2 = (E)16

So

(01001110)2 = (4E)16

Example #2

Convert (0100101000000001)2 to hex:

(0100)2 = (4)16

(1010)2 = (A)16

(0000)2 = (0)16

(0001)2 = (1)16

So

(0100101000000001)2 = (4A01)16



About this tool

Binary number is a number expressed in the base 2 numeral system. Binary number's digits have 2 symbols: zero (0) and one (1). Each digit of a binary number counts a power of 2. Binary number example: 1101 2 = 1×2 3 +1×2 2 +0×2 1 +1×2 0 = 13 10 Hexadecimal number is a number expressed in the base 16 numeral system. Hexadecimal number's digits have 16 symbols: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Each digit of a hexadecimal number counts a power of 16.

Chat with AI about this tool

Paste the prompt into Gemini. Only the tool name and public page URL are included.

View the prompt