⚡ Free ASCII Hex Converter

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.

✓ Free ✓ No sign-up ✓ 2-digit hex bytes ✓ Character mapping
TXT→HEX
ASCII → Hex
Ready
Characters → hex bytes
Enter standard ASCII characters with code values from 0 through 127.
Try:
✓ Hexadecimal Result
Two-digit hexadecimal byte for each ASCII character
Characters 0
Hex Bytes 0
Hex Digits 0
Character mapping:

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

Enter ASCII text

Type one character, a word, a sentence, numbers, spaces, or punctuation.

Convert the characters

BinaryCon reads the numeric ASCII code assigned to every character.

Convert each code to hexadecimal

Each ASCII numeric value is represented as a two-digit uppercase hex byte.

Review the mapping

For shorter text, the tool shows the character, decimal value, and hex code.

Copy the hex output

Use the result in programming, debugging, networking, coursework, data inspection, or another BinaryCon tool.

Worked Example: Convert A to Hex

Uppercase A has ASCII decimal code: A → 65 Convert decimal 65 to hexadecimal: 65₁₀ = 41₁₆ Therefore: A → 41

Worked Example: Convert ABC to Hex

ASCII decimal values: A → 65
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
H724801001000
e1016501100101
l1086C01101100
l1086C01101100
o1116F01101111
Final hex output: 48 65 6C 6C 6F

Common ASCII to Hex Values

Character Decimal Hex
space3220
!3321
3422
#3523
04830
14931
95739
A6541
Z905A
a9761
z1227A
?633F

ASCII Letters A–Z in Hex

Letter Hex Letter Hex
A41N4E
B42O4F
C43P50
D44Q51
E45R52
F46S53
G47T54
H48U55
I49V56
J4AW57
K4BX58
L4CY59
M4DZ5A

ASCII Letters a–z in Hex

Letter Hex Letter Hex
a61n6E
b62o6F
c63p70
d64q71
e65r72
f66s73
g67t74
h68u75
i69v76
j6Aw77
k6Bx78
l6Cy79
m6Dz7A

ASCII Numbers 0–9 in Hex

Character ASCII Decimal Hex
04830
14931
25032
35133
45234
55335
65436
75537
85638
95739

Why Character “5” Is Hex 35

The text character 5 should not be confused with the numeric value five.

Mathematical decimal 5: 5₁₀ = 5₁₆ ASCII text character “5”: “5” → ASCII decimal 53 → hex 35

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.

space → 32 → 20

This means a phrase such as A B becomes:

A → 41
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.

2 hex digits × 4 bits = 8 bits

Standard ASCII values technically require only seven significant bits, but displaying every code as a two-digit hex byte keeps output consistent.

ASCII TAB decimal 9 → hex 09
ASCII A decimal 65 → hex 41

ASCII Hex Control Codes

Some standard ASCII values represent controls rather than printable characters.

Control Decimal Hex Meaning
NUL000Null
BEL707Bell
BS808Backspace
TAB909Horizontal tab
LF100ALine feed
CR130DCarriage return
ESC271BEscape
DEL1277FDelete

ASCII Hex vs Binary vs Decimal

Character Decimal Hex Binary
A654101000001
B664201000010
a976101100001
0483000110000
space322000100000
!332100100001

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 → ASCII 41 hex
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.

Important: this page intentionally handles standard ASCII. For arbitrary Unicode characters, use a Unicode-aware hexadecimal converter.

ASCII to Hex Examples

Text Hex Output
A41
ABC41 42 43
Hi48 69
Hi!48 69 21
Hello48 65 6C 6C 6F
World57 6F 72 6C 64
Binary42 69 6E 61 72 79
12331 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

Converting a character as a mathematical number

Text character “5” maps to ASCII hex 35, not numeric hex 5.

Dropping leading zeros

Byte-oriented output should preserve two digits. For example, TAB is 09, not merely 9.

Ignoring spaces

Space is a real character with ASCII hexadecimal code 20.

Assuming every Unicode character is ASCII

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.

Scroll to Top