รหัส Alt
วิธีการป้อนข้อมูลของ Windows โดยใช้ Alt + ตัวเลขจาก numpad เพื่อพิมพ์อักขระตามหมายเลขหน้าโค้ด (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 …
ส่วนประกอบซอฟต์แวร์ที่ช่วยให้ป้อนอักขระที่ซับซ้อน (CJK ภาษาเกาหลี ฯลฯ) ด้วยแป้นพิมพ์มาตรฐาน แปลงลำดับการกดแป้นเป็นอักขระผ่านการจับคู่แบบสัทศาสตร์หรือโครงสร้าง
การป้อน code point Unicode โดยตรงด้วยการพิมพ์ค่า hex Mac: กด Option ค้างไว้ + hex …
แป้นที่ไม่ผลิตผลลัพธ์ทันทีแต่ปรับเปลี่ยนการกดแป้นถัดไป ใช้สำหรับเครื่องหมายกำกับเสียง: กด ` แล้วกด e จะได้ è พบทั่วไปในรูปแบบแป้นพิมพ์ยุโรป
ส่วนประกอบ UI (แบบ native หรือบนเว็บ) สำหรับเรียกดูและเลือกอักขระด้วยสายตา ตัวเลือก emoji บนอุปกรณ์มือถือเป็นตัวอย่างที่พบบ่อยที่สุด
แป้น (มักเป็น Alt ขวาหรือที่กำหนดเอง) ที่เริ่มลำดับการรวมหลายแป้น เป็นคุณสมบัติของ Linux/Unix: Compose + a + e …
วิธีการใดก็ตามในการป้อนอักขระโดยใช้ code point Unicode ได้แก่ การป้อน hex (Mac) การป้อน U+XXXX ผ่าน Ctrl+Shift+U …
ยูทิลิตี GUI สำหรับเรียกดูและแทรกอักขระ Unicode Windows: charmap.exe Mac: Character Viewer (Control+Command+Space) Linux: gucharmap