Encoders & Text
Hex / Text Converter
Convert between text and hexadecimal at the byte level, in any encoding.
- Recent results are kept in this browser's local storage until you clear them.
History kept on this device
Recent results are kept in this browser's local storage until you clear them. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
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
0xor0Xbyte 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 withInvalid hex: expected an even number of digits.
Character encodings and browser limits
- The WHATWG Encoding standard specifies
TextEncoderas UTF-8 only, so encoding displaysUTF-8 (encoding to other charsets is not available in browsers). - Decoding supports
UTF-8,UTF-16LE,UTF-16BE,ISO-8859-1, andWindows-1252via browserTextDecoder. Invalid UTF-8 byte sequences are replaced withU+FFFDand 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.