Ascii character table
A practical review of ASCII character tables for text transformation: what the 0–127 map changes, when it is suitable, and how results behave when copied or shared.
What an ASCII character table is
An ASCII character table is a lookup chart for the 128 codes in the American Standard Code for Information Interchange. Each code is a 7-bit integer from 0 through 127, paired with one character: a control function, a space, punctuation, a digit, or a Latin letter. People use the table to encode text as numbers, decode a numeric dump, constrain output to 7-bit characters, or check whether a transform stayed inside that set.
The table documents a fixed mapping. Applying that mapping is the transformation under review. Reverse (reordering characters), mirror (flipping glyph appearance), and font (typeface or substitute styled characters) are separate mechanisms.
Is this transformation suitable for the intended use?
Treat an ASCII character table, and any encode, decode, or filter built on it, as the right reference when the job is to identify, preserve, or emit the 128-code set. The main benefit is an unambiguous, widely implemented mapping: the same code always names the same character in ASCII, and those characters occupy the first 128 positions of Unicode as well.
The decisive tradeoff is coverage. ASCII includes control codes, space, basic punctuation, digits, and unaccented Latin letters. Accented letters, non-Latin scripts, emoji, and combining marks sit outside 0–127. A workflow that converts to ASCII codes, or that rejects values above 127, will omit or replace that material. If the intended use needs those characters, a larger repertoire such as Unicode is required.
Original plain letters are preferable when readers must search, quote, or edit the words themselves; when the destination already accepts Unicode; and when a numeric form (decimal, hexadecimal, octal, or binary codes) would hide meaning from anyone who does not decode it. Keep the table as a reference beside the text. Substitute codes for letters only when the recipient expects an encoded dump.
- Debugging a control character that appeared in a file
- Documenting a protocol or export that requires a 7-bit payload
- Teaching how letters become numbers in a character encoding
- Verifying that a “safe ASCII” export stayed in the 0–127 range
- Decoding a decimal, hex, or octal dump that was produced from ASCII
What this transformation actually changes
Opening a table leaves the stored string unchanged. You are reading a legend. Applying the mapping rewrites characters according to the operation.
- Encode: each original character is replaced by a numeric representation. Latin capital A becomes decimal 65, hexadecimal 41, or octal 101. The letters are gone; digits, spaces, and prefixes remain.
- Decode: a sequence of numbers is replaced by the characters those codes name, provided every code is in 0–127 and the parser agrees on the radix (decimal, hexadecimal, or octal).
- Filter or ASCII-only export: characters already in 0–127 stay. Characters outside that range are dropped, replaced with a fallback, or rejected. The table does not define the fallback; that behavior is tool-specific.
Stored character changes rewrite the code points in the string. Visual presentation leaves those code points in place and changes how they are drawn. ASCII encode and decode rewrite code points. A CSS flip or an ordinary typeface change is visual presentation.
Reverse means the characters appear in opposite order. Mirror means each glyph is flipped, either by substituting a lookalike character or by a visual transform. Font means a typeface, or in casual use a set of substitute characters that look styled (for example mathematical bold letters). An ASCII table maps a character to a number in the 0–127 set. It leaves reading order, glyph facing, and typeface alone.
Some charts labelled ASCII mix in “extended ASCII,” vendor code pages, or Unicode lookalikes used for styled text. Those extra rows are a different repertoire. Strict ASCII ends at 127. Confirm the last code on the chart before treating the mapping as ASCII.
Standard code ranges
| Codes | Characters | Role |
| 0–31 | C0 controls | Non-printing commands such as NUL, LF, CR, HT, and ESC |
| 32 | Space | Blank separator |
| 33–47 | Punctuation | Symbols including ! " # $ % & |
| 48–57 | Digits | 0 through 9 |
| 58–64 | Punctuation | : ; < = > ? @ |
| 65–90 | Latin capitals | A through Z |
| 91–96 | Punctuation | [ \ ] ^ _ ` |
| 97–122 | Latin small letters | a through z |
| 123–126 | Punctuation | { | } ~ |
| 127 | DEL | Delete control |
Checking a mapping against the table
A short encode of ordinary letters should match the decimal (or hex) column of a standard chart. The sample below uses decimal codes with spaces as separators.
Input: Cat
Decimal: 67 97 116
C 67 0x43 octal 103
a 97 0x61 octal 141
t 116 0x74 octal 164
Space 32 0x20
LF 10 0x0A
CR 13 0x0D
If a tool printed hexadecimal 43 61 74 for the same input, that is the same mapping in a different radix. A result that assigned A anything other than 65 decimal (41 hex) would be a different encoding.
Combining marks and multi-code-point emoji sit outside ASCII. A 0–127 table cannot assign them codes in this repertoire, and ASCII has no combining sequences to reverse. What a given converter does when it meets them—skip, replace, error, or reinterpret bytes—is unspecified by the table. Treat that as a gap unless the tool documents it.
Will the result remain readable and usable after copying or sharing?
True ASCII letters, digits, space, and punctuation copy and paste as ordinary characters in environments that accept ASCII or UTF-8. Search terms and editability of those characters remain intact because the stored code points are the familiar Latin ones.
A numeric encoding remains readable as numbers. Search, spelling tools, and assistive technology will treat it as a digit sequence. The original words are recoverable only by decoding. Share that form when the recipient expects a dump, and supply the original sentence when they need the meaning.
Control characters are the main usability hazard. They may be invisible in a destination, stripped on paste, or interpreted as line breaks, tabs, or terminal commands. A table that shows names such as CR or LF is safer to share than a string that contains the raw controls. Inserting NUL, LF, or CR into a file changes layout and device behavior rather than adding a visible glyph.
Whether a particular editor, mail client, or screen reader announces a control, ignores it, or mis-speaks it is environment-specific. No scoped test of a named assistive technology or destination is supplied here, so those outcomes remain unverified. Treat a clean rendering in one app as local to that app.
Reading order for pure ASCII is left to right. Mixing ASCII with right-to-left scripts is a bidirectional Unicode layout issue; the ASCII table does not define that display. Search will find original words only while those words remain stored as letters. After encode-to-codes, search matches the digits instead.
A plain-text equivalent of the original words is needed in the following cases.
- Letters were encoded as code numbers and the reader must understand the words
- A filter dropped or replaced characters that carried meaning
- A chart or generator offered “ASCII fonts” or decorative letters that actually inserted Unicode lookalikes such as fullwidth forms or mathematical alphanumerics. Those lookalikes can fail in passwords, identifiers, sorting, and search even when they look like A–Z on screen
If the stored result is only the original ASCII letters, that string already is the plain-text equivalent. Keep it for sharing, editing, and search.
Practical checks before you rely on the transform
- Confirm the chart’s last code is 127 if you need strict ASCII
- Encode a known sample (A = 65, a = 97, 0 = 48, space = 32) and match the output radix
- Paste the result into the real destination and search for an original word
- If non-ASCII input is possible, read the tool’s documented fallback; if none is documented, treat behavior as unknown
- Keep original readable text beside any numeric dump you share