ht

HEX to Text

✓ Free & no signup 🔒 Runs 100% in your browser Updated 2026-11-25 Binary Converter Tools

Hex bytes are everywhere a developer looks: packet captures, memory dumps, protocol logs, hex editors, and error messages quoting raw payloads. This tool turns those bytes back into characters. Paste 48 65 6C 6C 6F and Hello appears live as you type. Each two-digit hex pair becomes a byte, and the byte sequence decodes as UTF-8, so accented letters, Chinese characters, and emoji reassemble correctly instead of turning into junk symbols. Everything runs locally in your browser: nothing is uploaded, stored, or logged, and the page needs no signup on any device.

The tool is forgiving about format, because real-world hex rarely arrives tidy. Spaces, commas, and line breaks between pairs are stripped before decoding, so output copied from a wrapped terminal, a CSV export, or a debugger's columnar dump works as-is. Unspaced streams work too, since every byte is exactly two digits wide: 48656C6C6F decodes to Hello identically. Some sources prefix values with 0x, and those markers are handled as well, so pasting from code or documentation usually just works.

One honest expectation to set before you start: hex bytes decode to readable text only when the bytes actually are text. A dump of an image, a compressed archive, or an executable decodes into noise by design, because those bytes were never meant to be characters. Recognizing the difference, clean ASCII pairs versus byte soup, is itself a useful diagnostic skill this tool trains.

What Hex-to-Text Decoding Means

Each hex pair is one byte, a number from 0 to 255. The pair 48 is 4 times 16 plus 8, which is 72, capital H in the ASCII table. The pair 6C is 6 times 16 plus 12, and since hex digit C means 12, the value is 108, lowercase l. That is the entire per-byte mechanism: two digits, weights 16 and 1, one byte.

Bytes become characters through UTF-8, the encoding used by virtually all modern software. Values 0 to 127 map directly to ASCII: 20 is space, 41 is A, 7A is z. Above 127, bytes join multi-byte sequences: C3 A9 assembles into one é, E4 B8 AD into one Chinese character, and four-byte leads assemble emoji. This tool performs genuine UTF-8 decoding rather than mapping each byte to one character, which is the difference between readable output and mojibake for anything beyond plain English.

How to Use This Tool (Step by Step)

  1. Paste your hex into the input area. Spaced, comma-separated, newline-wrapped, unspaced, or 0x-prefixed formats are all accepted.
  2. The decoded text updates live on every keystroke, with no convert button.
  3. If the input contains invalid hex characters or an odd digit count, an error message names the problem instead of guessing.
  4. Copy the result for your report, ticket, or notes.
  5. To verify, paste the decoded text into the companion text-to-hex tool; the original byte pairs should return unchanged.

Worked Examples to Check Against

Verify any row by hand: multiply the first digit by 16, add the second.

Hex inputByte values (decimal)Decoded text
48 65 6C 6C 6F72, 101, 108, 108, 111Hello
48 6972, 105Hi
4F 4B 2179, 75, 33OK!
C3 A9195, 169é (one character, two bytes)
E6 96 87230, 150, 135文 (one character, three bytes)

The last two rows are the interesting ones. Without UTF-8 handling, C3 A9 would render as two junk glyphs; here it shows a single é because the pair is a valid two-byte sequence. The three-byte row works the same way. If your input is ASCII-only, every byte will be in the 20 to 7E range, which is a quick visual filter for whether a dump might contain plain text.

Byte Order: When the Answer Looks Reversed

Occasionally decoded text looks like characters in the wrong order, and byte order is the usual suspect. Network protocols transmit multi-byte numbers in big-endian order, most significant byte first, while many CPUs store them little-endian, least significant first. A four-byte value captured from a packet and read naively on a little-endian machine appears byte-reversed. This matters for numbers, not for text itself: a UTF-8 string's bytes are in a fixed, meaningful order, and a reversed decode of text produces gibberish precisely because the order was wrong.

Practical guidance: when a hex string from a packet capture or file header decodes to near-readable but scrambled output, check whether reversing pairs or four-byte groups helps. If the payload is genuinely text, correct byte order yields clean ASCII immediately. If no ordering produces text, the bytes are probably binary data, and decoding them as text was never the right question.

Common Use Cases

  • Protocol and network debugging: pull the payload bytes from a capture and see instantly whether they contain the ASCII headers you expected.
  • Hex editor work: identify text regions inside binary files, from file format headers to embedded configuration strings.
  • Security analysis: inspect quoted payload bytes from logs or alerts to determine whether they encode instructions, padding, or ordinary text, always as inert display data.
  • Homework and CTF: hex-encoded messages are a staple of beginner challenges, and instant decoding keeps the puzzle chain moving.
  • Data recovery checks: after an encoding accident, decode surviving bytes to see exactly which portion of the message is intact.

How It Works Internally

The decoder normalizes input by stripping separators and optional 0x prefixes, then validates that the remaining string is even-length hex. Each pair converts to a byte: first digit times 16 plus second digit. The byte sequence is then decoded as UTF-8: lead bytes announce sequence length, continuation bytes carry payload bits, and invalid sequences, such as a truncated multi-byte character or a stray continuation byte, produce an explicit error rather than a wrong character. Strict validation matters because a silently dropped byte shifts everything after it and corrupts the remaining message.

Tips and Best Practices

  • Check digit count first on odd-looking results: an odd number of hex digits means a byte was lost in copying, and fixing that beats debugging mystery output.
  • Confirm the payload is really text before decoding; binary bytes produce noise no matter how correct your method is.
  • Round-trip to verify: decode, re-encode with text-to-hex, and compare the pair sequences byte for byte.
  • When decoding from columnar dumps, copy full lines and let the tool strip formatting; manually merging columns is where bytes get dropped.
  • Treat decoded payloads from untrusted sources as data, not commands; display them, analyze them, never paste them into a terminal or interpreter.
  • Decode long dumps in sections if rendering slows; sections split cleanly at pair boundaries since every byte is exactly two digits.

Frequently Asked Questions

What does 48 65 6C 6C 6F decode to?
Hello. Each pair is one byte: 48 is 4 times 16 plus 8, which is 72, capital H; 65 is 101, lowercase e; 6C is 108, lowercase l, appearing twice; and 6F is 111, lowercase o. Without spaces, 48656C6C6F decodes identically because every byte is exactly two hex digits wide. This sequence is the classic worked example in textbooks and protocol documentation, and it doubles as a quick sanity check when testing any new decoder.
How do I convert hex to text by hand?
Split the digits into pairs, then convert each pair to decimal by multiplying the first digit by 16 and adding the second, remembering that A through F mean 10 through 15. The pair 48 is 72, which is capital H in the ASCII table; 69 is 105, lowercase i. Look each value up in an ASCII chart, or treat the whole sequence as UTF-8, where byte values above 127 join multi-byte sequences. Any byte above 7E means the character it belongs to uses more than one byte.
Why does my hex input decode to garbage characters?
Most likely the bytes are not text. Hex of an image, compressed file, or executable is binary data, and decoding it as UTF-8 produces noise by design. If the bytes should be text, check for an odd digit count, which signals a lost byte, or reversed byte order from a little-endian capture, which scrambles sequences. Also confirm the encoding is UTF-8 rather than some legacy code page; different encodings assign different characters to the same byte values, and no tool can infer the right one from bytes alone.
Does hex case or the 0x prefix matter?
Not for the value. Uppercase 6C and lowercase 6c both mean 108, and 0x48 is the same byte as 48; this tool strips the prefixes and handles either case. Case only matters after decoding, in contexts that are case-sensitive, such as search patterns in some tools. The formatting that does matter is completeness: every byte needs both digits, and an odd total digit count means a byte was dropped somewhere, which the tool will flag rather than guess around.
Can hex-to-text decode emoji and non-English characters?
Yes, as long as the input is a valid UTF-8 encoding. Emoji take four bytes, accented letters like é take two, and Chinese, Japanese, Korean, and Arabic characters typically take three, and the decoder reassembles those sequences into single characters. The structural tell: lead bytes in the ranges C2 through DF start two-byte sequences, E0 through EF start three-byte ones, and F0 through F4 start four-byte ones. Naive byte-per-character decoders show junk for the same input, which is why real UTF-8 handling matters.
Is it safe to paste hex data from unknown sources?
Yes. The conversion runs entirely in your browser; the input is treated as characters to decode and displayed as text, never executed, and nothing is uploaded or stored because there is no server. Decoding bytes that happen to represent a program or script displays inert noise, it does not run anything. The sensible precaution is what you do with the output afterward: analyze decoded payloads from untrusted sources as text in a report, and never paste them into a terminal, shell, or interpreter where they could be interpreted as commands.

Related Tools