Hex Input

String Output

What Is Hex to String Conversion?

Hexadecimal (hex) is a base-16 number system that uses the digits 0–9 and letters A–F. Each hex byte represents a value from 0 to 255, which maps directly to a character in the ASCII character table or Unicode code point. For example, the hex value 48 is decimal 72, which is the letter "H". Hex encoding is everywhere in computing: HTTP headers, memory dumps from debuggers, network packet captures in tools like Wireshark, binary file inspection with a hex editor, and cryptographic outputs from hash functions. This tool takes a sequence of hex values (separated by spaces, commas, newlines, or 0x prefixes) and decodes them back to the original string. It's useful when reading log output from embedded systems, decoding binary protocol data, or verifying that a hex dump actually contains the expected content. The optional character mapping table shows each hex value paired with its decoded character, which is handy for debugging or teaching encoding concepts. For a deeper look at how hex encoding works at the byte level, see the MDN Hexadecimal reference.

How to Use

1

Paste your hex values

Type or paste hex codes into the input box. You can use spaces, commas, or newlines as separators. Values like "48 65 6C", "0x48,0x65,0x6C", and "48\n65\n6C" all work, and so does an unspaced run like "48656C".

2

Check the decoded characters

The converted string appears in the output panel as you type. Invalid hex values are replaced with a "?" placeholder so you can spot them easily.

3

Copy or download the result

Copy puts the decoded text on your clipboard and Download writes it to hex-decoded.txt. Tick "Show character table" to list each character next to the bytes it came from, so E2 82 AC sits on one row as €. A control character such as a newline shows as its decimal code in brackets, like [10].

Example

Here's a quick example: the hex sequence "48 69" decodes to the two-character string "Hi".

Hex codes → String

Hex Input
48 65 6C 6C 6F 20 57 6F 72 6C 64

→ String Output

String Output
Hello World

Character mapping:

48 → H
65 → e
6C → l
6C → l
6F → o
20 → (space)
57 → W
6F → o
72 → r
6C → l
64 → d

FAQ

What separators does the converter support?

The converter auto-detects spaces, commas, and newlines. You can also mix them, for example 48,65 6C still parses correctly. Values prefixed with 0x (like 0x48 0x65) are also handled automatically.

What happens with invalid hex values?

Any token that isn't a 1 or 2 digit hex value (0 to FF), or an unspaced run with an even number of digits, is replaced with a ? in the output. The rest of the string still decodes normally, so one bad value won't break the whole result.

Is this the same as decoding an ASCII hex dump?

Yes, for bytes 00 to 7F, which mean the same thing in the ASCII table and in UTF-8. Bytes from 80 up only mean something as part of a UTF-8 sequence, so a lone E9 (é in Latin-1) comes out as the replacement character �. If your dump is Latin-1 or Windows-1252, that is the sign to look for.

Can I decode multi-byte UTF-8 sequences?

Yes. The bytes are decoded together as UTF-8, so E2 82 AC becomes € and F0 9F 98 80 becomes 😀 rather than three or four junk characters. A sequence that is cut short or malformed turns into � instead of stopping the whole decode.

How is hex encoding used in practice?

Hex is used extensively in debugging and low-level development. Memory addresses in C/C++ programs, byte sequences in network protocols, SHA and MD5 hash outputs, color codes in CSS (#ff5733), and file magic bytes are all expressed in hex. Tools like Wireshark display packet payloads in hex, and hex editors let you inspect any binary file at the byte level.

What is the difference between hex and Base64 encoding?

Both are ways to represent binary data as text. Hex uses 2 characters per byte, producing output that is 100% longer than the input. Base64 uses 4 characters for every 3 bytes: about 33% overhead. Hex is more readable for debugging (you can identify byte boundaries immediately), while Base64 is more compact and commonly used in data URIs and email attachments.

Related Tools