Look Up ASCII Characters and Their Unicode Values
How ASCII characters map to Unicode code points, how to read an ASCII table, and when text stays readable and usable after copying, converting or styling.
Looking up an ASCII character usually means one of two things: finding the number behind a character you can see, or finding which character a number stands for. Both are simple once you know how ASCII relates to Unicode. This guide explains that relationship, shows how to read an ASCII table, and covers what to check before you rely on converted or restyled text in a real document, form, codebase or post.
Scope note: no specific lookup tool or converter was evaluated for this article, and no tests on named apps, platforms or screen readers were supplied. The values below come from the ASCII and Unicode standards themselves. Where behavior depends on the destination, that is stated as something to check rather than as a verified result.
Is an ASCII lookup or conversion suitable for what you need?
For identifying characters, it is reliable: every ASCII character has exactly one value, and that value is also its Unicode code point. The main benefit of keeping text within ASCII is compatibility. These 128 characters are encoded the same way in ASCII and UTF-8, so they rarely get garbled when moved between systems, which is why identifiers, configuration keys, file names and many protocols stick to them.
The decisive tradeoff is coverage. ASCII has unaccented English letters, digits, basic punctuation and control codes, and nothing else. It cannot represent accented letters, other scripts, curly quotation marks, the euro sign or emoji. Forcing such text into ASCII means dropping or approximating characters, which can change names, meanings and searchability.
- ASCII-only text is a good fit when:
- The destination is code, a command line, a config file, an identifier or an older system that may not handle other encodings.
- You need to confirm whether a character is plain ASCII or a lookalike from elsewhere in Unicode.
- Predictable sorting and matching by character value matters.
- Keep the original Unicode text when:
- It contains names, words or quotations in languages that use characters outside ASCII.
- Typographic characters such as curly quotes or dashes are part of the intended presentation.
- The destination is a modern document, web page or messaging app that handles UTF-8.
How ASCII values relate to Unicode
ASCII is a 7-bit character set with 128 codes, numbered 0 to 127. Unicode was designed so that its first 128 code points, U+0000 to U+007F, are the ASCII characters in the same order. So the ASCII value of a character and its Unicode code point are the same number. Capital A is 65 in decimal, 41 in hexadecimal, and U+0041 in Unicode notation.
The match is at the level of code points. How those numbers are stored as bytes depends on the encoding. In UTF-8, each ASCII character is stored as a single byte with the same value, so a pure ASCII file is also valid UTF-8. In UTF-16, the same characters take two bytes each, so the code point matches but the raw bytes do not.
"Extended ASCII" is not part of ASCII. The term covers various 8-bit code pages that assign different characters to values 128 to 255. ISO-8859-1 (Latin-1) matches Unicode's U+0080 to U+00FF range, but Windows-1252 does not match in the 128 to 159 range; for example, byte 128 is the euro sign in Windows-1252 but a control code in Unicode. If a chart lists characters above 127, check which code page it describes before assuming a Unicode value.
Reading an ASCII character table
An ASCII chart is usually laid out by value, with columns for decimal, hexadecimal, sometimes octal or binary, and the character or its control-code name. The 128 codes split into two groups: 33 control codes that do not print a symbol, and 95 printable characters, including the space.
| Range (decimal) | Range (hex) | Unicode range | Contents |
| 0–31 | 00–1F | U+0000–U+001F | Control codes (non-printing) |
| 32 | 20 | U+0020 | Space |
| 33–47 | 21–2F | U+0021–U+002F | Punctuation and symbols: ! " # $ % & ' ( ) * + , - . / |
| 48–57 | 30–39 | U+0030–U+0039 | Digits 0–9 |
| 58–64 | 3A–40 | U+003A–U+0040 | : ; < = > ? @ |
| 65–90 | 41–5A | U+0041–U+005A | Uppercase A–Z |
| 91–96 | 5B–60 | U+005B–U+0060 | [ \ ] ^ _ ` |
| 97–122 | 61–7A | U+0061–U+007A | Lowercase a–z |
| 123–126 | 7B–7E | U+007B–U+007E | { | } ~ |
| 127 | 7F | U+007F | Delete (control code) |
| Character | Decimal | Hex | Unicode |
| Space | 32 | 20 | U+0020 |
| 0 | 48 | 30 | U+0030 |
| 9 | 57 | 39 | U+0039 |
| A | 65 | 41 | U+0041 |
| Z | 90 | 5A | U+005A |
| a | 97 | 61 | U+0061 |
| z | 122 | 7A | U+007A |
| " (straight double quote) | 34 | 22 | U+0022 |
| ' (straight apostrophe) | 39 | 27 | U+0027 |
| ~ | 126 | 7E | U+007E |
| Control code | Decimal | Hex | Common role |
| NUL (null) | 0 | 00 | String terminator in some languages |
| HT (horizontal tab) | 9 | 09 | Tab |
| LF (line feed) | 10 | 0A | New line on Unix-like systems |
| CR (carriage return) | 13 | 0D | Paired with LF (CR LF) for new lines on Windows |
| ESC (escape) | 27 | 1B | Starts terminal control sequences |
| DEL (delete) | 127 | 7F | Delete |
Two patterns make the table easier to use. Each lowercase letter is exactly 32 higher than its uppercase partner, so a is 97 and A is 65. Digits run in order from 48, so the character 7 is 55, not 7. Confusing a digit character with its numeric value is a common source of conversion errors.
Why ASCII order affects sorting
Sorting by raw character value follows the order in the table: space, then some punctuation, digits, more punctuation, uppercase letters, more punctuation, then lowercase letters. That is why a plain value sort puts "Zebra" before "apple" and "10" before "9". Sorts meant for people generally need case-insensitive or locale-aware comparison rather than raw ASCII order.
Converting between characters and values in code
Most programming languages can do the lookup directly. In Python and JavaScript, the functions below return Unicode code points, which for ASCII characters are the same as their ASCII values.
# Python
ord('A') # 65
hex(ord('A')) # '0x41'
chr(97) # 'a'
'café'.isascii() # False
// JavaScript
'A'.codePointAt(0) // 65
String.fromCodePoint(97) // 'a'
What a transformation actually changes
Words like "convert", "reverse", "mirror" and "font" cover different operations. Some change the stored characters; others only change how the same characters are displayed. That difference determines what survives copying, searching and screen reading.
- Character-to-value lookup: changes nothing in the text. It reports the number for a character or the character for a number.
- Character reversal: reorders the stored characters. For pure ASCII this is safe, because each character is one code point; "ASCII" reversed is "IICSA".
- Word reversal: reorders whole words but keeps each word's spelling intact.
- Mirrored text: ASCII contains no mirrored letters. Generators that produce backwards-looking letters substitute similar characters from other parts of Unicode, so the output is no longer ASCII.
- "Font" or styled text generators: these do not change a font. They swap ASCII letters for different Unicode characters, such as Mathematical Bold Capital A (U+1D400) or Fullwidth Latin Capital Letter A (U+FF21), which look like styled letters but are separate characters.
- CSS or app formatting: bold, italics or a CSS flip change appearance only. The stored characters stay the same, so copying usually yields the original text.
- Bidirectional display: right-to-left control characters such as U+202E change visual order without changing stored order. They are not ASCII, are invisible, and can make text appear different from what it contains.
Character reversal is only simple for ASCII. In wider Unicode, one visible character can be several code points: an accented letter may be a base letter plus a combining mark, and many emoji are sequences joined by invisible characters. Reversing such text code point by code point can move an accent onto the wrong letter or split an emoji into its parts. A tool that claims to reverse any text should handle these grapheme clusters; whether a given tool does could not be confirmed here.
Converting into ASCII is a different case again. Removing accents (é to e) or replacing curly quotes with straight ones changes the stored text permanently. That is often acceptable for code or file names, but it can change the meaning or spelling of words and names, and it cannot be reliably undone.
Will the result stay readable and usable after copying or sharing?
Plain ASCII text is the most portable form of text, but a few things still go wrong in practice. Most of them come from characters that look like ASCII but are not, or from invisible characters that come along with a paste.
- Lookalikes: curly quotes (U+201C, U+201D), non-breaking spaces (U+00A0), en and em dashes, and letters from other scripts such as Cyrillic А (U+0410) look like ASCII but have different values. In code, commands or passwords they can cause errors or failed matches.
- Autocorrect: word processors and some messaging apps may replace straight quotes and hyphens with typographic versions as you type or paste. Check the result before using it in code or configuration.
- Line endings and tabs: text moved between systems can change between LF and CR LF, or between tabs and spaces, which matters for some file formats and scripts.
- Invisible characters: zero-width characters and bidirectional controls are not ASCII and do not show on screen, but they remain in the copied text and can break searches and comparisons.
- Styled Unicode letters: because they are different characters, a search for the plain word may not match them, and spell checkers and editing tools may not treat them as ordinary words.
To check suspicious text, look up the value of each character. Anything above 127 is not ASCII. For lookalike substitutions that do have an ASCII equivalent, Unicode compatibility normalization (NFKC) converts many of them back, including fullwidth and mathematical styled letters, but it does not convert letters from other scripts such as Cyrillic А, because those are distinct letters rather than styled variants.
Accessibility
Ordinary ASCII words are read by assistive technology as normal text. Problems arise with arrangements of ASCII characters rather than the characters themselves: ASCII art, emoticons and decorative rows of symbols may be announced character by character, which is slow and hard to follow. Provide a plain-text description alongside them.
Styled Unicode substitutes, mirrored lookalikes and reversed text carry more risk, because a screen reader may announce character names, skip unfamiliar characters or read reversed words letter by letter. How a specific screen reader or platform handles them could not be verified for this article. If the text needs to be accessible, keep a plain-text version as the primary content and test any styled version with the assistive technology and destination you actually care about, rather than assuming one successful result applies everywhere.
Summary
ASCII values and Unicode code points are the same for the first 128 characters, so a lookup in either system gives the same answer. Keeping text in genuine ASCII maximizes compatibility but cannot represent most of the world's text. Anything that looks like styled, mirrored or special ASCII is almost always a different Unicode character, so check the values, keep the original text, and use plain text wherever search, editing or accessibility matters.