Hexadecimal Digits (Hex-Codes) Cheatsheet

Table 1 maps between hexadecimal digits and binary bit patterns (nibbles).

Table 2 maps between hexadecimal and decimal representations of bytes (0 to 255).

Table 3 maps between hexadecimal bytes and ascii characters.

Table 1: Nibble Lookup
decimal hex binary
0 0 0 0 0 0
1 1 0 0 0 1
2 2 0 0 1 0
3 3 0 0 1 1
4 4 0 1 0 0
5 5 0 1 0 1
6 6 0 1 1 0
7 7 0 1 1 1
8 8 1 0 0 0
9 9 1 0 0 1
10 A 1 0 1 0
11 B 1 0 1 1
12 C 1 1 0 0
13 D 1 1 0 1
14 E 1 1 1 0
15 F 1 1 1 1

Table 2: Byte Lookup
0- 1- 2- 3- 4- 5- 6- 7- 8- 9- A- B- C- D- E- F-
0 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241
2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242
3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243
4 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244
5 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245
6 6 22 38 54 70 86 102 118 134 150 166 182 198 214 230 246
7 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247
8 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248
9 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249
A 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250
B 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251
C 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252
D 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253
E 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254
F 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255

Table 3: Ascii Lookup (extended ascii)
0- 1- 2- 3- 4- 5- 6- 7- 8- 9- A- B- C- D- E- F-
0 NUL DLE SP 0 @ P ` p    ° À Ð à ð
1 SOH DC1 ! 1 A Q a q  ¡ ± Á Ñ á ñ
2 STX DC2 " 2 B R b r ¢ ² Â Ò â ò
3 ETX DC3 # 3 C S c s ƒ £ ³ Ã Ó ã ó
4 EOT DC4 $ 4 D T d t ¤ ´ Ä Ô ä ô
5 ENQ NAK % 5 E U e u ¥ µ Å Õ å õ
6 ACK SYN & 6 F V f v ¦ Æ Ö æ ö
7 BEL ETB ' 7 G W g w § · Ç × ç ÷
8 BS CAN ( 8 H X h x ˆ ˜ ¨ ¸ È Ø è ø
9 TAB EM ) 9 I Y i y © ¹ É Ù é ù
A LF SUB * : J Z j z Š š ª º Ê Ú ê ú
B VT ESC + ; K [ k { « » Ë Û ë û
C FF FS , < L \ l | Œ œ ¬ ¼ Ì Ü ì ü
D CR GS - = M ] m }   ­ ½ Í Ý í ý
E SO RS . > N ^ n ~ Ž ž ® ¾ Î Þ î þ
F SI US / ? O _ o   Ÿ ¯ ¿ Ï ß ï ÿ

Questions, comments ==> info (at) (this domain)

Other quick-reference sites:   db9-pinout.com | resistor-color-codes.com | operator-precedence.com