Convert text to hexadecimal byte representation

Encode text or bytes as two hexadecimal digits per byte.

freeworks offlinenothing uploaded
ToolHex Encode
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Each input byte becomes two hexadecimal characters with high nibble before low nibble; decoding reverses pairs into bytes. Text is converted through UTF-8 rather than treating Unicode code points as bytes directly.

  • Two digits per byte are easy to inspect.
  • Uppercase or lowercase remains interoperable.

Worked example

Simple Text
Convert ASCII text to its hexadecimal byte representation
Input
											Hello
										
Output
												48656c6c6f
											

When to use this

Hash displays, binary logs, and key configuration encode hex.

Edge cases

  • An odd digit count cannot form complete bytes.
  • Case changes text but not decoded bytes.
  • The UTF-8 bytes of é differ from its Unicode code-point number.

References