ASCII to Hex Converter
Convert ASCII text to hexadecimal byte values instantly. Enter letters, numbers, spaces, punctuation, or other standard ASCII characters to see the exact two-digit hex code for every character.
What Is an ASCII to Hex Converter?
An ASCII to hex converter changes text characters into the hexadecimal values of their ASCII character codes. Every standard ASCII character has a numeric value between decimal 0 and 127.
That decimal code can also be written in hexadecimal. For example,
uppercase A has decimal ASCII value 65, and decimal 65 is hexadecimal
41. Therefore A is represented as hex 41.
BinaryCon converts every character independently and displays each value as a two-digit hexadecimal byte so character boundaries remain clear.
ASCII Character
A visible symbol or control code with a defined numeric ASCII value.
Hexadecimal Byte
The same numeric code displayed in base 16, normally as two hex digits.
How to Use the ASCII to Hex Converter
Type one character, a word, a sentence, numbers, spaces, or punctuation.
BinaryCon reads the numeric ASCII code assigned to every character.
Each ASCII numeric value is represented as a two-digit uppercase hex byte.
For shorter text, the tool shows the character, decimal value, and hex code.
Use the result in programming, debugging, networking, coursework, data inspection, or another BinaryCon tool.
Worked Example: Convert A to Hex
Worked Example: Convert ABC to Hex
B → 66
C → 67 Convert each decimal code to hex: 65 → 41
66 → 42
67 → 43 Final result: ABC → 41 42 43
Example: Convert Hello to Hex
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| H | 72 | 48 | 01001000 |
| e | 101 | 65 | 01100101 |
| l | 108 | 6C | 01101100 |
| l | 108 | 6C | 01101100 |
| o | 111 | 6F | 01101111 |
Common ASCII to Hex Values
| Character | Decimal | Hex |
|---|---|---|
| space | 32 | 20 |
| ! | 33 | 21 |
| “ | 34 | 22 |
| # | 35 | 23 |
| 0 | 48 | 30 |
| 1 | 49 | 31 |
| 9 | 57 | 39 |
| A | 65 | 41 |
| Z | 90 | 5A |
| a | 97 | 61 |
| z | 122 | 7A |
| ? | 63 | 3F |
ASCII Letters A–Z in Hex
| Letter | Hex | Letter | Hex |
|---|---|---|---|
| A | 41 | N | 4E |
| B | 42 | O | 4F |
| C | 43 | P | 50 |
| D | 44 | Q | 51 |
| E | 45 | R | 52 |
| F | 46 | S | 53 |
| G | 47 | T | 54 |
| H | 48 | U | 55 |
| I | 49 | V | 56 |
| J | 4A | W | 57 |
| K | 4B | X | 58 |
| L | 4C | Y | 59 |
| M | 4D | Z | 5A |
ASCII Letters a–z in Hex
| Letter | Hex | Letter | Hex |
|---|---|---|---|
| a | 61 | n | 6E |
| b | 62 | o | 6F |
| c | 63 | p | 70 |
| d | 64 | q | 71 |
| e | 65 | r | 72 |
| f | 66 | s | 73 |
| g | 67 | t | 74 |
| h | 68 | u | 75 |
| i | 69 | v | 76 |
| j | 6A | w | 77 |
| k | 6B | x | 78 |
| l | 6C | y | 79 |
| m | 6D | z | 7A |
ASCII Numbers 0–9 in Hex
| Character | ASCII Decimal | Hex |
|---|---|---|
| 0 | 48 | 30 |
| 1 | 49 | 31 |
| 2 | 50 | 32 |
| 3 | 51 | 33 |
| 4 | 52 | 34 |
| 5 | 53 | 35 |
| 6 | 54 | 36 |
| 7 | 55 | 37 |
| 8 | 56 | 38 |
| 9 | 57 | 39 |
Why Character “5” Is Hex 35
The text character 5 should not be confused with the numeric
value five.
This difference matters in programming because a number stored as text consists of character codes until it is parsed into a numeric value.
What Is a Space in Hex ASCII?
The standard ASCII space character has decimal value 32.
Decimal 32 is hexadecimal 20.
This means a phrase such as A B becomes:
space → 20
B → 42
A B → 41 20 42
Why ASCII Hex Values Usually Use Two Digits
One byte contains eight bits, and one hexadecimal digit represents four bits. Therefore two hexadecimal digits represent one full byte.
Standard ASCII values technically require only seven significant bits, but displaying every code as a two-digit hex byte keeps output consistent.
ASCII A decimal 65 → hex 41
ASCII Hex Control Codes
Some standard ASCII values represent controls rather than printable characters.
| Control | Decimal | Hex | Meaning |
|---|---|---|---|
| NUL | 0 | 00 | Null |
| BEL | 7 | 07 | Bell |
| BS | 8 | 08 | Backspace |
| TAB | 9 | 09 | Horizontal tab |
| LF | 10 | 0A | Line feed |
| CR | 13 | 0D | Carriage return |
| ESC | 27 | 1B | Escape |
| DEL | 127 | 7F | Delete |
ASCII Hex vs Binary vs Decimal
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| B | 66 | 42 | 01000010 |
| a | 97 | 61 | 01100001 |
| 0 | 48 | 30 | 00110000 |
| space | 32 | 20 | 00100000 |
| ! | 33 | 21 | 00100001 |
ASCII vs UTF-8 Hex
UTF-8 preserves all standard ASCII values exactly. This means ASCII text characters from decimal 0 through 127 use the same byte values when encoded as UTF-8.
A → UTF-8 41 hex
Characters outside ASCII can require two, three, or four UTF-8 bytes. For example, emoji and many non-English characters do not fit into one standard ASCII byte.
ASCII to Hex Examples
| Text | Hex Output |
|---|---|
| A | 41 |
| ABC | 41 42 43 |
| Hi | 48 69 |
| Hi! | 48 69 21 |
| Hello | 48 65 6C 6C 6F |
| World | 57 6F 72 6C 64 |
| Binary | 42 69 6E 61 72 79 |
| 123 | 31 32 33 |
Where ASCII to Hex Conversion Is Useful
Programming
Convert text into byte-oriented hex values for literals, buffers, test cases, debugging, and low-level data work.
Networking
Text payloads may be displayed as hexadecimal bytes in packet captures and protocol analysis tools.
Embedded systems
Serial messages and device commands may be inspected as ASCII byte values represented in hexadecimal.
Computer science education
ASCII-to-hex conversion connects human-readable text with decimal codes, binary bytes, and machine-oriented notation.
Common ASCII to Hex Conversion Mistakes
Text character “5” maps to ASCII hex 35, not numeric hex 5.
Byte-oriented output should preserve two digits. For example, TAB is
09, not merely 9.
Space is a real character with ASCII hexadecimal code 20.
Standard ASCII is limited to codes 0 through 127. Other characters need Unicode encodings such as UTF-8.
Related BinaryCon Tools
Reverse this conversion or work with ASCII text in binary, decimal, octal, plain text, or Unicode formats.
ASCII to Hex Converter FAQs
How do you convert ASCII to hexadecimal?
Find the decimal ASCII code of each character and convert that code to base 16. Display the result as a two-digit byte. For example, A has decimal code 65, which is hex 41.
What is A in ASCII hex?
Uppercase A has ASCII decimal code 65 and hexadecimal value 41.
What is lowercase a in hex ASCII?
Lowercase a has ASCII decimal value 97 and hexadecimal value 61.
What is ABC in hexadecimal ASCII?
A is 41, B is 42, and C is 43. Therefore ABC → 41 42 43.
What is Hello in hex?
Standard ASCII text Hello becomes 48 65 6C 6C 6F in hexadecimal byte notation.
What is a space in ASCII hex?
A normal ASCII space has decimal value 32 and hexadecimal code 20.
What is ASCII character 0 in hex?
Character “0” has ASCII decimal value 48 and hexadecimal code 30.
What is ASCII character 9 in hex?
Character “9” has ASCII decimal value 57 and hexadecimal code 39.
What is newline in ASCII hexadecimal?
The ASCII line feed character has decimal code 10 and hexadecimal code 0A.
What is carriage return in ASCII hex?
Carriage return has decimal ASCII code 13 and hexadecimal code 0D.
Why are ASCII hex values shown with two digits?
Two hexadecimal digits represent one 8-bit byte. Using two digits keeps every character aligned to the same byte width, including values below 16.
Is ASCII hex the same as UTF-8 hex?
For standard ASCII characters, yes. UTF-8 preserves byte values 00 through 7F exactly. Non-ASCII Unicode characters may require multiple UTF-8 bytes.
Can I convert a full sentence to hexadecimal?
Yes. Each ASCII character, including spaces and punctuation, is converted into its own two-digit hexadecimal byte.
Does this converter support emoji?
No. Emoji are Unicode characters and are outside the standard ASCII range. Use a Unicode-to-hex or UTF-8-aware converter for emoji.
Can I reverse the result back to text?
Yes. Use BinaryCon’s Hex to ASCII converter to decode hexadecimal byte
pairs such as 48 65 6C 6C 6F back into readable text.
Convert ASCII Text to Hex Instantly
Use BinaryCon to convert ASCII characters into hexadecimal bytes, inspect character mappings, verify common text-to-hex values, and use free encoding tools without registration.