CONVERSION FROM ASCII CODE TO BINARY:

In this article you will learn that how two convert a single ASCII code into binary form (0, 1). By following simple steps it can be possible:

  • First of all draw a rough list of ASCII codes including capital and small letters as well.
  • Capital ‘A’ starts from 65 and small ‘a’ starts from 97.
A=65 a=97
B=66 b=98
C=67 c=99
D=68 d=100
E=69 e=101
F=70 f=102
G=71 g=103
H=72 h=104
I=73 i=105
J=74 j=106
K=75 k=107
L=76 l=108
M=77 m=109
N=78 n=110
O=79 o=111
P=80 p=112
Q=81 q=113
R=82 r=114
S=83 s=115
T=84 t=116
U=85 u=117
V=86 v=118
W=87 w=119
X=88 x=120
Y=89 y=121
Z=90 z=122

 

  • Now, I take the example of word “NewsifyTech”.
  • As you see that in the above example both capital letters and small letters are involved.
  • Take the formula of ”:
  • = 64 32 16 8 4 2 1
  • For instance, N=78 (1   0   0  1  1  1 0)
  • In the above bold area I put “1” on those powers that can sum up together and expose the regarded ASCII code of N that is 78….. 64+8+4+2=78.
  • And on the remaining powers ‘0’ should be put.
  • Then, write the all including letters of “NewsifyTech” in vertical column along with their regarding ASCII codes mentioned in the above table.
  • And do the same working on the other letters.
  • Through these steps you can find the binary code of any letter.
(64) (32) (16) (8) (4) (2) (1)
N=78 1 0 0 1 1 1 0
e=101 1 1 0 0 1 0 1
w=119 1 1 1 0 1 1 1
s=115 1 1 1 0 0 1 1
i=105 1 1 0 1 0 0 1
f=102 1 1 0 0 1 1 0
y=121 1 1 1 1 0 0 1
T=84 1 0 1 0 1 0 0
e=101 1 1 0 0 1 0 1
c=99 1 1 0 0 0 1 1
h=104 1 1 0 1 0 0 0

 

Please follow and like us:
0

Add a Comment

Your email address will not be published. Required fields are marked *