Hexadecimal ↔ Text Converter

Convert between hexadecimal and text formats instantly. Perfect for developers, programmers, and anyone working with hex-encoded data.

Hexadecimal ↔ Text Converter

Convert text characters to their hexadecimal representation. Each character becomes 2 hex digits.

'H'
ASCII: 72
0x48
'e'
ASCII: 101
0x65
'l'
ASCII: 108
0x6C
'l'
ASCII: 108
0x6C
'o'
ASCII: 111
0x6F
' '
ASCII: 32
0x20
'W'
ASCII: 87
0x57
'o'
ASCII: 111
0x6F
'r'
ASCII: 114
0x72
'l'
ASCII: 108
0x6C
Mode: Text → Hex
Input Length: 12
Format: Spaced

💡 Quick Reference:

Common Characters
'A' = 41
'a' = 61
'0' = 30
' ' = 20
Special Chars
'!' = 21
'@' = 40
'#' = 23
'$' = 24
Control Chars
\\n = 0A
\\r = 0D
\\t = 09
\\0 = 00
Hex Digits
0-9 = 0-9
A-F = 10-15
Case insensitive
Base-16 system

Understanding Hexadecimal Encoding

What is Hexadecimal?

Hexadecimal (base-16) is a numbering system that uses 16 symbols: 0-9 and A-F. Each hex digit represents 4 bits, making it a convenient way to represent binary data in a more compact and readable format.

0-9Represents 0-9
ARepresents 10
BRepresents 11
CRepresents 12
DRepresents 13
ERepresents 14
FRepresents 15

Text to Hex Conversion

Each character in text has an ASCII value, which can be represented in hexadecimal. For example, the letter 'A' has ASCII value 65, which is 41 in hex.

CharacterASCIIHex
'A'6541
'a'9761
'0'4830
' '3220
'!'3321

Common Use Cases & Examples

Simple Text

Text:
"Hello"
Hex:
48656C6C6F

Numbers & Symbols

Text:
"123!@#"
Hex:
31323321402A

Mixed Case

Text:
"HeLLo"
Hex:
48654C4C6F

Programming & Development Uses

Common Applications

  • Color Codes: #FF0000 (red), #00FF00 (green)
  • Memory Addresses: 0x7FFFFFFF
  • File Signatures: Magic numbers in file headers
  • Checksums: MD5, SHA hashes
  • Network Data: MAC addresses, IP debugging
  • Encoding: URL encoding, data serialization

Developer Benefits

  • Compact representation: Less space than binary
  • Human readable: Easier than raw binary
  • Byte alignment: Each byte = 2 hex digits
  • Debugging: Inspect memory contents
  • Data transfer: Safe text representation
  • Standards compliance: Many protocols use hex

Hexadecimal Formats & Conventions

Common Formatting Styles:

Continuous (No Spaces)
48656C6C6F
Most compact, common in programming
Space Separated
48 65 6C 6C 6F
Easier to read, byte boundaries clear
Prefixed (0x)
0x48656C6C6F
C-style notation, indicates hex
Colon Separated
48:65:6C:6C:6F
Common in MAC addresses

🎯 Conversion Tips & Best Practices

Text to Hex:

  • • Each character becomes 2 hex digits
  • • Case matters: 'A' ≠ 'a' in ASCII
  • • Special characters have unique codes
  • • UTF-8 characters may use multiple bytes
  • • Spaces and newlines are also encoded

Hex to Text:

  • • Must have even number of hex digits
  • • Invalid hex chars will cause errors
  • • Some hex values may not display properly
  • • Control characters might be invisible
  • • Check for valid ASCII/UTF-8 ranges