ASCII Character Map
Run the ASCII Character Map MicroSim Fullscreen
Edit in the p5.js Editor
About This MicroSim
This MicroSim displays all 95 printable ASCII characters (codes 32 through 126) in a color-coded grid. Each character is colored by category — uppercase letters, lowercase letters, digits, symbols, and space — so you can see the structure of the ASCII table at a glance. Hover over any cell to see the character's decimal value, binary representation, category, and (for symbols) its common name.
How to Use
- Hover over any cell to see a tooltip with the character's decimal code, binary value, category, and name.
- Check "Show Decimal Values" to display the ASCII code number below each character in the grid.
- Use the color legend at the top to identify character categories: blue for uppercase, green for lowercase, orange for digits, purple for symbols, and gray for space.
Symbol Character Names
| Char | Dec | Name |
|---|---|---|
! |
33 | Exclamation mark |
" |
34 | Double quote |
# |
35 | Hash / Number sign |
$ |
36 | Dollar sign |
% |
37 | Percent sign |
& |
38 | Ampersand |
' |
39 | Single quote |
( |
40 | Left parenthesis |
) |
41 | Right parenthesis |
* |
42 | Asterisk |
+ |
43 | Plus sign |
, |
44 | Comma |
- |
45 | Hyphen / Minus |
. |
46 | Period / Full stop |
/ |
47 | Forward slash |
: |
58 | Colon |
; |
59 | Semicolon |
< |
60 | Less-than sign |
= |
61 | Equals sign |
> |
62 | Greater-than sign |
? |
63 | Question mark |
@ |
64 | At sign |
[ |
91 | Left square bracket |
\ |
92 | Backslash |
] |
93 | Right square bracket |
^ |
94 | Caret / Circumflex |
_ |
95 | Underscore |
` |
96 | Backtick / Grave accent |
{ |
123 | Left curly brace |
\| |
124 | Vertical bar / Pipe |
} |
125 | Right curly brace |
~ |
126 | Tilde |
Iframe Embed Code
1 2 3 4 | |
Lesson Plan
Grade Level
9-12 (High School Computer Science)
Duration
10-15 minutes
Prerequisites
- Basic understanding of what characters and text are in computing
- Familiarity with the idea that computers store everything as numbers
Activities
- Exploration (5 min): Have students hover over familiar characters (their initials, favorite punctuation) and note the decimal and binary values. Ask: "What patterns do you notice between uppercase and lowercase letters?"
- Guided Practice (5 min): Toggle "Show Decimal Values" on. Students find the codes for
A,a,0, and space. Discuss why uppercase letters start at 65, lowercase at 97, and digits at 48. - Assessment (5 min): Students answer: "What is the decimal difference between any uppercase letter and its lowercase version?" (Answer: 32.) "Why might the designers have chosen that number?"
Assessment
- Can the student look up the ASCII code for a given character?
- Can the student identify which category a character belongs to by its code range?
- Can the student explain the relationship between uppercase and lowercase letter codes?