Windows Alt keycodes

From Wikipedia, the free encyclopedia

Unicode
Encodings
UCS
Mapping
Bi-directional text
BOM
Han unification
Unicode and HTML
Unicode and e-mail
Unicode typefaces

In PCs running the Microsoft Windows operating system, additional characters to those available by the current keyboard layout may be typed using the Alt key in conjunction with the keyboard's numeric pad. This technique is generally called Alt code.

The number typed and its resulting character correspond to two different character sets.

  • Without leading zero. If the number typed is not preceded by a zero, the character resulting from this number corresponds to code page 850 (also known as Multilingual (Latin-1)), an Extended ASCII code page, allowing 8-bit = 256 different characters. Most notably, this code page allows the input of graphical characters instead of the C0 control codes (values 1 - 31), such as {☺, ☻, ♥, ♦, ♣, ♠}, pressing Alt + {1, 2, 3, 4, 5, 6}, respectively (these characters can only be seen in the Windows GUI, not in the cmd.exe. For a full list of these graphical characters, see code page 437, for the remaining characters, see code page 850).
  • With leading zero. If the number typed is preceded by a zero, the character resulting from this number corresponds to Windows-1252, another Extended ASCII code page, belonging to the group of Windows code pages, which are sometimes confusingly named Windows ANSI code pages. Most notably, this code page allows the input of C0 control codes, such as the {bell character, backspace, tab}, pressing Alt + {07, 08, 09}, respectively (for a full list of the typable characters, see Windows-1252).

As both character sets are based on the traditional 7-bit ASCII, the characters for values between 32 and 126 are the same. For values above 126, they differ mostly.

Due to the character sets's ASCII fundament and Microsoft's confusing policy to name its character sets after ANSI, many people tend to name Windows Alt keycodes either ASCII codes or ANSI codes.

For values above 255, both code pages start at 0 again. For every natural number n, Alt + {0} (n × 256 + cpnumber) leads to the same character as Alt + cpnumber. Typing Alt + 137 leads to ë, as does Alt + 393 (137 + 256). Typing Alt + 0137 leads to , as does Alt + 02560137 (137 + 256 * 10000).

Contents

[edit] More examples

Code pages 850 use code point 151 for the lowercase u with grave accent (ù). Typing Alt+151 on a Windows machine will produce this character. When preferring Windows-1252 instead, one has to type Alt+0249 to get the same character, as 249 is character ù 's position in Windows-1252.

[edit] Table of characters (Alt Keycodes)

The pages linked from this article provide the list of characters indexed using hexadecimal numbers. In actual use, decimal numbers are required, as listed here.

Alt Keycodes Chart
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
  Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
32 space space 20   33  !  ! 21 !
34 " " 22 " 35 # # 23 #
36 $ $ 24 $ 37 % % 25 %
38 & & 26 & 39 ' single quote ' single quote 27 '
40 ( ( 28 ( 41 ) ) 29 )
42 * * 2A * 43 + + 2B +
44 , , 2C , 45 - - 2D -
46 . . 2E . 47 / / 2F /
48 0 0 30 0 49 1 1 31 1
50 2 2 32 2 51 3 3 33 3
52 4 4 34 4 53 5 5 35 5
54 6 6 36 6 55 7 7 37 7
56 8 8 38 8 57 9 9 39 9
58  :  : 3A : 59  ;  ; 3B &#59;
60 < < 3C &#60; 61 = = 3D &#61;
62 > > 3E &#62; 63  ?  ? 3F &#63;
64 @ @ 40 &#64; 65 A A 41 &#65;
66 B B 42 &#66; 67 C C 43 &#67;
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
68 D D 44 &#68; 69 E E 45 &#69;
70 F F 46 &#70; 71 G G 47 &#71;
72 H H 48 &#72; 73 I I 49 &#73;
74 J J 4A &#74; 75 K K 4B &#75;
76 L L 4C &#76; 77 M M 4D &#77;
78 N N 4E &#78; 79 O O 4F &#79;
80 P P 50 &#80; 81 Q Q 51 &#81;
82 R R 52 &#82; 83 S S 53 &#83;
84 T T 54 &#84; 85 U U 55 &#85;
86 V V 56 &#86; 87 W W 57 &#87;
88 X X 58 &#88; 89 Y Y 59 &#89;
90 Z Z 5A &#90; 91 [ [ 5B &#91;
92 \ \ 5C &#92; 93 ] ] 5D &#93;
94 ^ ^ 5E &#94; 95 _ _ 5F &#95;
96 ` ` 60 &#96; 97 a a 61 &#97;
98 b b 62 &#98; 99 c c 63 &#99;
100 d d 64 &#100; 101 e e 65 &#101;
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
102 f f 66 &#102; 103 g g 67 &#103;
104 h h 68 &#104; 105 i i 69 &#105;
106 j j 6A &#106; 107 k k 6B &
108 l l 6C &#108; 109 m m 6D &#109;
110 n n 6E &#110; 111 o o 6F &#111;
112 p p 70 &#112; 113 q q 71 &#113;
114 r r 72 &#114; 115 s s 73 &#115;
116 t t 74 &#116; 117 u u 75 &#117;
118 v v 76 &#118; 119 w w 77 &#119;
120 x x 78 &#120; 121 y y 79 &#121;
122 z z 7A &#122; 123 { { 7B &#123;
124 | | 7C &#124; 125 } } 7D &#125;
126 ~ ~ 7E &#126; 127 nothing 7F N.D.
128 Ç 80 N.D. 129 ü  81 N.D.
130 é 82 N.D. 131 â ƒ 83 N.D.
132 ä 84 N.D. 133 à 85 N.D.
134 å 86 N.D. 135 ç 87 N.D.
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
136 ê ˆ 88 N.D. 137 ë 89 N.D.
138 è Š 8A N.D. 139 ï 8B N.D.
140 î Œ 8C N.D. 141 ì  8D N.D.
142 Ä Ž 8E N.D. 143 Å Ž 8F N.D.
144 É  90 N.D. 145 æ 91 N.D.
146 Æ 92 N.D. 147 ô 93 N.D.
148 ö 94 N.D. 149 ò 95 N.D.
150 û 96 N.D. 151 ù 97 N.D.
152 ÿ ˜ 98 N.D. 153 Ö 99 N.D.
154 Ü š 9A N.D. 155 ø 9B N.D.
156 £ œ 9C N.D. 157 Ø  9D N.D.
158 × (or ₧) ž 9E N.D. 159 ƒ Ÿ 9F N.D.
160 á non-breaking space A0 &#160; 161 í ¡ A1 &#161;
162 ó ¢ A2 &#162; 163 ú £ A3 &#163;
164 ñ ¤ A4 &#164; 165 Ñ ¥ A5 &#165;
166 ª ¦ A6 &#166; 167 º § A7 &#167;
168 ¿ ¨ A8 &#168; 169 © A9 &#169;
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
170 ¬ ª AA &#170; 171 ½ «  AB &#171;
172 ¼ ¬ AC &#172; 173 ¡ ­­invisible dash AD &#173;
174 «  ® AE &#174; 175  » ¯ AF &#175;
176 ° B0 &#176; 177 ± B1 &#177;
178 ² B2 &#178; 179 ³ B3 &#179;
180 ´ B4 &#180; 181 Á µ B5 &#181;
182 Â B6 &#182; 183 · B7 &#183;
184 ¸ B8 &#184; 185 ¹ B9 &#185;
186 º BA &#186; 187  » BB &#187;
188 ¼ BC &#188; 189 ¢ ½ BD &#189;
190 ¥ ¾ BE &#190; 191 ¿ BF &#191;
192 À C0 &#192; 193 Á C1 &#193;
194 Â C2 &#194; 195 Ã C3 &#195;
196 Ä C4 &#196; 197 Å C5 &#197;
198 ã Æ C6 &#198; 199 Ã Ç C7 &#199;
200 È C8 &#200; 201 É C9 &#201;
202 Ê CA &#202; 203 Ë CB &#203;
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
204 Ì CC &#204; 205 Í CD &#205;
206 Î CE &#206; 207 ¤ Ï CF &#207;
208 ð Ð D0 &#208; 209 Ð Ñ D1 &#209;
210 Ê Ò D2 &#210; 211 Ë Ó D3 &#211;
212 È Ô D4 &#212; 213 I Õ D5 &#213;
214 Í Ö D6 &#214; 215 Î × D7 &#215;
216 Ï Ø D8 &#216; 217 Ù D9 &#217;
218 Ú DA &#218; 219 Û DB &#219;
220 Ü DC &#220; 221 ¦ Ý DD &#220;
222 Ì Þ DE &#222; 223 ß DF &#223;
224 Ó à E0 &#224; 225 ß á E1 &#225;
226 Ô â E2 &#226; 227 Ò ã E3 &#227;
228 õ ä E4 &#228; 229 å E5 &#229;
230 µ æ E6 &#230; 231 þ ç E7 &#231;
232 Þ è E8 &#232; 233 Ú é E9 &#233;
234 Û ê EA &#234; 235 Ù ë EB &#235;
236 ý ì EC &#236; 237 Ý í ED &#237;
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
Number
(Dec)
Alt + no
leading zero
Alt + leading
zero
Hex HTML
(Num)
238 ¯ î EE &#238; 239 ´ ï EF &#239;
240 ­­­dash ð F0 &#240; 241 ± ñ F1 &#241;
242 ò F2 &#242; 243 ¾ ó F3 &#243;
244 ô F4 &#244; 245 § õ F5 &#245;
246 ÷ ö F6 &#246; 247 ¸ ÷ F7 &#247;
248 ° ø F8 &#248; 249 ¨ ù F9 &#249;
250 · ú FA &#250; 251 ¹ û FB &#251;
252 ³ ü FC &#252; 253 ² ý FD &#253;
254 þ FE &#254; 255 nothing ÿ FF &#255;
Alt Keycodes Chart

N.D. = Not Defined in HTML 4 Standard. Dec = Decimal.
(Above) HTML code is compliant with ISO 10646, ISO 8879, ISO 8859-1.
Use (leading) "%" symbol before the hex code, to use it in the URL.
To use hex code in HTML, use HTML Hexadecimal code format, that is, use the x after the &#, for example, for cent sign (¢), use &#x162;.

[edit] Table of characters (Alt + X keycodes)

For characters which decimal equivalent code number is above 255, then the "Alt + Decimal_Equivalent_Number" keycodes will not work, for most characters, except few characters which are remapped below 256. For these characters we need to use the equivalent Hexadecimal code number. However, this does not apply in Microsoft Office Word XP or later.

To convert hexcodes into its equivalent symbol or character (existing in Unicode, or other Standard), another way is to use the Alt + X keys, after the hexcode is typed in the Word, Wordpad, etc software.

Alt+X keycodes Chart for Special Characters
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
  Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
256 Ā   100 &#256; 257 ā   101 &#257;
258 Ă   102 &#258; 259 ă   103 &#259;
260 Ą   104 &#260; 261 ą   105 &#261;
262 Ć   106 &#262; 263 ć   107 &#263;
264 Ĉ   108 &#264; 265 ĉ   109 &#265;
266 Ċ   10A &#266; 267 ċ   10B &#267;
268 Č   10C &#268; 269 č   10D &#269;
270 Ď   10E &#270; 271 ď   10F &#271;
272 Đ   110 &#272; 273 đ   111 &#273;
274 Ē   112 &#274; 275 ē   113 &#275;
276 Ĕ   114 &#276; 277 ĕ   115 &#277;
278 Ė   116 &#278; 279 ė   117 &#279;
280 Ę   118 &#280; 281 ę   119 &#281;
282 Ě   11A &#282; 283 ě   11B &#283;
284 Ĝ   11C &#284; 285 ĝ   11D &#285;
286 Ğ   11E &#286; 287 ğ   11F &#287;
288 Ġ   120 &#288; 289 ġ   121 &#289;
290 Ģ   122 &#290; 291 ģ   123 &#291;
292 Ĥ   124 &#292; 293 ĥ   125 &#293;
294 Ħ   126 &#294; 295 ħ   127 &#295;
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
296 Ĩ   128 &#296; 297 ĩ   129 &#297;
298 Ī   12A &#298; 299 ī   12B &#299;
300 Ĭ   12C &#300; 301 ĭ   12D &#301;
302 Į   12E &#302; 303 į   12F &#303;
304 İ   130 &#304; 305 ı   131 &#305;
306 IJ   132 &#306; 307 ij   133 &#307;
308 Ĵ   134 &#308; 309 ĵ   135 &#309;
310 Ķ   136 &#310; 311 ķ   137 &#311;
312 ĸ   138 &#312; 313 Ĺ   139 &#313;
314 ĺ   13A &#314; 315 Ļ   13B &#315;
316 ļ   13C &#316; 317 Ľ   13D &#317;
318 ľ   13E &#318; 319 Ŀ   13F &#319;
320 ŀ   140 &#320; 321 Ł   141 &#321;
322 ł   142 &#322; 323 Ń   143 &#323;
324 ń   144 &#324; 325 Ņ   145 &#325;
326 ņ   146 &#326; 327 Ň   147 &#327;
328 ň   148 &#328; 329 ʼn   149 &#329;
330 Ŋ   14A &#330; 331 ŋ   14B &#331;
332 Ō   14C &#332; 333 ō   14D &#333;
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
334 Ŏ   14E &#334; 335 ŏ   14F &#335;
336 Ő   150 &#336; 337 ő   151 &#337;
338 Œ   152 &#338; 339 œ   153 &#339;
340 Ŕ   154 &#340; 341 ŕ   155 &#341;
342 Ŗ   156 &#342; 343 ŗ   157 &#343;
344 Ř   158 &#344; 345 ř   159 &#345;
346 Ś   15A &#346; 347 ś   15B &#347;
348 Ŝ   15C &#348; 349 ŝ   15D &#349;
350 Ş   15E &#350; 351 ş   15F &#351;
352 Š   160 &#352; 353 š   161 &#353;
354 Ţ   162 &#354; 355 ţ   163 &#355;
356 Ť   164 &#356; 357 ť   165 &#357;
358 Ŧ   166 &#358; 359 ŧ   167 &#359;
360 Ũ   168 &#360; 361 ũ   169 &#361;
362 Ū   16A &#362; 363 ū   16B &#363;
364 Ŭ   16C &#364; 365 ŭ   16D &#365;
366 Ů   16E &#366; 367 ů   16F &#367;
368 Ű   170 &#368; 369 ű   171 &#369;
370 Ų   172 &#370; 371 ų   173 &#371;
372 Ŵ   174 &#372; 373 ŵ   175 &#373;
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
374 Ŷ   176 &#374; 375 ŷ   177 &#375;
376 Ÿ   178 &#376; 377 Ź   179 &#377;
378 ź   17A &#378; 379 Ż   17B &#379;
380 ż   17C &#380; 381 Ž   17D &#381;
382 ž   17E &#382; 383 ſ   17F &#383
Alt+X keycodes Chart for Special Characters

Dec = Decimal.
Above chart is compliant with the Unicode "Latin Extended-A" block.
To use these char (Hex: 80 ~ 7FF) in URL, first convert each hex digit to its binary equivalent, then add binary 0 in front of it to make it (binary) 11 bits long, then insert binary "10" after the 5th binary bit, and insert binary "110" at the beginning, now make two groups of binary numbers, each containing 8 bits, by taking the first binary 8 bits and converting them to its hex equivalent, and convert rest of the binary 8 bits to its hex equivalent. Then use the "%" percent in front of these two groups to get the URL equivalent code.

Alt+X keycodes Chart for Special Characters / Symbols
Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
  Number
(Dec)
Hex-Code,
Alt + X
Other Hex HTML
(Num)
401 Ƒ   191 &#401; 402 ƒ   192 &#402;
8211   2013 &#8211; 8212   2014 &#8212;
8216   2018 &#8216; 8217   2019 &#8217;
8220   201C &#8211; 8221   201D &#8221;
8226   2022 &#8226; 8227   2023 &#8227;
8230   2026 &#8230; 8364   20AC &#8364;
8486 Ω   2126 &#8486; 8734   221E &#8734;
Alt+X keycodes Chart for Special Characters / Symbols

(Above) HTML code is compliant with HTML 4.01, ISO 10646, ISO 8879, Latin extended A and B.
To use the hex code as HTML Hexadecimal, use the x after the &#, for example, for ohm sign (Ω), use &#x2126;.

[edit] See also