Hex to Text

Decode hexadecimal bytes as UTF-8 text, or convert text into UTF-8 hex bytes.

Use continuous hex or separate complete byte groups with spaces, tabs, or line breaks. Each optional 0x prefix must have exactly two hex digits. Maximum: 65,536 bytes and 400,000 input characters.

Decoded text preview

Controls and backslashes appear as escapes: \r is CR, \n is LF, \t is a tab, and \uFEFF is a BOM. An LF also starts a new preview line. Copy uses the decoded text, without these display escapes.


  

  

Hex bytes and UTF-8

Two hex digits represent one byte, from 00 to FF. ASCII letters use one UTF-8 byte each; other characters may need two, three, or four bytes. For example, 41 E2 82 AC F0 9F 8C B1 decodes to A€🌱. Hex is a representation of data, not encryption.

Hex letters are case-insensitive. You can enter 41E282AC, 41 E2 82 AC, or 0x41 0xE2 0x82 0xAC. Unprefixed groups can contain several complete bytes. Separators cannot split a byte: 4 1 is invalid. Commas, colons, \x escapes, U+ code points, and hexdump addresses are not accepted.

The decoder rejects incomplete or invalid UTF-8, including overlong sequences and encoded surrogates. It preserves a leading UTF-8 BOM as U+FEFF and keeps CR, LF, NUL, and other controls in the decoded result. The preview reveals control and directional formatting characters; it also doubles literal backslashes so escapes remain distinguishable.

Text to hex uses uppercase bytes and does not normalize Unicode or trim spaces. Text entry in the browser uses LF line endings, so pasted CR or CRLF may become LF before encoding. To inspect those original bytes, use Hex to text. Copy sends the stored result to the clipboard; the browser, operating system, or receiving app may change line endings.

Processing happens in your browser. The tool does not send or save your input. Each conversion is limited to 65,536 UTF-8 bytes. Hex input also has a 400,000-character limit; text input has a 65,536 UTF-16-unit limit. Larger input is left intact with an error.

UTF-8 behavior follows the WHATWG Encoding Standard and the byte sequence rules in RFC 3629.