Hex decoder
This hex decoder reads pairs of hexadecimal digits and turns them back into readable text. It is useful for reading hex dumps, log output, packet data and values stored as hex in databases.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Hex decoding reads the digits in pairs, turns each pair into one byte, and then reads the bytes as UTF-8 text. An odd number of digits means a byte is incomplete, so it is rejected. Bytes that are not valid UTF-8 can be shown as hex instead of text.
FormulaTwo hex digits = one byte; hex value = first digit x 16 + second digit
Worked example48 65 6c 6c 6f 2c 20 63 61 66 c3 a9 is 12 bytes that decode to the text Hello, café, where the last two bytes c3 a9 form the single character é.
Example
48 65 6c 6c 6f 2c 20 63 61 66 c3 a9
Hello, café
How to use the hex decoder
- Paste hex into the Hexadecimal bytes box, with or without spaces.
- Set Show as to Text to read it, or Hex bytes to get clean hex.
- The result updates as you type. Press Run any time to refresh it.
- Press Copy result or Download the output.
How it works
Spaces, tabs and line breaks between digits are ignored, and uppercase or lowercase letters both work.
The input must contain complete pairs. An odd number of digits is rejected.
Prefixes like 0x and separators like commas, colons or dashes are rejected. Remove them first.
If the bytes are not valid UTF-8 text, you get an error. Set Show as to Hex bytes to get compact lowercase hex instead.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
Why do I get an error about complete pairs?
Each byte is two hex digits. Check for a missing digit, a 0x prefix, or separators other than spaces and line breaks.
What does not valid UTF-8 text mean?
The bytes do not form UTF-8 text. They may be binary data, or text saved in a different encoding such as Latin-1.
What does the Hexadecimal bytes output do?
It removes the whitespace and returns the same bytes as one continuous lowercase string, which is handy for cleaning up copied hex.
Is my data sent anywhere?
No. Decoding happens in your browser.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools