Shard Tools

Hex to Text

Convert hexadecimal back to text in your browser.

Maintained by Roshan.

Use Hex to Text

Converts hexadecimal to text in this tab, with nothing sent anywhere.

Runs entirely on your deviceThe conversion happens in this browser tab. Nothing you type is uploaded, logged or stored, which is worth knowing for anything you would not paste into a search box.

Explore developer and data tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all developer and data tools

About Hex to Text

Decoding hex back into text is the everyday companion to reading it, and the practical challenge is that hex arrives in many shapes. A debugger prints it spaced; a config file has it run together; a programming language writes each byte with a 0x prefix. A converter that only accepts one of these forces you to reformat before you can even start. This tool accepts all of them, strips the noise, and decodes the bytes as UTF-8, so a value copied from almost anywhere works without fiddling. The one firm requirement is an even number of digits, because each byte is exactly two, and an odd count means a digit is missing - which the tool reports rather than silently dropping.

Using Hex to Text

  1. Prefixes and separators are stripped first - 0x markers, spaces, commas - so hex from a debugger, a config file or source code all work.
  2. The remaining digits are validated as hexadecimal, and an odd count is refused because two digits make one byte.
  3. Each pair of digits becomes one byte, and the bytes are decoded together as UTF-8.
  4. A multi-byte character encoded across several byte pairs reassembles into the single character it represents.
  5. The result is the original text, whatever formatting the hex arrived in.

Where hex to text helps

Reading a hex dump

Paste it however it is formatted - spaced or not, with or without 0x - and it decodes. No reformatting first.

Recovering a hex-encoded value

A value stored as hex in a log or a database converts straight back to its readable form.

Before you use the result

Questions about Hex to Text

What formats of hex are accepted?

Spaced, run-together, comma-separated and 0x-prefixed all work. The noise is stripped before decoding.

Why the even-number-of-digits rule?

Each byte is exactly two hex digits. An odd count means one is missing, so the tool reports it rather than guessing.

Does it handle non-English text?

Yes. The bytes are decoded as UTF-8, so multi-byte characters reassemble correctly.

What if there is a non-hex character?

It is refused with a message, rather than skipped, so you are not handed silently wrong text.

Related tools

Text to Hex

Convert text to hexadecimal in your browser. Each character becomes its UTF-8 bytes in hex.

Binary to Text

Convert binary back to readable text in your browser, decoding the bytes as UTF-8.

Hex to Decimal

Convert a hexadecimal number to decimal in your browser, with full precision for large values.

Base32 Decode

Decode Base32 back to text in your browser, tolerating missing padding and mixed case.