Alt Code to Unicode Converter
Convert Alt codes to Unicode characters instantly. Batch convert Alt key codes to UTF-8 symbols, codepoints, and HTML entities with a full reference table.
About
Alt codes originated from IBM PC's Code Page 437 (CP437), a character encoding that mapped 256 byte values to glyphs for the original IBM Personal Computer in 1981. When you hold Alt and type a number on the numpad, Windows translates that integer through the active codepage into a character. The problem: CP437 and Windows-1252 diverge from Unicode in the range 128 - 255, causing silent mojibake when pasting across systems. This tool performs the exact codepage-aware mapping, converting your Alt code input into the correct Unicode codepoint (U+XXXX), UTF-8 character, and HTML entity. It handles both the CP437 mapping (Alt+1 through Alt+255 without leading zero) and the Windows-1252 ANSI mapping (Alt+0XXX with leading zero). Misidentifying the codepage is how developers end up with â€" instead of an em dash.
Batch conversion accepts comma-separated or newline-separated Alt codes, outputting a complete table with the rendered glyph, Unicode name, hex codepoint, and HTML entity. A reverse mode lets you paste any character to retrieve its Alt code. Note: Alt codes above 255 are not natively supported by all Windows versions. This tool approximates extended codes by direct Unicode codepoint mapping, which may differ from OEM codepage behavior on legacy systems.
Formulas
The conversion from an Alt code to a Unicode character depends on whether the code uses a leading zero (Windows-1252 / ANSI mode) or not (CP437 / OEM mode).
Where n is the numeric Alt code entered by the user. The CP437 function uses a lookup table that maps OEM byte values to Unicode codepoints. For values 0 - 127, CP437 matches ASCII identically: n ↦ U+n. For values 128 - 255, CP437 diverges. The Win1252 function maps the Windows-1252 superset of ISO-8859-1. The critical divergence zone is bytes 0x80 - 0x9F (128 - 159 decimal), where Windows-1252 assigns characters like the Euro sign (U+20AC at position 0x80) while ISO-8859-1 leaves them as C1 control codes.
The HTML entity output uses decimal notation: &#codepoint; where codepoint is the decimal Unicode value. Named entities (e.g., ♥) are provided when they exist in the HTML5 specification.
Reference Data
| Alt Code | Char | Unicode | HTML Entity | Description | Category |
|---|---|---|---|---|---|
| 1 | ☺ | U+263A | ☺ | White Smiling Face | Symbol |
| 2 | ☻ | U+263B | ☻ | Black Smiling Face | Symbol |
| 3 | ♥ | U+2665 | ♥ | Black Heart Suit | Symbol |
| 4 | ♦ | U+2666 | ♦ | Black Diamond Suit | Symbol |
| 5 | ♣ | U+2663 | ♣ | Black Club Suit | Symbol |
| 6 | ♠ | U+2660 | ♠ | Black Spade Suit | Symbol |
| 13 | ♪ | U+266A | ♪ | Eighth Note | Music |
| 14 | ♫ | U+266B | ♫ | Beamed Eighth Notes | Music |
| 15 | ☼ | U+263C | ☼ | White Sun with Rays | Weather |
| 0128 | € | U+20AC | € | Euro Sign | Currency |
| 0163 | £ | U+00A3 | £ | Pound Sign | Currency |
| 0165 | ¥ | U+00A5 | ¥ | Yen Sign | Currency |
| 0169 | © | U+00A9 | © | Copyright Sign | Legal |
| 0174 | ® | U+00AE | ® | Registered Sign | Legal |
| 0176 | ° | U+00B0 | ° | Degree Sign | Math |
| 0177 | ± | U+00B1 | ± | Plus-Minus Sign | Math |
| 0178 | ² | U+00B2 | ² | Superscript Two | Math |
| 0181 | µ | U+00B5 | µ | Micro Sign | Science |
| 0188 | ¼ | U+00BC | ¼ | Vulgar Fraction One Quarter | Math |
| 0189 | ½ | U+00BD | ½ | Vulgar Fraction One Half | Math |
| 0190 | ¾ | U+00BE | ¾ | Vulgar Fraction Three Quarters | Math |
| 155 | ¢ | U+00A2 | ¢ | Cent Sign | Currency |
| 171 | « | U+00AB | « | Left Double Angle Quotation | Punctuation |
| 172 | » | U+00BB | » | Right Double Angle Quotation | Punctuation |
| 224 | α | U+03B1 | α | Greek Small Letter Alpha | Greek |
| 225 | ß | U+00DF | ß | Latin Small Letter Sharp S | Latin |
| 227 | π | U+03C0 | π | Greek Small Letter Pi | Greek |
| 228 | Σ | U+03A3 | Σ | Greek Capital Letter Sigma | Greek |
| 230 | µ | U+00B5 | µ | Micro Sign (CP437) | Science |
| 236 | ∞ | U+221E | ∞ | Infinity | Math |
| 241 | ± | U+00B1 | ± | Plus-Minus Sign (CP437) | Math |
| 246 | ÷ | U+00F7 | ÷ | Division Sign | Math |
| 248 | ° | U+00B0 | ° | Degree Sign (CP437) | Math |
| 0153 | ™ | U+2122 | ™ | Trade Mark Sign | Legal |
| 0151 | - | U+2014 | — | Em Dash | Punctuation |
| 0150 | - | U+2013 | – | En Dash | Punctuation |