Home Conversion Number conversion Text to hex

ASCII Text to Hex Converter

Enter ASCII/Unicode text and press Convert (e.g. enter "Hello" to get "48 65 6C 6C 6F"):

Paste text or drop a text file

How to Convert Text to Hex

To convert ASCII text to hexadecimal:

  1. Get each character from the text string
  2. Look up its ASCII decimal code from the ASCII table
  3. Convert the decimal value to a 2-digit hex number
  4. Continue with each character

Example

Convert "Hello" to hex:

'H' = 72 = 4816
'e' = 101 = 6516
'l' = 108 = 6C16
'l' = 108 = 6C16
'o' = 111 = 6F16

Result: 48 65 6C 6C 6F

How to Use ASCII to Hex Converter

  1. Paste text in the input box (or open a file).
  2. Select output delimiter (space, comma, none, etc.).
  3. Optionally enable the 0x prefix.
  4. Press the Convert button.

ASCII Text to Hex Conversion Table

Printable ASCII characters with their hex, decimal, and binary equivalents:

CharASCIIHexBinaryCharASCIIHexBinary

See Also

Number Conversion