The ASCII Table
ASCII stands for the American Standard Code for Information
Interchange.
A character is a single 1-byte value that is translated as an ASCII code into either
non-printing control codes (like backspace, tab, carriage return, line feed, etc.)
or into something printable (which you can see as letters, numbers or symbols on
your screen). Note that different fonts will represent characters differently; also,
you need to be sure that you are using the standard character set (ISO 8859-1 Latin-1)
in order to view these correctly. Different character sets use the same numbers
for entirely different characters (such as math symbols, typographical symbols,
even different language alphabets altogether!).
mIRC got 2 identifiers $chr and $asc that can be used to convert a number or character into eachother.
//echo -a $chr(64)
it will display @ and if you type
//echo -a $asc(@)
it will display 64.
| Special ASCII
Values used by mIRC using $chr(#) |
| Decimal Value |
Control Code |
Meaning |
|
Decimal Value |
Control Code |
Meaning |
| 000 |
NUL |
$null |
|
010 |
LF |
$lf |
| 001 |
SOH |
CTCP Delimiter |
|
013 |
CR |
$cr |
| 002 |
STX |
Bold Text (ctrl-B)1 |
|
015 |
SI |
Normal Text (ctrl-O)1 |
| 003 |
ETX |
Colored Text (ctrl-K)1,2 |
|
022 |
SYN |
Reversed Text (ctrl-R)1 |
| 009 |
HT |
Tab |
|
031 |
US |
Underlined Text1 (ctrl-U) |
Notes:
- Any of these control codes can be turned off by using another one of them
where you wish to turn them off. For the color code, you would simply include
a $chr(3) without any numbers following it. If you want to cancel all formatting
codes currently in force, use $chr(15) normal text.
- The ctrl-k $chr(3) code must be followed by a number representing the foreground
color of the text, optionally followed by a comma and another number representing
the background color for that text, in the form $chr(3) $+ ##,##
| Standard ASCII
(7-bit) |
| Decimal Value |
Control Code |
Meaning |
|
Decimal Value |
Control Code |
Meaning |
| 000 |
NUL |
Null |
|
016 |
DLE |
Data Link Escape |
| 00 |
SOH |
Start of Heading |
|
017 |
DC1 |
Device Control 1 (XON) |
| 002 |
STX |
Start of Text |
|
019 |
DC2 |
Device Control 2 |
| 003 |
ETX |
End of Text |
|
019 |
DC3 |
Device Control 3 (XOFF) |
| 004 |
EOT |
End of Transmission |
|
020 |
DC4 |
Device Control 4 |
| 005 |
ENQ |
Enquiry |
|
021 |
NAK |
Negative Acknowledge |
| 006 |
ACK |
Acknowledge |
|
022 |
SYN |
Synchronous Idle |
| 007 |
BEL |
Bell |
|
023 |
ETB |
End of Transmission Block |
| 008 |
BS |
Backspace |
|
024 |
CAN |
Cancel |
| 009 |
HT |
Horizontal Tab |
|
025 |
EM |
End of Medium |
| 010 |
LF |
Line Feed |
|
026 |
SUB |
Substitute |
| 011 |
VT |
Vertical Tab |
|
027 |
ESC |
Escape |
| 012 |
FF |
Form Feed |
|
028 |
FS |
File Separator |
| 013 |
CR |
Carriage Return |
|
029 |
GS |
Group Separator |
| 014 |
SO |
Shift Out |
|
030 |
RS |
Record Separator |
| 015 |
SI |
Shift In |
|
031 |
US |
Unit Separator |
| Standard ASCII
(8-bit) |
| Decimal Value |
Control Code |
Meaning |
|
Decimal Value |
Control Code |
Meaning |
| 128 |
PAD |
Padding Character |
|
144 |
DCS |
Device Control String |
| 129 |
HOP |
High Octet Present |
|
145 |
PU1 |
Private Use 1 |
| 130 |
BPH |
Break Permitted Here |
|
146 |
PU2 |
Private Use 2 |
| 131 |
NBH |
No Break Here |
|
147 |
STS |
Set Transmit State |
| 132 |
IND |
Index |
|
148 |
CCH |
Cancel Character |
| 133 |
NEL |
Next Line |
|
149 |
MW |
Message Waiting |
| 134 |
SSA |
Start of Selected Area |
|
150 |
SPA |
Start of Protected Area |
| 135 |
ESA |
End of Selected Area |
|
151 |
EPA |
End of Protected Area |
| 136 |
HTS |
Horizontal Tabulation Set |
|
152 |
SOS |
Start Of String |
| 137 |
HTJ |
Horizontal Tabulation with Justification |
|
153 |
SGCI |
Single Graphic Character Introducer |
| 138 |
VTS |
Vertical Tabulation Set |
|
154 |
SCI |
Single Character Introducer |
| 139 |
PLD |
Partial Line Forward |
|
155 |
CSI |
Control Sequence Introducer |
| 140 |
PLU |
Partial Line Backward |
|
156 |
ST |
String Terminator |
| 141 |
RI |
Reverse Line Feed |
|
157 |
OSC |
Operating System Command |
| 142 |
SS2 |
Single-Shift 2 |
|
158 |
PM |
Privacy Message |
| 143 |
SS3 |
Single-Shift 3 |
|
159 |
APC |
Application Program Command |
Below is a chart that lists each character's decimal value. For the control codes,
it lists that code's short name and what it means; for the printable characters,
it shows what the character looks like and what it is called.
| Printable Characters |
| Decimal Value |
Control Code |
Meaning |
|
Decimal Value |
Control Code |
Meaning |
| 032 |
SP |
Space |
|
160 |
NBSP |
Non-Breaking Space |
| 033 |
! |
Exclamation Mark |
161 |
¡ |
Inverted Exclamation Mark |
| 034 |
" |
Quotation Mark |
162 |
¢ |
Cent Sign |
| 035 |
# |
Hash Mark
(Pound Sign) |
163 |
£ |
Pound Sterling Sign |
| 036 |
$ |
Dollar Sign |
164 |
¤ |
General Currency Sign (Euro) |
| 037 |
% |
Percent Sign |
165 |
¥ |
Yen Sign |
| 038 |
& |
Ampersand |
166 |
¦ |
Broken Vertical Bar |
| 039 |
' |
Apostrophe |
167 |
§ |
Section Sign |
| 040 |
( |
Left Parenthesis |
168 |
¨ |
Umlaut (Dieresis) |
| 041 |
) |
Right Parenthesis |
169 |
© |
Copyright Sign |
| 042 |
* |
Asterisk |
170 |
ª |
Feminine Ordinal |
| 043 |
+ |
Plus Sign |
171 |
« |
Left Angle Quote |
| 044 |
, |
Comma |
172 |
¬ |
Vinculum (Not) |
| 045 |
- |
Dash |
173 |
|
Soft-hyphen |
| 046 |
. |
Period |
174 |
® |
Registered Sign |
| 047 |
/ |
Solidus (Slash) |
175 |
¯ |
Macron Accent (Overscore) |
| 048 |
0 |
Digit Zero |
176 |
° |
Degree Sign |
| 049 |
1 |
Digit One |
177 |
± |
Plus-minus Sign |
| 050 |
2 |
Digit Two |
178 |
² |
Superscript 2 |
| 051 |
3 |
Digit Three |
189 |
³ |
Superscript 3 |
| 052 |
4 |
Digit Four |
180 |
´ |
Acute Accent Mark |
| 053 |
5 |
Digit Five |
181 |
µ |
Micro Sign |
| 054 |
6 |
Digit Six |
182 |
¶ |
Paragraph or Pilcrow Sign |
| 055 |
7 |
Digit Seven |
183 |
· |
Middle Dot (Bullet)a |
| 056 |
8 |
Digit Eight |
184 |
¸ |
Cedilla Mark |
| 057 |
9 |
Digit Nine |
185 |
¹ |
Superscript 1 |
| 058 |
: |
Colon |
186 |
º |
Masculine Ordinal |
| 059 |
; |
Semicolon |
187 |
» |
Right Angle Quote |
| 060 |
< |
Less-Than Sign |
188 |
¼ |
Fraction One-fourth |
| 061 |
= |
Equal Sign |
189 |
½ |
Fraction One-half |
| 062 |
> |
Greater-Than Sign |
190 |
¾ |
Fraction Three-quarters |
| 063 |
? |
Question Mark |
191 |
¿ |
Inverted Question Mark |
| 064 |
@ |
Commercial At
(At Sign) |
192 |
À |
A - Grave Accent |
| 065 |
A |
Uppercase A |
193 |
Á |
A - Acute Accent |
| 066 |
B |
Uppercase B |
194 |
 |
A - Circumflex Accent |
| 067 |
C |
Uppercase C |
195 |
à |
A - Tilde |
| 068 |
D |
Uppercase D |
196 |
Ä |
A - Umlaut (Dieresis) |
| 069 |
E |
Uppercase E |
197 |
Å |
A - Ring |
| 070 |
F |
Uppercase F |
198 |
Æ |
Æ Diphthong |
| 071 |
G |
Uppercase G |
199 |
Ç |
C - Cedilla |
| 072 |
H |
Uppercase H |
200 |
È |
E - Grave Accent |
| 073 |
I |
Uppercase I |
201 |
É |
E Acute Accent |
| 074 |
J |
Uppercase J |
202 |
Ê |
E - Circumflex Accent |
| 075 |
K |
Uppercase K |
203 |
Ë |
E - Umlaut (Dieresis) |
| 076 |
L |
Uppercase L |
204 |
Ì |
I - Grave Accent |
| 077 |
M |
Uppercase M |
205 |
Í |
I - Acute Accent |
| 078 |
N |
Uppercase N |
206 |
Î |
I - Circumflex Accent |
| 079 |
O |
Uppercase O |
207 |
Ï |
I - Umlaut (Dieresis) |
| 080 |
P |
Uppercase P |
208 |
Ð |
Eth (Icelandic) |
| 081 |
Q |
Uppercase Q |
209 |
Ñ |
N - Tilde |
| 082 |
R |
Uppercase R |
210 |
Ò |
O - Grave Accent |
| 083 |
S |
Uppercase S |
211 |
Ó |
O - Acute Accent |
| 084 |
T |
Uppercase T |
212 |
Ô |
O - Circumflex Accent |
| 085 |
U |
Uppercase U |
213 |
Õ |
O - Tilde |
| 086 |
V |
Uppercase V |
214 |
Ö |
O - Umlaut (Dieresis) |
| 087 |
W |
Uppercase W |
215 |
× |
Multiplication Sign |
| 088 |
X |
Uppercase X |
216 |
Ø |
O - Slash |
| 089 |
Y |
Uppercase Y |
217 |
Ù |
U - Grave Accent |
| 090 |
Z |
Uppercase Z |
218 |
Ú |
U - Acute Accent |
| 091 |
[ |
Left Square Bracket |
219 |
Û |
U - Circumflex Accent |
| 092 |
\ |
Reverse Solidus (Backslash) |
220 |
Ü |
U - Umlaut (Dieresis) |
| 093 |
] |
Right Square Bracket |
221 |
Ý |
Y - Acute Accent |
| 094 |
^ |
Circumflex Accent (Carat) |
222 |
Þ |
Capital THORN (Icelandic) |
| 095 |
_ |
Underscore |
223 |
ß |
Small Sharp s (German sz) |
| 096 |
` |
Grave Accent |
224 |
à |
a - Grave Accent |
| 097 |
a |
Lowercase a |
225 |
á |
a - Acute Accent |
| 098 |
b |
Lowercase b |
226 |
â |
a - Circumflex Accent |
| 099 |
c |
Lowercase c |
227 |
ã |
a - Tilde |
| 100 |
d |
Lowercase d |
228 |
ä |
a - Umlaut (Dieresis) |
| 101 |
e |
Lowercase e |
229 |
å |
a - Ring |
| 102 |
f |
Lowercase f |
230 |
æ |
æ Diphthong |
| 103 |
g |
Lowercase g |
231 |
ç |
c - Cedilla |
| 104 |
h |
Lowercase h |
232 |
è |
e - Grave Accent |
| 105 |
i |
Lowercase i |
233 |
é |
e - Acute Accent |
| 106 |
j |
Lowercase j |
234 |
ê |
e - Circumflex Accent |
| 107 |
k |
Lowercase k |
235 |
ë |
e - Umlaut (Dieresis) |
| 108 |
l |
Lowercase l |
236 |
ì |
i - Grave Accent |
| 109 |
m |
Lowercase m |
237 |
í |
i - Acute Accent |
| 110 |
n |
Lowercase n |
238 |
î |
i - Circumflex Accent |
| 111 |
o |
Lowercase o |
239 |
ï |
i - Umlaut (Dieresis) |
| 112 |
p |
Lowercase p |
240 |
ð |
Small eth (Icelandic) |
| 113 |
q |
Lowercase q |
241 |
ñ |
n - Tilde |
| 114 |
r |
Lowercase r |
242 |
ò |
o - Grave Accent |
| 115 |
s |
Lowercase s |
243 |
ó |
o - Acute Accent |
| 116 |
t |
Lowercase t |
244 |
ô |
o - Circumflex Accent |
| 117 |
u |
Lowercase u |
245 |
õ |
o - Tilde |
| 118 |
v |
Lowercase v |
246 |
ö |
o - Umlaut (Dieresis) |
| 119 |
w |
Lowercase w |
247 |
÷ |
Division Sign |
| 120 |
x |
Lowercase x |
248 |
ø |
Small o - Slash |
| 121 |
y |
Lowercase y |
249 |
ù |
u - Grave Accent |
| 122 |
z |
Lowercase z |
250 |
ú |
u - Acute Accent |
| 123 |
{ |
Left Brace (Curly Bracket) |
251 |
û |
u - Circumflex Accent |
| 124 |
| |
Vertical Line (Pipe or Bar) |
252 |
ü |
u - Umlaut (Dieresis) |
| 125 |
} |
Right Brace (Curly Bracket) |
253 |
ý |
y - Acute Accent |
| 126 |
~ |
Tilde |
254 |
þ |
Small thorn (Icelandic) |
| 127 |
DEL |
Delete |
255 |
ÿ |
y - Umlaut (Dieresis) |
| IRC ASCII number
table |
| $chr(1) |
|
Client-to-Client Protocol |
| $chr(2) |
Ctrl+b |
Bold text |
| $chr(3) |
Ctrl+k |
Colour text |
| $chr(15) |
Ctrl+o |
Normal text |
| $chr(22) |
Ctrl+r |
Reversed text |
| $chr(31) |
Ctrl+u |
Underlined text |
Originally written by Hammer
Modified and re-designed by Sparkle
|