A hex to text cheat sheet maps each two-digit hexadecimal pair to one UTF-8 byte and records the exact input and error rules.
Hexadecimal describes bytes, not Unicode characters. ASCII text uses one-byte UTF-8 values, while other characters can require two, three, or four bytes, so one hex byte does not always equal one visible character.
Use the Hex to Text Converter to decode a clean hexadecimal byte string or diagnose why a conversion failed. It parses and validates the complete byte sequence in the current browser tab without uploading the source bytes, decoded characters, or clipboard content to Lizely.

Quick Format Reference
The digits 0–9 represent values 0–9, while A–F represent 10–15. Uppercase and lowercase letters produce the same byte values. In plain mode, a group may contain one byte or several bytes, but every group must have an even number of hexadecimal digits.
| Input form | Example | Required setting | Key rule |
|---|---|---|---|
| Continuous plain hex | 48656c6c6f | Plain mode | Every group must contain only hexadecimal digits and have even length. |
| Whitespace-separated plain hex | 48 65 6c 6c 6f | Whitespace enabled | Separators must be ASCII space, horizontal tab, line feed, form feed, or carriage return. |
| Per-byte prefixed hex | 0x48 0x65 0x6c 0x6c 0x6f | Prefixes enabled | Every token must be exactly 0xNN, where NN is one byte. |
| Mixed plain and prefixed forms | 0x48 42 | No valid setting | Plain and prefixed tokens cannot be mixed. |
For one complete example, the continuous value 48656c6c6f separates into 48 65 6c 6c 6f. Those five bytes represent the UTF-8 characters H e l l o, producing Hello.
When whitespace support is enabled, leading or trailing ASCII whitespace is accepted around otherwise valid content, but whitespace-only input is an error. Other Unicode spacing characters, including a non-breaking space, are rejected rather than invisibly normalized. When whitespace support is disabled, all of those ASCII whitespace characters are rejected too.
The prefix option creates a separate, unambiguous mode. If any case-insensitive 0x appears, every token must be exactly 0xNN and must be separated by enabled ASCII whitespace. Concatenated tokens such as 0x410x42, three-digit tokens such as 0x041, one-nibble tokens, and a bare 0x are invalid. If whitespace is disabled in prefixed mode, exactly one 0xNN token is accepted.
In plain mode, commas, dashes, colons, brackets, escape sequences, comments, unit labels, and non-hexadecimal letters are errors. Disabling the prefix option rejects prefixed input instead of quietly removing the prefix.
Decode a Hex String as UTF-8
-
Paste the hexadecimal bytes. Use a continuous even-length group for plain input, ASCII-whitespace-separated groups when that option is enabled, or exact 0xNN tokens for prefixed input. A plain group can contain several bytes.
-
Choose the matching syntax options. Enable ordinary ASCII whitespace only when the source uses it. Enable 0x prefixes only when every token follows the prefixed form. Do not combine the two styles.
-
Start the decode. The converter parses all hexadecimal syntax first, then uses the browser’s fatal UTF-8 decoder. The TextDecoder constructor documentation explains the browser API used for this step.
-
Review the decoded field and byte count. Successful output appears in a read-only field. Check for unexpected characters, an invisible null, or an unexpected byte-order mark before copying.
-
Copy the decoded text when clipboard access is available. If the browser denies permission, the valid text remains selectable and the interface provides a manual-copy instruction.
Errors That Need Specific Fixes
The converter reports the stage that failed instead of returning partially decoded text. Use the error category to decide what must be corrected.
| Error category | Meaning | Correct action |
|---|---|---|
| Odd nibble | A hexadecimal group does not contain a complete pair of digits. | Restore the missing digit in the source. A separator does not repair an incomplete nibble, so 4 8 is rejected rather than converted to 48. |
| Mixed syntax | Prefixed and plain forms occur together, or a token does not have the exact required shape. | Convert every token to either plain hex or exact 0xNN notation. Do not combine the styles. |
| Invalid byte sequence | The parsed bytes are not a complete, valid UTF-8 sequence. | Verify the original bytes and their encoding. The converter cannot repair malformed data without changing its meaning. |
| Budget error | The raw input, parsed bytes, or decoded text exceeds its independent limit. | Reduce the data or divide it at safe boundaries before trying again. Nothing is silently capped or truncated. |
Fatal UTF-8 validation rejects stray continuation bytes, truncated multibyte sequences, overlong encodings, encoded surrogate code points, and values above U+10FFFF. It never drops a bad suffix, returns an earlier valid prefix, or inserts U+FFFD. These boundaries follow RFC 3629’s UTF-8 requirements and the browser’s strict decoder behavior.
Special Bytes to Remember
- Leading byte order mark: The standard UTF-8 decoder wrapper consumes a leading EF BB BF sequence. For example, EF BB BF 41 returns A.
- Mid-text byte order mark: The same bytes in the middle of the text remain an actual U+FEFF character and are not removed.
- BOM by itself: This is a valid decode with empty visible output. The copy button is disabled because the decoded result has no code units.
- Null byte: 00 is valid UTF-8 data and becomes U+0000. It is not treated as a C-style string terminator.
- UTF-8 width: Valid scalar values may use one byte for ASCII, two bytes for many characters, three bytes for others, and four bytes for supplementary characters.
Limits and Local Processing
Three independent ceilings determine whether a conversion can complete:
- The raw input may contain at most 2,000,000 UTF-16 code units. This is checked before parsing and before any trimming or rewriting.
- The parsed byte output may contain at most 1,000,000 bytes. The byte count is checked before the output array is allocated.
- The decoded text may contain at most 1,000,000 UTF-16 code units.
Each exact limit is accepted. Exceeding any limit by one unit is rejected with an explicit message that nothing was decoded, returned, or truncated. Prefixed notation uses more source characters per byte, so it can reach the raw-input limit before the parsed-byte limit; this is expected rather than a parsing failure.
All parsing, byte allocation, strict decoding, display, and clipboard preparation happen locally in the current tab. Editing the input, changing either syntax option, or starting another decode clears the previous output, error, copied state, and copy timer. Clipboard writes are asynchronous, so a late permission result cannot overwrite a newer result or restore stale output.
Clipboard permission depends on the browser and its secure-context policy. When access fails, the decoded text stays available for manual selection instead of disappearing.
Scope Boundaries and Related Inputs
This workflow decodes UTF-8 only. It does not guess Windows-1252, ISO-8859-1, UTF-16, Shift_JIS, or another legacy encoding because changing the assumed encoding can change the meaning of the same bytes.
It also does not interpret integer literals, reverse byte order, remove nulls, evaluate escape sequences, parse a hex dump with memory addresses, decrypt data, or execute the decoded result. For a formatted memory dump, first isolate only its byte column with an appropriate trusted workflow. The hex dump cleanup guide explains that preparation step.
If the source is genuinely binary rather than hexadecimal, use Binary to Text instead. If it is Base64 transport data, use Base64 Encode and Decode; decoding Base64 as hexadecimal would interpret the wrong alphabet.
For a deeper look, see Password Strength Checker Cheat Sheet: Rules and Limits.