ASCII Character Chart with Decimal, Binary and Hexadecimal Conversions (2024)

ASCII Character Chart with Decimal, Binary and Hexadecimal Conversions

ASCII stands for "American Standard Code for Information Interchange".

Character Name

Char

Code

Decimal

Binary

Hex

Null

NUL

Ctrl @

00000000

00

Start of Heading

SOH

Ctrl A

1

00000001

01

Start of Text

STX

Ctrl B

2

00000010

02

End of Text

ETX

Ctrl C

3

00000011

03

End of Transmit

EOT

Ctrl D

4

00000100

04

Enquiry

ENQ

Ctrl E

5

00000101

05

Acknowledge

ACK

Ctrl F

6

00000110

06

Bell

BEL

Ctrl G

7

00000111

07

Back Space

BS

Ctrl H

8

00001000

08

Horizontal Tab

TAB

Ctrl I

9

00001001

09

Line Feed

LF

Ctrl J

10

00001010

0A

Vertical Tab

VT

Ctrl K

11

00001011

0B

Form Feed

FF

Ctrl L

12

00001100

0C

Carriage Return

CR

Ctrl M

13

00001101

0D

Shift Out

SO

Ctrl N

14

00001110

0E

Shift In

SI

Ctrl O

15

00001111

0F

Data Line Escape

DLE

Ctrl P

16

00010000

10

Device Control 1

DC1

Ctrl Q

17

00010001

11

Device Control 2

DC2

Ctrl R

18

00010010

12

Device Control 3

DC3

Ctrl S

19

00010011

13

Device Control 4

DC4

Ctrl T

20

00010100

14

Negative Acknowledge

NAK

Ctrl U

21

00010101

15

Synchronous Idle

SYN

Ctrl V

22

00010110

16

End of Transmit Block

ETB

Ctrl W

23

00010111

17

Cancel

CAN

Ctrl X

24

00011000

18

End of Medium

EM

Ctrl Y

25

00011001

19

Substitute

SUB

Ctrl Z

26

00011010

1A

Escape

ESC

Ctrl [

27

00011011

1B

File Separator

FS

Ctrl \

28

00011100

1C

Group Separator

GS

Ctrl ]

29

00011101

1D

Record Separator

RS

Ctrl ^

30

00011110

1E

Unit Separator

US

Ctrl _

31

00011111

1F

Space

32

00100000

20

Exclamation Point

!

Shift 1

33

00100001

21

Double Quote

"

Shift ‘

34

00100010

22

Pound/Number Sign

#

Shift 3

35

00100011

23

Dollar Sign

$

Shift 4

36

00100100

24

Percent Sign

%

Shift 5

37

00100101

25

Ampersand

&

Shift 7

38

00100110

26

Single Quote

39

00100111

27

Left Parenthesis

(

Shift 9

40

00101000

28

Right Parenthesis

)

Shift 0

41

00101001

29

Asterisk

*

Shift 8

42

00101010

2A

Plus Sign

+

Shift =

43

00101011

2B

Comma

,

,

44

00101100

2C

Hyphen / Minus Sign

-

-

45

00101101

2D

Period

.

.

46

00101110

2E

Forward Slash

/

/

47

00101111

2F

Zero Digit

48

00110000

30

One Digit

1

1

49

00110001

31

Two Digit

2

2

50

00110010

32

Three Digit

3

3

51

00110011

33

Four Digit

4

4

52

00110100

34

Five Digit

5

5

53

00110101

35

Six Digit

6

6

54

00110110

36

Seven Digit

7

7

55

00110111

37

Eight Digit

8

8

56

00111000

38

Nine Digit

9

9

57

00111001

39

Colon

:

Shift ;

58

00111010

3A

Semicolon

;

;

59

00111011

3B

Less-Than Sign

<

Shift ,

60

00111100

3C

Equals Sign

=

=

61

00111101

3D

Greater-Than Sign

>

Shift .

62

00111110

3E

Question Mark

?

Shift /

63

00111111

3F

At Sign

@

Shift 2

64

01000000

40

Capital A

A

Shift A

65

01000001

41

Capital B

B

Shift B

66

01000010

42

Capital C

C

Shift C

67

01000011

43

Capital D

D

Shift D

68

01000100

44

Capital E

E

Shift E

69

01000101

45

Capital F

F

Shift F

70

01000110

46

Capital G

G

Shift G

71

01000111

47

Capital H

H

Shift H

72

01001000

48

Capital I

I

Shift I

73

01001001

49

Capital J

J

Shift J

74

01001010

4A

Capital K

K

Shift K

75

01001011

4B

Capital L

L

Shift L

76

01001100

4C

Capital M

M

Shift M

77

01001101

4D

Capital N

N

Shift N

78

01001110

4E

Capital O

O

Shift O

79

01001111

4F

Capital P

P

Shift P

80

01010000

50

Capital Q

Q

Shift Q

81

01010001

51

Capital R

R

Shift R

82

01010010

52

Capital S

S

Shift S

83

01010011

53

Capital T

T

Shift T

84

01010100

54

Capital U

U

Shift U

85

01010101

55

Capital V

V

Shift V

86

01010110

56

Capital W

W

Shift W

87

01010111

57

Capital X

X

Shift X

88

01011000

58

Capital Y

Y

Shift Y

89

01011001

59

Capital Z

Z

Shift Z

90

01011010

5A

Left Bracket

[

[

91

01011011

5B

Backward Slash

\

\

92

01011100

5C

Right Bracket

]

]

93

01011101

5D

Caret

^

Shift 6

94

01011110

5E

Underscore

_

Shift -

95

01011111

5F

Back Quote

`

`

96

01100000

60

Lower-case A

a

A

97

01100001

61

Lower-case B

b

B

98

01100010

62

Lower-case C

c

C

99

01100011

63

Lower-case D

d

D

100

01100100

64

Lower-case E

e

E

101

01100101

65

Lower-case F

f

F

102

01100110

66

Lower-case G

g

G

103

01100111

67

Lower-case H

h

H

104

01101000

68

Lower-case I

I

I

105

01101001

69

Lower-case J

j

J

106

01101010

6A

Lower-case K

k

K

107

01101011

6B

Lower-case L

l

L

108

01101100

6C

Lower-case M

m

M

109

01101101

6D

Lower-case N

n

N

110

01101110

6E

Lower-case O

o

O

111

01101111

6F

Lower-case P

p

P

112

01110000

70

Lower-case Q

q

Q

113

01110001

71

Lower-case R

r

R

114

01110010

72

Lower-case S

s

S

115

01110011

73

Lower-case T

t

T

116

01110100

74

Lower-case U

u

U

117

01110101

75

Lower-case V

v

V

118

01110110

76

Lower-case W

w

W

119

01110111

77

Lower-case X

x

X

120

01111000

78

Lower-case Y

y

Y

121

01111001

79

Lower-case Z

z

Z

122

01111010

7A

Left Brace

{

Shift [

123

01111011

7B

Vertical Bar

|

Shift \

124

01111100

7C

Right Brace

}

Shift ]

125

01111101

7D

Tilde

~

Shift `

126

01111110

7E

Delta

D

127

01111111

7F

ASCII Character Chart with Decimal, Binary and Hexadecimal Conversions (2024)

FAQs

How to convert decimal to hexadecimal ASCII? ›

The character has an ASCII decimal equivalent. Divide the decimal by 16 and the remainder will be the rightmost hexadecimal digit. Divide the quotient by 16 until no longer divisible and that will be the last remainder which is to be the leftmost hexadecimal digit. A remainder of 10 is A, so 15 will be F.

How to convert hexadecimal to ASCII characters? ›

Take each hex digit separately and if the input digit is 0 through 9, then add 48 (decimal, or 30 hex) to the number to get the equivalent ascii representation of that digit. If the number is 'a' through 'f', then add 87 (or 57 hex) to the digit to get an ascii representation of 'a' through 'f'.

Is ASCII in hex or decimal? ›

ASCII, decimal, hexadecimal, octal, and binary conversion table
ASCIIDecimalHexadecimal
start of header11
start of text22
end of text33
end of transmission44
94 more rows

What are the ASCII characters in hexadecimal? ›

Standard ASCII codes range from 0 to 127 in Decimal or 00 to 7F in Hexadecimal, they are mainly used for representing characters, such as characters "a" to "z" and number "0" to "9", these are called printable characters, note that code 0 to 31 (Decimal) in Standard ASCII are not printable, they are assigned for ...

How to do ASCII conversions? ›

This is what makes it so easy to convert numbers to and from ASCII. If you have the ASCII code for a number you can either subtract 30h or mask off the upper four bits and you will be left with the number itself. Likewise you can generate the ASCII code from the number by adding 30h or by ORing with 30h.

How to convert binary to ASCII? ›

Here's a way to convert binary numbers to ASCII characters that is often simple enough to do in your head.
  1. 1 - Convert every 4 binary digits into one hex digit. ...
  2. 2 - Split the string of hex digits into pairs. ...
  3. 3 - Convert each pair of hex digits into a decimal number. ...
  4. 4 - Convert the decimal numbers into ASCII characters.
Jul 26, 2011

How to convert hex into binary? ›

Hex to Binary conversion
  1. Write down each hex number separately.
  2. Represent each hex digit by its binary equivalent number from the table1.
  3. Concatenate all the binary digits together to get the converted answer.
  4. Discard any leading zeros at the left of the binary number.

How to convert decimal to hexadecimal? ›

Method for Decimal to Hexadecimal Number System Conversion:

Step-1: First, divide the given number by 16. Step-2: The remainder left here, will produce the hex value. Step-3: Take the quotient from above and repeat steps 1-3 till quotient becomes 0. Step-4: Write all the remainders in reverse order.

Which function is used to convert hexadecimal values to the ASCII characters? ›

You can use the unhexlify() function to convert a hexadecimal string to bytes and then decode it to ASCII using the decode() method.

How to convert decimal to ASCII code? ›

What is the method of converting the decimal number to ASCII code? - Quora. That's so simple. just add 48 to each digit of the decimal no. Add 48 to each digit in turn, that's your ASCII conversion.

What is the ascii code for decimals? ›

Codes 0 through 31 and 127 (decimal) are unprintable control characters. Code 32 (decimal) is a nonprinting spacing character. Codes 33 through 126 (decimal) are printable graphic characters.

How to convert from hex to decimal? ›

To convert a hexadecimal number to decimal, each digit is multiplied by the corresponding power of 16 and then the products are added together. The rightmost digit represents the units place, the next digit to the left represents the 16s place, the next digit represents the 256s place, and so on.

How to convert characters to hexadecimal? ›

Converting characters to hexadecimal
  1. Take a character, and convert it to its ASCII value. e.g. Z=90.
  2. Divide by 16. This is the first part of the hex. 90/16 = 5.
  3. The remainder is the second part of the hex. mod(90,16) = 10.
  4. The hex value for 10 is A, so the hex for Z is 5A.
Jan 21, 2020

What is the difference between ASCII and hexadecimal characters? ›

While hexadecimal (or hex) is a base 16 system used to simplify how binary is represented. A hex digit can be any of the following 16 digits: 0 1 2 3 4 5 6 7 8 9 A B C D E F (10 11 …) ASCII is a 7-bit character code where every single bit represents a unique character.

What are the 16 hexadecimal characters? ›

Hexadecimal numbers are represented by only 16 symbols. These symbols or values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. Each digit represents a decimal value.

How to convert decimal into hexadecimal? ›

Method for Decimal to Hexadecimal Number System Conversion:

Step-1: First, divide the given number by 16. Step-2: The remainder left here, will produce the hex value. Step-3: Take the quotient from above and repeat steps 1-3 till quotient becomes 0. Step-4: Write all the remainders in reverse order.

How to convert decimal number with decimal point to hexadecimal? ›

With the use of a decimal point, you may convert decimal to hexadecimal. We multiply the fractional part (decimal part) by 16 to convert any fractional number to a hexadecimal number. We multiply the fractional component by 16 until it equals 0 because the basis of a hexadecimal integer is 16.

How to convert decimal fraction to hexadecimal? ›

Here are the steps that are required for converting a number from decimal to hexadecimal:
  1. Multiply the available fraction (given in base 10) using 16.
  2. Separately write the real and the fractional part of our result so as to obtain them separately.
  3. Multiply the fractional part by 16.

How do you convert decimal 8723 to ASCII code? ›

ASCII conversion: To convert decimal 8,723 to ASCII, we need to convert each decimal digit to its ASCII code. 8 = 56 7 = 55 2 = 50 3 = 51 So, the ASCII codes for 8,723 are 56 55 50 51.

Top Articles
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 5860

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.