Windows Alt Keycodes Article Index for
Windows
Website Links For
Windows
 

Information About

Windows Alt Keycodes




In PC s 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 Set s.
  • Without leading zero. If the number typed is not preceded by a zero, the character resulting from this number corresponds to Code Page 437 in the U.S. or Code Page 850 in Western Europe (also known as ''Multilingual (Latin-1)''), which are Extended ASCII code pages, 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 Page s, 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 mostly differ.

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

  • 10000).



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.


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.

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 ¢.


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) is by using the Alt + X keys, after the hexcode is typed in the Word, Wordpad, etc software.

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.

(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 Ω.


REFERENCE CHARTS