Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Which ASCII Code Is This Symbol? Find It Fast

· 5 min read · Home Tech

In this article
  1. Pin Down the Symbol's Code in Six Moves
  2. Read the Codes You Will Actually Meet
  3. Where Symbol Lookups Go Wrong
  4. Tell ASCII and Unicode Apart Before You Quote a Code
  5. Symbol Codes for the Cases People Search Most

Every ASCII code is a number from 0 to 127 that stands for one character, so to find the code for a symbol you look it up in that table. For example, the symbol @ is ASCII 64, and the dollar sign $ is ASCII 36. If your symbol is not in the 0–127 range, it is not ASCII at all — it is a Unicode character, and you need its Unicode code point instead.

Time 4 min · Steps 6 · Level Easy

Pin Down the Symbol's Code in Six Moves

  1. Copy the exact symbol. Select the character and copy it, so you are searching for the right thing and not a look-alike such as a straight quote versus a curly quote.
  2. Check the ASCII range first. ASCII covers codes 0–127 only: the letters A–Z (65–90) and a–z (97–122), digits 0–9 (48–57), and 33 punctuation symbols (32 is the space).
  3. Look the symbol up in a table. Search for the symbol plus the word "ASCII" — for example "ASCII code for @" — or open any ASCII table and find the row for your character.
  4. Use your computer to reveal the code. On Windows, run Character Map and click a character to see its code; on a Mac, press Control-Command-Space to open the character viewer and hover a symbol to see its code point. Menu labels can differ slightly by version.
  5. Convert if you need a different form. The same code is written in three ways: decimal (64 for @), hexadecimal (0x40), and the two keystroke form used in older software, Alt+64 on a numeric keypad.
  6. Move to Unicode when ASCII fails. Symbols such as €, ©, ° and ™ have no ASCII code. Their identity is a Unicode code point, written U+20AC for € or U+00A9 for ©, and every ASCII character also has one (A is U+0041).

Read the Codes You Will Actually Meet

ASCII codes come in a small set of groups, and knowing the groups makes lookups faster. Codes 0–31 are control characters, invisible instructions like line feed (10) and carriage return (13) that move text around rather than print anything. Code 32 is the space. Codes 33–47 are the common symbols: ! is 33, " is 34, # is 35, $ is 36, % is 37, & is 38, ' is 39, ( is 40, ) is 41, * is 42, + is 43, , is 44, - is 45, . is 46 and / is 47.

Codes 48–57 are the digits, 58–64 cover : ; < = > ? @, and 65–90 are the capital letters. Codes 91–96 hold [ \ ] ^ _ `, codes 97–122 are the lowercase letters, and 123–126 finish with { | } ~. One useful pattern: the uppercase and lowercase versions of a letter are always 32 apart, so A (65) and a (97) differ by exactly 32.

A worked example with real numbers

Say you paste a bullet character • into a document and want its code. You check the ASCII table and • is not there — correct, because ASCII stops at 127. You open the character viewer instead and it shows U+2022. That is the Unicode code point, in hexadecimal: 2022 in hex is 8226 in decimal (2 × 4096 + 0 × 256 + 2 × 16 + 2 = 8226). So you would say "the bullet is U+2022, decimal 8226," and never "the ASCII code for the bullet," because no such code exists.

Where Symbol Lookups Go Wrong

The most common slip is calling every character code an ASCII code. People search for "ASCII code for €" and get answers like 0x80, which comes from an old extended set, not ASCII. The fix is simple: if the code is above 127, it is not ASCII, and the trustworthy name for it is its Unicode code point. Mixing the two leads to broken text when it travels between systems.

A second trap is look-alike characters. The hyphen-minus you type on the keyboard is ASCII 45, but the longer dash — is U+2014. Straight quotes are ASCII 39 and 34; curly quotes are U+2018 and U+201C. When a search or a password rejects a symbol, paste the exact character rather than typing what looks the same.

A third is the Alt-key method. Typing Alt plus a number on the numeric keypad enters a character by code, but it works only with the numeric keypad, not the number row, and what it produces for codes above 127 depends on the system's code page. For codes 0–127 it matches ASCII exactly, which is why Alt+64 reliably gives you @.

Tell ASCII and Unicode Apart Before You Quote a Code

One misconception worth clearing up: that Unicode is a rival of ASCII that replaced it. The correct fact is that Unicode contains ASCII. The first 128 Unicode code points, U+0000 to U+007F, are the ASCII characters with the same numbers, so ASCII 65 and U+0041 are the same A. Nothing you know about ASCII is wasted; it just covers a small corner of the full character set.

A quick decision rule for any symbol: if you can type it on a standard US keyboard without helper software, it is almost certainly ASCII and has a code from 32 to 126. If it came from a phone emoji picker, a currency menu, or a paste from a web page — €, °, é, ★, 🙂 — treat it as Unicode and find its U+ number. Emojis are always far above the ASCII range; the smiley face 🙂 is U+1F642, a five-hex-digit code point no Alt keystroke can produce.

Symbol Codes for the Cases People Search Most

  • @ (at sign) — ASCII 64, hex 0x40, Alt+64
  • # (hash) — ASCII 35, hex 0x23
  • $ (dollar) — ASCII 36, hex 0x24
  • % (percent) — ASCII 37, hex 0x25
  • & (ampersand) — ASCII 38, hex 0x26
  • * (asterisk) — ASCII 42, hex 0x2A
  • ~ (tilde) — ASCII 126, hex 0x7E — the last printable ASCII character
  • ° (degree sign) — not ASCII; Unicode U+00B0
  • © (copyright) — not ASCII; Unicode U+00A9
  • € (euro) — not ASCII; Unicode U+20AC

When you quote a code to someone, give both forms — "@ is ASCII 64, or 0x40 in hex" — because tables, programming languages and spreadsheets each favour a different one. In spreadsheets, the function CHAR(64) returns @ and CODE("@") returns 64; the same functions accept the Unicode numbers for characters beyond ASCII, so CHAR(8226) gives you the bullet from the worked example above.

Official source: ANSI