Hex to Text: Decode Hexadecimal Strings (With Examples)
Hex to text is base-16 place values, then a character map. 48 65 6C 6C 6F (case does not matter) is Hello. FlashKit’s hex to text converter treats each token as a Unicode code point, using codePointAt(0).toString(16) on the way out and parseInt(token, 16) on the way in. It is not a UTF-8 byte decoder and not a file hex dump.
Worked decode: 48 65 6C 6C 6F → Hello
Verified with the same algorithm as the widget (output is lowercase, so 48 65 6c 6c 6f):
| Hex | Decimal | Char |
|---|---|---|
| 48 | 72 | H |
| 65 | 101 | e |
| 6c | 108 | l |
| 6c | 108 | l |
| 6f | 111 | o |
“Hello World” is 48 65 6c 6c 6f 20 57 6f 72 6c 64 — the extra 20 is a space (32).
Decode hex in this tab
Code points, spaces or commas. No file picker, no UTF-8 toggle.
Open the hex converterWhy E2 82 B9 is not automatically one character here
UTF-8 encodes ₹ (U+20B9) as three bytes e2 82 b9 (226, 130, 185). If you paste those three tokens into FlashKit, you get three code points: U+00E2 (â), U+0082, U+00B9 (¹) — not the rupee sign. The rupee sign as a code point is the single token 20b9 (decimal 8377). Euro € is 20ac as a code point and e2 82 ac as UTF-8 bytes. Mixing those two views is how you get mojibake such as é for é.
Separators: spaces or commas. A concatenated token 48656c6c6f is one integer far above U+10FFFF, so fromCodePoint throws and the widget shows an error. Odd leftover tokens are still parsed: 48 65 6 is H, e, and code point 6. Prefer grouped bytes with spaces.
Binary of the same points: binary converter and how to read binary code. Alphabet tables: binary alphabet. ASCII decimal siblings: text to ASCII. The earlier hex-from-text writeup is text to hex.
Same points in binary
Hello is 1001000 1100101 1101100 1101100 1101111. Leading zeros omitted.
Open the binary converterHand method for one token, then the traps
Take 48. 4 is 4, 8 is 8; 4 × 16 + 8 = 72. Code point 72 is “H” in Unicode (and in ASCII). Take 20b9: 2 × 4096 + 0 × 256 + 11 × 16 + 9 = 8377, which is U+20B9, the rupee sign. Take three tokens e2 82 b9 the same way and you get 226, 130, 185 — three characters, not one. That is the difference between “hex of the code point” and “hex of the UTF-8 bytes.” FlashKit is the first. A hex editor dump of a UTF-8 file is the second.
Case does not matter: 6C and 6c both parse to 108. 0x prefixes happen to work because JavaScript parseInt("0x48", 16) is 72, but a worksheet that writes 0x48 0x65 is still easier to paste as 48 65. Concatenated dumps without spaces — 48656c6c6f — are one token. That integer is 310,400,239,215, which is above U+10FFFF, so fromCodePoint throws and the widget shows a red error rather than “Hello.” Split the dump first.
The same widget encodes: type Hello on the text side and you get 48 65 6c 6c 6f. Type ₹ and you get 20b9, not e2 82 b9. Binary of those same points omits leading zeros: H is 1001000 (7 bits), not an 8-bit 01001000. Decimal siblings live on the ASCII/decimal converters. None of those pages decode a .bin file or a packet capture; paste tokens, not a path.
When a dump is actually UTF-8
If a colleague sends c3 a9 and says it is “é in hex,” they mean UTF-8 bytes. On FlashKit that pair is two characters (Ã and © in Latin-1 clothing), not é. é as a code point is e9. To decode UTF-8 bytes in a browser you need TextDecoder on a Uint8Array, which this converter does not call. Do that in a script, or paste into a tool that has a “UTF-8 bytes” toggle — FlashKit’s hex page does not have that toggle.
Invalid tokens (empty after split, or junk that parseInt turns into NaN) surface as an error on the hex side. A leftover single hex digit is not invalid: 6 is code point 6 (ACK in ASCII). If you meant a truncated byte, add the missing digit; do not expect the widget to guess even-length grouping. Prefer spaces between every byte or every code point you actually intend.
More worked tokens, ASCII and not
Space is 20 (32). “Hi” is 48 69. “FlashKit” is 46 6c 61 73 68 4b 69 74 — F 70, l 108, a 97, s 115, h 104, K 75, i 105, t 116. Those decimals are the same code points the binary alphabet table lists. Digits: character “0” is 30, “9” is 39. A worksheet that asks for “the number 9 in hex” wants 9, not the character token 39.
é as a code point is e9 (233). UTF-8 bytes of é are c3 a9. On FlashKit, c3 a9 is two characters, not one. ₹ as a code point is 20b9. UTF-8 bytes of ₹ are e2 82 b9, which this converter treats as three tokens. Euro € is 20ac as a code point and e2 82 ac as UTF-8. If a colleague’s dump came from Buffer.from("₹", "utf8") in Node, they sent bytes. If it came from codePointAt(0).toString(16), they sent a code point. FlashKit matches the second.
Comma-separated hex is accepted: 48,65,6c,6c,6f is Hello. Mixed spaces and commas work because the splitter allows both. A 0x prefix on a token happens to parse (parseInt("0x48", 16) is 72) but is extra noise. Concatenated 48656c6c6f is one integer and overflows Unicode on this page. Split it to five tokens before you paste.
Encode, then decode, on the same widget
Type Hello on the text side: the hex side shows 48 65 6c 6c 6f. Edit the first token to 49 (73, “I”) and the text becomes Iello. There is no submit button; the mapping is live. Refresh restores the sample “Hello World” / 48 65 6c 6c 6f 20 57 6f 72 6c 64. Nothing is stored in localStorage. Long pastes of a firmware dump can freeze the tab; this is a translator, not a hex editor with paging.
Binary of the same points omits leading zeros. H is 1001000, hex 48, decimal 72. The three FlashKit converters (binary, hex, decimal/ASCII) are three bases of one mapping. None of them decode a file path, none have a UTF-8 toggle, and none pad. If you need UTF-8 bytes, use TextEncoder / TextDecoder in a script, or a hex editor that says “UTF-8” on the status bar.
Spanish-language searches for “hexadecimal a texto” are the same job: tokens in, characters out. The widget is bidirectional, so “text to hex” and “hex to text” are one URL. The earlier text-to-hex article covers UTF-8 vs ASCII in more depth from the encode side. This page is the decode side, with the rupee-sign trap made explicit so a three-byte UTF-8 sequence is not mistaken for one character.