Encoders & Text

Hex / Text Converter

Convert between text and hexadecimal at the byte level, in any encoding.

  • History kept on this deviceRecent results are kept in this browser's local storage until you clear them.
  • Runs in your browserProcessing happens in this page. No application server receives your input.
Hex (continuous)
More options

Input

Output

What this tool does

Converts UTF-8 text or uploaded binary files into lowercase hexadecimal byte representations and decodes hexadecimal byte streams back into text using a selected character encoding. For example, the UTF-8 string Hiโ‚ฌ (5 bytes) encodes as:

  • Continuous (none): 4869e282ac
  • Space-separated (space): 48 69 e2 82 ac
  • 0x-prefixed comma list (prefixed): 0x48, 0x69, 0xe2, 0x82, 0xac

Grouping formats and tolerant input

  • Encode always emits lowercase hexadecimal digits (0โ€“9aโ€“f) formatted according to the chosen grouping mode.
  • Decode accepts uppercase and lowercase hex digits, ASCII whitespace (spaces, tabs, CR, LF), commas, and 0x or 0X byte prefixes without requiring you to change the grouping selector first.
  • Any non-hex character is reported with its Unicode code point and 1-based line and column position (for example, Invalid hex character U+007A at line 2, column 11), and an odd number of hex nibbles is rejected with Invalid hex: expected an even number of digits.

Character encodings and browser limits

  • The WHATWG Encoding standard specifies TextEncoder as UTF-8 only, so encoding displays UTF-8 (encoding to other charsets is not available in browsers).
  • Decoding supports UTF-8, UTF-16LE, UTF-16BE, ISO-8859-1, and Windows-1252 via browser TextDecoder. Invalid UTF-8 byte sequences are replaced with U+FFFD and disclosed in a status notice, while Download always exports the exact decoded byte buffer.
  • Payloads below 1.0 MB run synchronously on the main thread; payloads from 1.0 MB up to 16.0 MB execute on the background parse worker with cooperative cancellation.

Related tools

  • Base64 / Base32 / Base58 / Base85 (/text/base-n) for compact ASCII binary-to-text encodings.
  • Unicode Inspector (/text/unicode) for per-code-point scalar, UTF-8 byte, and UTF-16 code unit inspection.
  • Number Base Converter (/text/number-base) for arbitrary-precision integer radix conversion rather than byte-stream encoding.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.