X

String To ASCII Or Hexa Or Binary Converter

This online conversion tool is developed to convert string to ASCII online. Enter the string in the input box below in ASCII converter to convert string to ASCII, hex, and binary number system.

String - ASCII, HEX, Binary

  • String

  • Equivalent Decimal / Ascii Value

    indication
  • Equivalent Binary Value

    indication
  • Equivalent Hex Value

    indication

ASCII CODE Chart - Character and their equivalent decimal values

CharNULSOHSTXETXEOTENQACKBELBSHTLFVTFFCRSOSI
DEC00010203040506070809101112131415
CharDLEDC1DC2DC3DC4NAKSYNETBCANEMSUBESCFSGSRSUS
DEC16171819202122232425262728293031
CharSP!"#$%&'()*+,-./
DEC32333435363738394041424344454647
Char0123456789:;<=>?
DEC48495051525354555657585960616263
Char@ABCDEFGHIJKLMNO
DEC64656667686970717273747576777879
CharPQRSTUVWXYZ[\]^_
DEC80818283848586878889909192939495
Char`abcdefghijklmno
DEC96979899100101102103104105106107108109110111
Charpqrstuvwxyz{|}~DEL
DEC112113114115116117118119120121122123124125126127

The ASCII calculator converts a given string into:

You only have to enter your string in the ASCII value calculator. It will populate the results in real time. These converted values can be further used for several purposes.

What is a string?

A string can be defined as a sequence of characters either as a literal constant or as some kind of variable. It is used in computer programming as a data type and is implemented as array of bytes.

How to convert string to decimal (ASCII)?

String can be converted to decimal using ASCII table. Follow the steps below to convert string to decimal.

Example:

Convert “hello” to decimal number.

Solution:

Step 1: Pick the equivalent decimal value of each character from the table.

h = 104

e = 101

l = 108

o = 111

Step 2: Arrange all decimal values according to the string.

hello = (104 101 108 108 111)10

How to convert string to Binary?

Want to convert string to binary without using string to ASCII converter?

Let’s convert the string “hello” to binary number.

Step 1: First, we have to convert the string to decimal. We already did that in the previous example. Let’s use the decimal number we got for the string “hello”.

hello = (104 101 108 108 111)10

Step 2: Convert the first decimal number (104) into binary by dividing the decimal number by 2.

104/2

Division
by 2

Quotient

Remainder

104/2

52

0

52/2

26

0

26/2

13

0

13/2

6

1

6/2

3

0

3/2

1

1

Step 3: Write the remainders from bottom to top. The resulting number is a binary number against first decimal number.

104 = (1101000)2

Step 4: Convert all decimals to binary number using the division method above. Here is the binary number for string “hello.”

hello = (01101000 01100101 01101100 01101100 01101111)2

How to convert string to Hexadecimal?

To convert string to hexadecimal, we will first convert the string to decimal.

Step 1: As we have already converted the string “hello” to decimal in the first example, let’s use that decimal number.

hello = (104 101 108 108 111)10

Step 2: Divide the decimal numbers by 16 and write down the quotients and remainders starting from top to bottom.

Division
by 16

Quotient

Remainder

104/16

6

8

101/16

6

5

108/16

6

12 or C

108/16

6

12 or C

111/16

6

15 or F

(104 101 108 108 111)10 = (68 65 6C 6C 6F)16

Note: Some numbers are represented using alphabetic characters in hexadecimal system. Such as, 12 = C.

You can also convert string to int online using this tool.