BinaryConverter

Text to Hex Converter

Convert text to hexadecimal instantly — type on the left and the result appears on the right. Everything runs in your browser, nothing is uploaded.

How to convert text to hex

Every character has an ASCII code, and that code in base 16 is its hex byte. Converting text to hex gives two hex digits per character.

Method: one byte per character, using the ASCII code that maps numbers to characters.

  1. Take each characterWork through the text one character at a time.
  2. Find its ASCII codeLook up the character's code — for example A is 65.
  3. Write the code as hexWrite each ASCII code as two hexadecimal digits.

Examples Hi = 48 69A = 41

Text to Hex Table

Common text values with their hexadecimal equivalents.

Text to Hex conversion table
TextHexadecimal
A41
B42
C43
a61
b62
c63
030
131
939
!21
?3F
@40

Frequently asked questions

How do you convert text to hex?

Take each character, find its ASCII code, and write that code as two hex digits. 'H' is 72, which is 48 in hex.

What is 'A' in hex?

The letter A is 41 in hex (ASCII 65).

Why two hex digits per character?

One byte (0–255) always fits in exactly two hex digits, from 00 to FF.