Accurately decode hexadecimal (Base16) strings back to human-readable text using UTF-8. Supports spaced, colon‑separated, or raw hex input. Fully compliant with RFC 4648 and WHATWG Encoding Standard.
Hexadecimal (Base16) represents binary data as a sequence of two‑character codes per byte. A hex decoder reverses this: it takes a hex string, converts each pair of digits to a byte, then interprets the resulting byte sequence as UTF-8 text. This tool uses the standard Web API TextDecoder (WHATWG compliant) to ensure correct decoding of all Unicode characters, including emojis, accented letters, and CJK ideographs.
? Decoding algorithm (simplified):
0x prefixes.
TextDecoder('utf-8') to produce the final string.
You can manually verify the tool’s accuracy using the following known input/output pairs (all compliant with UTF‑8 encoding).
| Hex Input | Decoded Text | Notes |
|---|---|---|
41
|
A
|
ASCII capital A |
48656c6c6f
|
Hello
|
Basic Latin |
C2A2
|
¢
|
Cent sign (U+00A2), 2‑byte UTF‑8 |
E282AC
|
€
|
Euro symbol (U+20AC) |
F09F98B3
|
?
|
Emoji (4‑byte UTF‑8) |
E38193E38293E381ABE381A1E381AF
|
こんにちは
|
Japanese "konnichiwa" |
0-9A-Fa-f, spaces, colons, and 0x prefixes are allowed. Any other character (e.g., G, &, %) will trigger an error. The tool does NOT silently discard non‑hex characters.
This decoder is built according to the following publicly available specifications:
TextDecoder API and UTF‑8 decoding behaviour (replacement on invalid sequences).
0x) triggers a clear error.