Online ASCII Text to Hex converter
Online Web Code Test |
Online Image Picker |
Online Color Picker
ASCII Text to Hex converter
Enter ASCII text and press the Convert button:
ASCII text to Hex
ASCII (American Standard Code for Information Interchange) is one of the most common character encoding standards. Originally developed from telegraphic codes, ASCII is now widely used in electronic communication for conveying text. The most common way to convert ASCII text to hexadecimal numbers manually is to first look up the decimal number for the letter in the ASCII table. Then, convert this decimal value to its hexadecimal equivalent.
How to Convert Text to Hex
Convert text to hex ASCII code:
1. Get character
2. Get decimal code of character from ASCII table
3. Convert decimal to hex byte
4. Continue with next character
Example:
hello = (68 65 6C 6C 6F)16
Lower case h is given the decimal number 104 in the ASCII table.
(104)10 = (68)16
104 ÷ 16 = 6.5 (Remainder 8)
6 ÷ 16 = 0.375 (Remainder 6)
e is 101, thus
(101)10 = (65)16
101 ÷ 16 = 6.3125 (Remainder 5)
6 ÷ 16 = 0.375 (Remainder 6)
l is 108, thus
(108)10 = (6C)16
108 ÷ 16 = 6.75 (Remainder 12, C in hex)
6 ÷ 16 = 0.375 (Remainder 6)
o is 111, thus
(111)10 = (6F)16
111 ÷ 16 = 6.9375 (Remainder 15, F in hex)
6 ÷ 16 = 0.375 (Remainder 6)
Therefore, hello = (68 65 6C 6C 6F)16
Online Number Calculators
Online Web Code Test |
Online Image Picker |
Online Color Picker