Skip to content

How to Convert ASCII to Decimal

Published: at 05:30 AM

Converting ASCII to decimal is a common task in computer programming. ASCII is a character encoding standard that assigns a unique number to each character. Decimal, on the other hand, is a base-10 number system that uses ten digits, 0 through 9. Converting ASCII to decimal involves converting each character to its corresponding decimal value.

Conversion

Here’s a step-by-step guide on how to convert ASCII to decimal:

  1. Choose the ASCII character you want to convert to decimal.
  2. Look up the decimal value of the ASCII character using an ASCII table.

Example

Let’s walk through an example to illustrate the process. Suppose we want to convert the ASCII character ‘A’ to decimal.

  1. The ASCII value of ‘A’ is 65.
  2. The decimal value of ‘A’ is also 65.

ASCII Table

CharacterDescriptionDecimal
0Zero48
1One49
2Two50
3Three51
4Four52
5Five53
6Six54
7Seven55
8Eight56
9Nine57
ACapital A65
BCapital B66
CCapital C67
DCapital D68
ECapital E69
FCapital F70
GCapital G71
HCapital H72
ICapital I73
JCapital J74
KCapital K75
LCapital L76
MCapital M77
NCapital N78
OCapital O79
PCapital P80
QCapital Q81
RCapital R82
SCapital S83
TCapital T84
UCapital U85
VCapital V86
WCapital W87
XCapital X88
YCapital Y89
ZCapital Z90
aSmall a97
bSmall b98
cSmall c99
dSmall d100
eSmall e101
fSmall f102
gSmall g103
hSmall h104
iSmall i105
jSmall j106
kSmall k107
lSmall l108
mSmall m109
nSmall n110
oSmall o111
pSmall p112
qSmall q113
rSmall r114
sSmall s115
tSmall t116
uSmall u117
vSmall v118
wSmall w119
xSmall x120
ySmall y121
zSmall z122

See full ascii table here.

References