ASCII Table

From Webmaster-A Webmaster Resources
Find out how to produce symbols in HTML using the ASCII Table by following the simple information on this page.Demystifying the ASCII Table is what we are all about. Nothing but plain talking here at Webmaster Alpha. Many sites leave out the non-printable codes but we present the ASCII Table in all its glory.

ASCII Control Characters

ASCII characters between decimal and decimal 31 are control characters. these hark back to the days of mainframes and dumb terminals and were the method used to control the display on the terminal, control a print head on a printer, and to transmit information down a primitive serial line. The only characters we use much nowadays from this set are ASCII 009 (tab) ,010 (line feed) ,013(Carriage return) and 027 (Escape). It is good to know these ascii characters are here though because if we are writing a custom encryption scheme, or some sort of custom data transmission system these can come in handy.

The following table presents the ASCII control codes in decimal, octal (base 8) and Hexadecimal (base16):

DecimalOctalHexNameFunction
000
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
000
001
002
003
004
005
006
007
010
011
012
013
014
015
016
017
020
021
022
023
024
025
026
027
030
031
032
033
034
035
036
037
000
001
002
003
004
005
006
007
008
009
00A
00B
00C
00D
00E
00F
010
011
012
013
014
015
016
017
018
019
01A
01B
01C
01D
01E
01F
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
TAB
LF
VT
FF
CR
SO
SI
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
null
start of header
start of text
end of text
end of transmission
enquiry
acknowledge
bell
backspace
horizontal tab
line feed
vertical tab
form feed
carriage return
shift out
shift in
data link escape
device control 1
device control 2
device control 3
device control 4
negative acknowledge
synchronous idle
end of transmission block
cancel
end of medium
substitute
ecape
file seperator
group seperator
record seperator
unit seperator

ASCII Printable Characters

ASCII characters above decimal 31 are often known as printable characters. This is because these codes each correspond to a printed text or punctuation character.

The following table presents the ASCII codes for printable characters in decimal, octal (base 8) and Hexadecimal (base16):

DecimalOctalHexCharacter
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
040
041
042
043
044
045
046
047
050
051
052
053
054
055
056
057
060
061
062
063
064
065
066
067
070
071
072
073
074
075
076
077
100
101
102
103
104
105
106
107
110
111
112
113
114
115
116
117
120
121
122
123
124
125
126
127
130
131
132
133
134
135
136
137
140
141
142
143
144
145
146
147
150
151
152
153
154
155
156
157
160
161
162
163
164
165
166
167
170
171
172
173
174
175
176
177
020
021
022
023
024
025
026
027
028
029
02A
02B
02C
02D
02E
02F
030
031
032
033
034
035
036
037
038
039
03A
03B
03C
03D
03E
03F
040
041
042
043
044
045
046
047
048
049
04A
04B
04C
04D
04E
04F
050
051
052
053
054
055
056
057
058
059
05A
05B
05C
05D
05E
05F
060
061
062
063
064
065
066
067
068
069
06A
06B
06C
06D
06E
06F
070
071
072
073
074
075
076
077
078
079
07A
07B
07C
07D
07E
07F
Space
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_ (underscore)
`(apostrophe)
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~


Uses for ASCII Codes

There are many uses for ascii codes on the net. Here are the most common ones:
  • Html encoding: many characters have a reserved usage in HTML and cannot be directly represented when typed in (eg < > and many others ) if you know the ASCII code number then you can type in &#[code number]; and get for example (&#127;)  do not forget the semi-colon after the ASCII code.
  • Random Characters: in PHP for example constructing a random string by using the code $string=chr(rand(65,90)).chr(rand(48,57)).chr(rand(97,122)) will produce a random string containing one upper case letter, one number, and one lower case letter such as A6y
  • Constructing Unique File/variable Names: in PHP you can use the time() function to get the unix timestamp (number of seconds since 00:00:00 UTC on January 1, 1970) however if your website has many visitors then the chances are that more than one visitor will need a temporary file inside the same second. To get around this you can place a random ASCII string as above in front of the unix time , the odds of this random string being the same are one in 6760 adding another letter makes the odds one in 175760. The dash seperator allows you to use explode() to seperate the timestamp from the characters and delete any files that are older than a certain threshold. This example ASCII filename has just been automatically created: V3bT-1283536675.tmp
Hopefully this will give tou a glimpse into the world of ASCII characters!


Useful Pages

Social Bookmarking:



Ascii Table Referrers

bookmark hit
www.google.co.in
www.google.com
www.google.fr
www.google.dk
www.google.com.ph
internal hit
...
www.google.pl
www.google.lk
www.google.co.uk
www.google.de
www.google.nl
www.google.it
www.google.com.br
www.google.com.ar
www.google.co.jp
translate.google.com
www.google.cz
www.google.com.tr
www.google.co.id
www.google.co.za
www.google.ca
www.google.se
www.google.com.eg
www.google.hr
www.google.ie
images.google.de
www.answers.com
www.ask.com
www.google.ro
translate.google.es

This list of people who link to this ASCII Table page is automagically maintained. Link to us, send traffic, and get listed. Simple.