Hex to ASCII converter is used to convert Hex numbers to ASCII character or to convert ASCII characters to Hex numbers.
The Hex to ASCII converter is a tool used to switch between Hexadecimal (Hex) numbers and ASCII characters. By inputting a hex value into the designated box and clicking the Convert button, you can effortlessly obtain the corresponding ASCII characters. Similarly, you can also convert ASCII characters to Hex numbers.
Hexadecimal (Hex) Numbers:
Hexadecimal numbers are numerical values represented in the hexadecimal numeral system, which operates with a base of 16. It employs sixteen symbols: the digits 0 to 9 and the letters A, B, C, D, E, F. The letters A to F denote decimal values 10 to 15.
Hexadecimal is based on a four-bit binary coding, where each digit in hexadecimal corresponds to four binary digits. In comparison, octal uses a three-bit binary system.
ASCII Text:
ASCII (American Standard Code for Information Interchange) is a widely used character encoding standard, originating from telegraphic codes. It serves as a text encoding method extensively employed in electronic communication for text transmission.
The original ASCII encompasses 128 characters, including alphabets, numbers, symbols, and various special characters. Each character in ASCII is assigned a decimal number ranging from 0 to 127. For instance, the ASCII representation of the uppercase letter ‘C’ is 67, and for the lowercase ‘c’, it is 99.
How Hex to ASCII Conversion Works:
Let’s illustrate how the calculator operates with an example of converting Hex to ASCII.
Consider converting the Hexadecimal number ‘456C656374726F6E696373’ into ASCII.
Begin by forming pairs from the right-hand side. If there’s an odd number of digits, append a zero to the left to complete the pair. Then, refer to the ASCII table to determine the corresponding character for each ASCII code.
45 = “E”
6C = “l”
65 = “e”
63 = “c”
74 = “t”
72 = “r”
6F = “o”
6E = “n”
69 = “i”
63 = “c”
73 = “s”
Hence, the text output for the given hex number is “Electronics”.
ASCII to Hex Conversion
Now, for the inverse operation, converting ASCII to Hex, let’s convert the ASCII characters “Electronics” into Hex code. Referring to the ASCII table:
E = 45, l = 6C, e = 65, c = 63, t = 74, r = 72, o = 6F, n = 6E, i = 69, c = 63, s = 73
Thus, the hex number corresponding to the given ASCII string is “456C656374726F6E696373”.
Hex to ASCII Conversion Table:
Decimal | Hexadecimal | Character |
---|---|---|
0 | 00 | NUL |
1 | 01 | SOH |
2 | 02 | STX |
3 | 03 | ETX |
4 | 04 | EOT |
5 | 05 | ENQ |
6 | 06 | ACK |
7 | 07 | BEL |
8 | 08 | BS |
9 | 09 | HT |
10 | 0A | LF |
11 | 0B | VT |
12 | 0C | FF |
13 | 0D | CR |
14 | 0E | SO |
15 | 0F | SI |
16 | 10 | DLE |
17 | 11 | DC1 |
18 | 12 | DC2 |
19 | 13 | DC3 |
20 | 14 | DC4 |
21 | 15 | NAK |
22 | 16 | SYN |
23 | 17 | ETB |
24 | 18 | CAN |
25 | 19 | EM |
26 | 1A | SUB |
27 | 1B | ESC |
28 | 1C | FS |
29 | 1D | GS |
30 | 1E | RS |
31 | 1F | US |
32 | 20 | Space |
33 | 21 | ! |
34 | 22 | “ |
35 | 23 | # |
36 | 24 | $ |
37 | 25 | % |
38 | 26 | & |
39 | 27 | ‘ |
40 | 28 | ( |
41 | 29 | ) |
42 | 2A | * |
43 | 2B | + |
44 | 2C | , |
45 | 2D | – |
46 | 2E | . |
47 | 2F | / |
48 | 30 | 0 |
49 | 31 | 1 |
50 | 32 | 2 |
51 | 33 | 3 |
52 | 34 | 4 |
53 | 35 | 5 |
54 | 36 | 6 |
55 | 37 | 7 |
56 | 38 | 8 |
57 | 39 | 9 |
58 | 3A | : |
59 | 3B | ; |
60 | 3C | < |
61 | 3D | = |
62 | 3E | > |
63 | 3F | ? |
64 | 40 | @ |
65 | 41 | A |
66 | 42 | B |
67 | 43 | C |
68 | 44 | D |
69 | 45 | E |
70 | 46 | F |
71 | 47 | G |
72 | 48 | H |
73 | 49 | I |
74 | 4A | J |
75 | 4B | K |
76 | 4C | L |
77 | 4D | M |
78 | 4E | N |
79 | 4F | O |
80 | 50 | P |
81 | 51 | Q |
82 | 52 | R |
83 | 53 | S |
84 | 54 | T |
85 | 55 | U |
86 | 56 | V |
87 | 57 | W |
88 | 58 | X |
89 | 59 | Y |
90 | 5A | Z |
91 | 5B | [ |
92 | 5C | \ |
93 | 5D | ] |
94 | 5E | ^ |
95 | 5F | _ |
96 | 60 | ` |
97 | 61 | a |
98 | 62 | b |
99 | 63 | c |
100 | 64 | d |
101 | 65 | e |
102 | 66 | f |
103 | 67 | g |
104 | 68 | h |
105 | 69 | i |
106 | 6A | j |
107 | 6B | k |
108 | 6C | l |
109 | 6D | m |
110 | 6E | n |
111 | 6F | o |
112 | 70 | p |
113 | 71 | q |
114 | 72 | r |
115 | 73 | s |
116 | 74 | t |
117 | 75 | u |
118 | 76 | v |
119 | 77 | w |
120 | 78 | x |
121 | 79 | y |
122 | 7A | z |
123 | 7B | { |
124 | 7C | | |
125 | 7D | } |
126 | 7E | ~ |
127 | 7F | DEL |