Alt 代码
Windows输入法,通过Alt+数字键盘数字按代码页编号输入字符(Alt+0169 → ©,Alt+0176 → °),仅限代码页1252中的字符。
What is an Alt Code?
Alt codes are a Windows-specific method for entering special characters by holding the Alt key and typing a numeric code on the numeric keypad. Released the Alt key, and the special character appears. They were inherited from the IBM PC's original character entry system and remain functional in Windows today, providing access to hundreds of characters without requiring special keyboard layouts or IME software.
There are two varieties: the original OEM Alt codes (Alt + 1–255 based on Code Page 437, the original IBM PC encoding) and the extended Unicode Alt codes (Alt + 0xxx using the Windows-1252 or system code page).
The Two Alt Code Systems
| System | Key combo | Range | Character set |
|---|---|---|---|
| OEM (CP437) | Alt + 1–255 | 255 characters | IBM PC Code Page 437 |
| ANSI (Windows-1252) | Alt + 0128–0255 | via code page | Windows Western European |
| Unicode | Alt + numpad (some apps) | Limited | App-dependent |
The critical difference between Alt+0169 and Alt+169: - Alt + 169 → ® (from CP437) - Alt + 0169 → © (from Windows-1252/Unicode)
The leading zero signals to Windows: "use the ANSI code page, not OEM."
Common Alt Codes
| Character | Alt Code | Unicode |
|---|---|---|
| © | Alt + 0169 | U+00A9 |
| ® | Alt + 0174 | U+00AE |
| ™ | Alt + 0153 | U+2122 |
| ° | Alt + 0176 | U+00B0 |
| ± | Alt + 0177 | U+00B1 |
| × | Alt + 0215 | U+00D7 |
| ÷ | Alt + 0247 | U+00F7 |
| é | Alt + 0233 | U+00E9 |
| ü | Alt + 0252 | U+00FC |
| ñ | Alt + 00241 | U+00F1 |
| – | Alt + 0150 | U+2013 en dash |
| — | Alt + 0151 | U+2014 em dash |
| • | Alt + 0149 | U+2022 bullet |
| … | Alt + 0133 | U+2026 ellipsis |
Limitations of Alt Codes
-
Requires a numeric keypad: Laptop keyboards without Num Lock/numpad cannot use standard Alt codes. Some laptops have a Fn key override that maps letter keys to a numpad, but this is awkward.
-
Limited Unicode coverage: Standard Alt codes only reach code page characters (up to U+00FF or so). Characters beyond that range generally cannot be entered this way.
-
Application dependency: Some applications intercept the Alt key for their own menus or shortcuts and may not support Alt codes.
-
Memorization required: Unlike dead keys or Compose, Alt codes require memorizing or looking up the numeric value.
Windows Unicode Input Alternative
For broader Unicode input in Windows, type the hexadecimal code point and press Alt+X (works in Microsoft Word and some other applications):
2026 Alt+X → … (ellipsis, U+2026)
2014 Alt+X → — (em dash, U+2014)
1F600 Alt+X → 😀 (if app supports it)
This approach supports the full Unicode range, not just the first 255 characters.
Quick Facts
| Property | Value |
|---|---|
| Platform | Windows only |
| Requirement | Numeric keypad (or Num Lock emulation) |
| OEM system | Alt + 1–255 using Code Page 437 |
| ANSI system | Alt + 0128–0255 using Windows-1252 |
| Leading zero | Alt+0xxx uses ANSI; Alt+xxx uses OEM |
| Alt code for © | Alt + 0169 |
| Alt code for em dash | Alt + 0151 |
| Unicode alternative (Word) | Type hex code, then Alt+X |
| macOS equivalent | Option key combinations or Character Viewer |
输入法 中的更多内容
A system-level tool for browsing and inserting Unicode characters. macOS Character Viewer …
通过Unicode码位输入字符的任何方法:十六进制输入(Mac)、Ctrl+Shift+U输入U+XXXX(Linux)或Alt+X(Windows应用程序)。
通过输入十六进制值直接输入Unicode码位的方法。Mac:按住Option+十六进制值+松开;Windows:在Word/WordPad中输入十六进制后按Alt+X。
用于浏览和插入Unicode字符的图形工具。Windows:charmap.exe;Mac:字符查看器(Control+Command+Space);Linux:gucharmap。
用于可视化浏览和选择字符的UI组件(原生或网页版),移动端的表情符号选取器是最常见的例子。
按下后不立即输出但会修饰下一次击键的按键,用于输入变音符号:按下`再按e可输入è,常见于欧洲键盘布局。
启动多键组合序列的按键(通常为右Alt或自定义映射),是Linux/Unix功能:Compose + a + e → æ,可通过XCompose配置。
通过拼音或字形匹配将按键序列转换为字符的软件组件,使用户能够用标准键盘输入复杂字符(如CJK、韩文等)。