Skip to tool

Python bytes.fromhex() Online

Decode hexadecimal text to bytes/string.

The output updates as you type. The tool processes input in your browser.

Worked example

Enter hexadecimal byte pairs. The result interprets the bytes as UTF-8, with replacement characters for invalid UTF-8.

Sample input
48656c6c6f
Sample output
Hello

Using this operation in Python

The interactive result uses JavaScript. Python str stores Unicode text. Encode to bytes when an API expects UTF-8 or another byte representation.

Python reference