Skip to content
CalcTide logo
Tech

Hex to Text Converter

The hex bytes 48 65 6c 6c 6f decode to the word Hello. This hex to text converter translates hexadecimal byte strings into readable text and back again. It accepts hex with or without spaces, commas, or 0x prefixes, handles both cases, and decodes full UTF-8, so accented characters and symbols survive the round trip.

TechBy

Quick answer

Computers store text as bytes, and hex is a compact way to write those bytes, two hex digits per byte.

Output

Hello

Bytes

5

What this tells you

  • Computers store text as bytes, and hex is a compact way to write those bytes, two hex digits per byte.
  • The letter H is byte 72 in decimal, which is 48 in hex.
  • Decoding reads each hex pair, converts it to a byte, and interprets the bytes as UTF-8 text.
  • Encoding runs the same steps backward, text to bytes to hex pairs.

How to Use

  1. 1Pick a direction, hex to text or text to hex.
  2. 2Paste your input. Hex can include spaces, commas, or 0x prefixes, which are stripped automatically.
  3. 3Read the converted output and the byte count.
  4. 4If hex refuses to decode, check for an odd digit count or bytes that are not valid UTF-8.

How It Works

Formula

each byte = two hex digits, text = UTF-8(bytes)

Hexadecimal is base 16, using 0-9 and a-f, and one byte (0-255) always fits in exactly two hex digits. The pair 48 means 4 x 16 + 8 = 72, which is the UTF-8 code for H. A hex string decodes by splitting into pairs, converting each to a byte, and reading the byte sequence as UTF-8, the encoding behind almost all modern text.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Decode a classic

Value48 65 6c 6c 6f
Directionhex to text
ResultHello

Five bytes, one per letter: 48=H, 65=e, 6c=l, 6c=l, 6f=o.

Encode a word

Valuecat
Directiontext to hex
Result63 61 74

c is 0x63, a is 0x61, t is 0x74.

Decode with 0x prefixes

Value0x57 0x6f 0x77
Directionhex to text
ResultWow

Prefixes and spacing are cleaned up before decoding.

Common Characters in Hex

UTF-8 byte values for everyday characters.

CharacterHexDecimal
A4165
a6197
03048
space2032
!2133
~7e126

Common mistakes

  • Pasting an odd number of hex digits. Bytes need two digits each, so a lone trailing digit means something got cut off.
  • Confusing hex text encoding with hex numbers. 48 as a hex number is 72, but as an encoded byte it is the letter H.
  • Expecting arbitrary bytes to decode. Random hex often is not valid UTF-8 text, and the converter reports it rather than guessing.

Frequently Asked Questions

Split the hex into two-digit pairs, convert each pair to its byte value, and read the bytes as UTF-8. The pairs 48 65 6c 6c 6f become Hello. This converter does all three steps at once.
It is the word Hello in UTF-8 bytes written as hex: H=48, e=65, l=6c, l=6c, o=6f.
Either the digit count is odd, a character outside 0-9 and a-f slipped in, or the bytes are not valid UTF-8 text, which happens with binary data or other encodings.
No. 6C and 6c are the same byte. Output uses lowercase by convention.
Yes. UTF-8 encodes them as multi-byte sequences. An accented e takes 2 bytes and most emoji take 4, and both directions handle that automatically.
No. The conversion runs entirely in your browser.
It estimates hex to text converter outputs using the visible inputs and formula assumptions on this page.

Explore More in Tech