Development

UTF-8 ↔ Hex Converter

Encode UTF-8 text as hexadecimal bytes or decode a valid UTF-8 byte sequence.

01Input and settings

The calculation runs in your browser. You can use the tool without installing software.

02Result

Waiting for input
Waiting for input

Enter your values or load the example to see the result here.

About this tool: UTF-8 ↔ Hex Converter

Encode UTF-8 text as hexadecimal bytes or decode a valid UTF-8 byte sequence.

UTF-8 encodes a character as one to four bytes, so an emoji produces several hexadecimal pairs. Whitespace between byte pairs is ignored when decoding. Invalid hexadecimal or invalid UTF-8 is rejected instead of silently replacing characters.

How the calculation works

UTF-8 bytes ↔ hexadecimal

Worked example

Input
A😀
Mode
Encode
41 f0 9f 98 80

Questions and answers

What does this tool do?

Encode UTF-8 text as hexadecimal bytes or decode a valid UTF-8 byte sequence. UTF-8 encodes a character as one to four bytes, so an emoji produces several hexadecimal pairs. Whitespace between byte pairs is ignored when decoding. Invalid hexadecimal or invalid UTF-8 is rejected instead of silently replacing characters.

What affects precision and input format?

Text operations depend on the selected format. Check the supported characters and syntax in the description and example.

Where are the calculations performed?

The calculation runs in your browser. You can use the tool without installing software.

Comments (0)

Share your thoughts — please be polite and stay on topic.

No comments yet. Leave a comment — share your opinion!

To leave a comment, please log in.

Log in to comment