How to use the Hex converter tool
- Select Encode in Operation for text to hex, or Decode for hex to text.
- Fill in Text or encoded value. For decoding, paste hex digits in pairs; separators are optional.
- Select Convert, or select Example to see the hex bytes of Hello, world! first.
- Find lowercase, space-separated bytes in the Result box after encoding, or the decoded text after decoding.
- Select Copy, or use Download after decoding to get the bytes as decoded.bin.
How text becomes hexadecimal
Hexadecimal is base 16. It uses the digits 0 to 9 and the letters a to f, and one hex digit stands for exactly four bits. A byte is eight bits, so every byte is written as two hex digits from 00 to ff. That fixed relation is why hex is the usual way to show raw bytes in debuggers, packet captures and hash values.
Text has to become bytes before it can be shown in hex, and this tool uses UTF-8 for that step. ASCII characters take one byte each. Accented Latin letters take two, most CJK characters and the euro sign take three, and most emoji take four.
Hex converter examples
The capital H has code 72, which is 4 × 16 + 8, so it is written 48. The comma is 2c and the space is 20. Characters outside ASCII expand into several bytes: the euro sign, U+20AC, becomes e2 82 ac. The last line decodes a C-style byte list.
Hello, world! → 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21
€ → e2 82 ac
0x48, 0x69 → HiHex formats the decoder accepts
Before decoding, the tool removes every 0x marker, all whitespace and all commas, then requires an even number of hex digits. That covers most ways bytes are written in code and logs.
- Continuous digits: 48656c6c6f
- Space-separated pairs: 48 65 6c 6c 6f
- Uppercase or mixed case: 48 65 6C 6C 6F
- C-style lists: 0x48, 0x65, 0x6c, 0x6c, 0x6f
- Hex dumps wrapped over several lines, without offsets or an ASCII column
Why hex decoding fails or shows a dump
The message Enter one or more complete hexadecimal bytes means the cleaned input was empty, had an odd number of digits, or contained something that is not a hex digit. Colon-separated bytes such as 48:65, backslash escapes such as \x48 and percent signs are not removed for you, so strip them first.
When decoding succeeds but the bytes are not valid UTF-8, for example ff fe 00 or a hash, the Result box shows the byte count and a hex dump of the first 256 bytes. The Download link still contains every byte, so you can save keys, file headers or packets copied from a hex view.
One detail: a UTF-8 byte-order mark (ef bb bf) at the start is not shown in the decoded text, but it remains in the downloaded file.
Frequently asked questions
How do I convert hex to text?
Set Operation to Decode, paste the hex digits and select Convert. The tool pairs the digits into bytes and reads them as UTF-8. Spaces, commas, line breaks and 0x prefixes between the bytes are ignored.
Why is the hex output longer than my text?
Each byte needs two hex digits, so hex is at least twice the size of the data, and the tool adds a space between bytes. Non-ASCII characters add more because UTF-8 stores them in two to four bytes.
Does it convert hex numbers to decimal?
No. This tool converts between text and byte sequences. It does not read the digits as one number, so 41 decodes to the letter A, not to the number 65. Use a number base converter for arithmetic values.
Is the hex output uppercase or lowercase?
Encoding prints lowercase digits with one space between bytes. Decoding accepts uppercase, lowercase or a mix of both.
What encoding is used for the text?
UTF-8 in both directions. Encoding writes the UTF-8 bytes of your text, and decoding shows text only when the bytes form valid UTF-8. Hex taken from UTF-16 or Latin-1 data will not read correctly.
Is the text I convert kept private?
Yes. The page converts the value with JavaScript on your device and makes no request with your input. Clearing the form or closing the tab discards it.