Developer tools TOOL

Text ↔ hexadecimal

Convert between text and hexadecimal UTF-8 bytes.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

No account. No uploads.

Text ↔ hexadecimal · How to use

Convert between text and hexadecimal UTF-8 bytes.

Example

A → 41

Things to know

Uses hexadecimal notation for UTF-8 bytes. Integer base conversion is a different tool.

Output options

Operation
Encode · Decode

Your files and results are never sent to a server. Everything is processed in this browser.

How to convert a string to hex bytes and back

Find out which characters the hex bytes in a packet dump, hex editor, or log represent, or turn a string into hex for a test. Each byte is separated by a space, so you can see how many bytes every character takes.

When to use this tool

  • Read bytes from a hex dump as a string
  • Inspect the real bytes behind garbled text
  • Create a hex string for a test
  • Check the UTF-8 bytes of symbols and emoji

Step-by-step instructions

  1. Enter the text or hex bytes you want to convert.
  2. Under Operation, choose Encode (text to hex) or Decode (hex to text).
  3. Choose Convert.
  4. Copy the result or download it as text-hex.txt.

Frequently asked questions

Can I decode hex without spaces, such as 48656c6c6f?

Bytes must be separated by spaces, line breaks, or commas. Each group is read as one or two digits, so split continuous hex into pairs like 48 65 6c 6c 6f before decoding.

Can I enter values like 0x41 or %C3%A9?

The 0x prefix and the % sign are not accepted; enter only digits and the letters a to f, such as 41. Values with % signs are URL encoding, so decode them with the URL encode and decode tool instead.

Is the hex output uppercase or lowercase?

Encoded output uses two lowercase digits, such as 6c. When decoding, 6C and 6c are read as the same value, so either case works. For example, é is the two bytes c3 a9.

Save only the tools you need.