Hexadecimal Table & Visualizer

The ultimate reference for Base-16. Convert Hex to Decimal, understand Hex Color Codes, and visualize Nibbles with our interactive tool.

Hex Visualizer

See how 4 bits combine to make 1 Hex Digit (Nibble).

Decimal
0
Binary
0
Nibble 10
Nibble 00
0x

Edit Hex code directly to update bits.

Hex Reference Chart

Standard 0-255 lookup table with Colors.

HEX00
0
00000000
HEX01
1
00000001
HEX02
2
00000010
HEX03
3
00000011
HEX04
4
00000100
HEX05
5
00000101
HEX06
6
00000110
HEX07
7
00000111
HEX08
8
00001000
HEX09
9
00001001
HEX0A
10
00001010
HEX0B
11
00001011
HEX0C
12
00001100
HEX0D
13
00001101
HEX0E
14
00001110
HEX0F
15
00001111
HEX10
16
00010000
HEX11
17
00010001
HEX12
18
00010010
HEX13
19
00010011
HEX14
20
00010100
HEX15
21
00010101
HEX16
22
00010110
HEX17
23
00010111
HEX18
24
00011000
HEX19
25
00011001
HEX1A
26
00011010
HEX1B
27
00011011
HEX1C
28
00011100
HEX1D
29
00011101
HEX1E
30
00011110
HEX1F
31
00011111
HEX20
32
00100000
HEX21
33
00100001
HEX22
34
00100010
HEX23
35
00100011
HEX24
36
00100100
HEX25
37
00100101
HEX26
38
00100110
HEX27
39
00100111
HEX28
40
00101000
HEX29
41
00101001
HEX2A
42
00101010
HEX2B
43
00101011
HEX2C
44
00101100
HEX2D
45
00101101
HEX2E
46
00101110
HEX2F
47
00101111
HEX30
48
00110000
HEX31
49
00110001
HEX32
50
00110010
HEX33
51
00110011
HEX34
52
00110100
HEX35
53
00110101
HEX36
54
00110110
HEX37
55
00110111
HEX38
56
00111000
HEX39
57
00111001
HEX3A
58
00111010
HEX3B
59
00111011
HEX3C
60
00111100
HEX3D
61
00111101
HEX3E
62
00111110
HEX3F
63
00111111
HEX40
64
01000000
HEX41
65
01000001
HEX42
66
01000010
HEX43
67
01000011
HEX44
68
01000100
HEX45
69
01000101
HEX46
70
01000110
HEX47
71
01000111
HEX48
72
01001000
HEX49
73
01001001
HEX4A
74
01001010
HEX4B
75
01001011
HEX4C
76
01001100
HEX4D
77
01001101
HEX4E
78
01001110
HEX4F
79
01001111
HEX50
80
01010000
HEX51
81
01010001
HEX52
82
01010010
HEX53
83
01010011
HEX54
84
01010100
HEX55
85
01010101
HEX56
86
01010110
HEX57
87
01010111
HEX58
88
01011000
HEX59
89
01011001
HEX5A
90
01011010
HEX5B
91
01011011
HEX5C
92
01011100
HEX5D
93
01011101
HEX5E
94
01011110
HEX5F
95
01011111
HEX60
96
01100000
HEX61
97
01100001
HEX62
98
01100010
HEX63
99
01100011
HEX64
100
01100100
HEX65
101
01100101
HEX66
102
01100110
HEX67
103
01100111
HEX68
104
01101000
HEX69
105
01101001
HEX6A
106
01101010
HEX6B
107
01101011
HEX6C
108
01101100
HEX6D
109
01101101
HEX6E
110
01101110
HEX6F
111
01101111
HEX70
112
01110000
HEX71
113
01110001
HEX72
114
01110010
HEX73
115
01110011
HEX74
116
01110100
HEX75
117
01110101
HEX76
118
01110110
HEX77
119
01110111
HEX78
120
01111000
HEX79
121
01111001
HEX7A
122
01111010
HEX7B
123
01111011
HEX7C
124
01111100
HEX7D
125
01111101
HEX7E
126
01111110
HEX7F
127
01111111
HEX80
128
10000000
HEX81
129
10000001
HEX82
130
10000010
HEX83
131
10000011
HEX84
132
10000100
HEX85
133
10000101
HEX86
134
10000110
HEX87
135
10000111
HEX88
136
10001000
HEX89
137
10001001
HEX8A
138
10001010
HEX8B
139
10001011
HEX8C
140
10001100
HEX8D
141
10001101
HEX8E
142
10001110
HEX8F
143
10001111
HEX90
144
10010000
HEX91
145
10010001
HEX92
146
10010010
HEX93
147
10010011
HEX94
148
10010100
HEX95
149
10010101
HEX96
150
10010110
HEX97
151
10010111
HEX98
152
10011000
HEX99
153
10011001
HEX9A
154
10011010
HEX9B
155
10011011
HEX9C
156
10011100
HEX9D
157
10011101
HEX9E
158
10011110
HEX9F
159
10011111
HEXA0
160
10100000
HEXA1
161
10100001
HEXA2
162
10100010
HEXA3
163
10100011
HEXA4
164
10100100
HEXA5
165
10100101
HEXA6
166
10100110
HEXA7
167
10100111
HEXA8
168
10101000
HEXA9
169
10101001
HEXAA
170
10101010
HEXAB
171
10101011
HEXAC
172
10101100
HEXAD
173
10101101
HEXAE
174
10101110
HEXAF
175
10101111
HEXB0
176
10110000
HEXB1
177
10110001
HEXB2
178
10110010
HEXB3
179
10110011
HEXB4
180
10110100
HEXB5
181
10110101
HEXB6
182
10110110
HEXB7
183
10110111
HEXB8
184
10111000
HEXB9
185
10111001
HEXBA
186
10111010
HEXBB
187
10111011
HEXBC
188
10111100
HEXBD
189
10111101
HEXBE
190
10111110
HEXBF
191
10111111
HEXC0
192
11000000
HEXC1
193
11000001
HEXC2
194
11000010
HEXC3
195
11000011
HEXC4
196
11000100
HEXC5
197
11000101
HEXC6
198
11000110
HEXC7
199
11000111
HEXC8
200
11001000
HEXC9
201
11001001
HEXCA
202
11001010
HEXCB
203
11001011
HEXCC
204
11001100
HEXCD
205
11001101
HEXCE
206
11001110
HEXCF
207
11001111
HEXD0
208
11010000
HEXD1
209
11010001
HEXD2
210
11010010
HEXD3
211
11010011
HEXD4
212
11010100
HEXD5
213
11010101
HEXD6
214
11010110
HEXD7
215
11010111
HEXD8
216
11011000
HEXD9
217
11011001
HEXDA
218
11011010
HEXDB
219
11011011
HEXDC
220
11011100
HEXDD
221
11011101
HEXDE
222
11011110
HEXDF
223
11011111
HEXE0
224
11100000
HEXE1
225
11100001
HEXE2
226
11100010
HEXE3
227
11100011
HEXE4
228
11100100
HEXE5
229
11100101
HEXE6
230
11100110
HEXE7
231
11100111
HEXE8
232
11101000
HEXE9
233
11101001
HEXEA
234
11101010
HEXEB
235
11101011
HEXEC
236
11101100
HEXED
237
11101101
HEXEE
238
11101110
HEXEF
239
11101111
HEXF0
240
11110000
HEXF1
241
11110001
HEXF2
242
11110010
HEXF3
243
11110011
HEXF4
244
11110100
HEXF5
245
11110101
HEXF6
246
11110110
HEXF7
247
11110111
HEXF8
248
11111000
HEXF9
249
11111001
HEXFA
250
11111010
HEXFB
251
11111011
HEXFC
252
11111100
HEXFD
253
11111101
HEXFE
254
11111110
HEXFF
255
11111111

Why Do Computers Love Hex?

If computers only understand Binary (0 and 1), why do programmers constantly use Hexadecimal (0-9, A-F)?

The answer is readability. Converting Binary to Decimal is hard math (e.g., 10101010 = 170). But converting Binary to Hex is just grouping. You take 4 bits, and you get 1 Hex digit.

1111 0000 1010 0101 (Binary) becomes F0A5 (Hex) instantly. No calculator required. This makes Hex the perfect shorthand for humans to read the massive binary streams that run our software.

Secret Code of Colors

Every time you see a color code like #FF5733, you are reading Hexadecimal.

  • #: Means "This is Hex".
  • FF (Red): Intensity 255/255.
  • 57 (Green): Intensity 87/255.
  • 33 (Blue): Intensity 51/255.
This specific combination of Red, Green, and Blue intensities creates this shade of Orange-Red.

The "Nibble" Trick

A "Byte" is 8 bits. A "Nibble" is 4 bits. Hex works perfectly because 1 Hex Digit = 1 Nibble.

Binary
1111
Hex
F
Binary
1010
Hex
A

How to Count in Hex (0-F)

The hardest part of Hex is getting used to letters being numbers. Here is the definitive conversion chart for the single digits.

0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
A
11
B
12
C
13
D
14
E
15
F

Note how 10 becomes A, and 15 becomes F.

Memory Addresses Explained

When a program crashes, you might see an error at 0x00400000. This is the Memory Address. It describes the physical location in your RAM where the data was stored. Using Hex allows operating systems like Windows and Linux to organize billions of memory cells into a map that engineers can actually read.


Frequently Asked Questions

What is Hexadecimal (Base-16)?

Hexadecimal is a numeral system with a base of 16. It uses sixteen distinct symbols: the numbers 0-9 to represent values zero to nine, and the letters A-F to represent values ten to fifteen. It is widely used in computing because it is a more human-friendly way to represent binary code.

Why do we use letters A-F in Hex?

In our standard decimal system, we only have single digits for 0-9. To represent values like 10, 11, 12, 13, 14, and 15 as single digits, we need new symbols. Computer scientists chose the first six letters of the alphabet: A=10, B=11, C=12, D=13, E=14, F=15.

How does Hex relate to Binary?

This is the most important relationship in Computer Science. One Hexadecimal Digit represents exactly 4 bits of Binary (a "Nibble"). For example, Hex "F" is Binary "1111". Hex "A" is "1010". This perfect 1:4 mapping makes Hex the standard shorthand for writing long binary strings.

How are Hex Color Codes used in web design?

Web colors use a 6-digit Hex code (e.g., #FF5733). This is actually three pairs of Hex digits. The first pair (FF) is the amount of Red, the second (57) is Green, and the third (33) is Blue. "FF" means 255 (the maximum intensity), and "00" mean 0 (no intensity).

What is a "Nibble"?

A Nibble is a group of 4 bits (half a Byte). Since a single Hex digit represents values from 0-15 (which takes exactly 4 bits), one Hex digit equals one Nibble. Two Hex digits make one full Byte (8 bits).

How do I convert Hex to Decimal?

You use powers of 16. In the number "2B", the "2" is in the 16s place, and "B" (11) is in the 1s place. So, 2 * 16 + 11 * 1 = 32 + 11 = 43.

Why do memory addresses look like 0x7FFF?

Memory addresses in modern computers are extremely large numbers (often 32-bit or 64-bit). Writing them in decimal (e.g., 2,147,483,647) is confusing and hard to align. Writing them in Hex (0x7FFFFFFF) is compact, fixed-width, and clearly shows the byte usage.

What does the "0x" prefix mean?

The "0x" prefix is a convention in programming (C, Java, Python, JavaScript) to tell the compiler "The following number is Hexadecimal, not Decimal". Without it, the computer might read "10" as "ten" instead of "sixteen".

What comes after Hex "F"?

After F (15), the single digit resets to 0 and we carry over a 1 to the next place. So, after F comes 10 (which is 16 in decimal). After 19 comes 1A. After FF comes 100.

Can negative numbers be written in Hex?

Yes, typically using Two's Complement representation just like binary. In a 32-bit signed integer system, the number -1 is represented as 0xFFFFFFFF.

Is Hexadecimal used in IPv6?

Yes! While the old IPv4 used decimal (192.168.1.1), the new IPv6 addresses are so huge (128-bit) that they must use Hexadecimal to be readable. Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334.

What is the largest value 2 Hex digits can hold?

Two Hex digits (like FF) can hold a maximum value of 255. This corresponds exactly to 8 bits, or exactly one Byte. This is why you see values capped at 255 in color pickers and IP addresses.

How do computer errors use Hex?

Blue Screen of Death (BSOD) or segmentation faults often show an error code like "0xC0000005". This code points to a specific memory address or exception type defined by the operating system kernel.

Is Hexadecimal case-sensitive?

No. In standard computing, 0xFF is exactly the same as 0xff. However, some programmers prefer uppercase for readability, while others prefer lowercase.

Are there other bases like Base-32 or Base-64?

Yes. Base-64 is very common for encoding data to be sent over the web (like email or image data). It uses A-Z, a-z, 0-9, and two symbols like + and /. Hex is Base-16.