What you can do with Text & Hex Converter
- Convert text to hex
- Decode hexadecimal text
How this encoding and decoding works
Encode text as lowercase contiguous hexadecimal UTF-8 bytes and decode even-length hex byte strings back to text.
Example input
EasyUtils 🧪Example output
456173795574696c7320f09fa7aaPractical workflow
- Choose Text to Hex or Hex to Text mode.
- Enter text to encode, or enter hexadecimal digits to decode.
- Click Convert; encoding uses UTF-8 and writes lowercase hexadecimal without separators.
- Copy the result. For decoding, whitespace is ignored, but the remaining value must contain an even number of hex digits.
Common use cases
- Inspecting the UTF-8 bytes for a short text value while debugging an encoding issue.
- Decoding a whitespace-separated hex string copied from a log or programming exercise.
- Comparing a text value's UTF-8 bytes with a representation from another system.
Important notes and limitations
- Uses UTF-8 bytes, so one character may produce multiple byte pairs; output is contiguous lowercase hex.
- The decoder removes whitespace only. Prefixes such as 0x, colons, and commas are rejected.
- Text to Hex input is limited to 65,536 UTF-16 code units and produces at most 393,216 hex characters. Hex to Text accepts up to 393,216 input characters and limits decoded text to 65,536 code units, so generated output can always be decoded within the same bounds.
- An odd number of hex digits, any non-hex character, or bytes that are not valid UTF-8 produces an error toast; invalid input does not include an inline highlighted character.
- Hex to Text decodes UTF-8 text only. Arbitrary binary bytes that are not valid UTF-8 are rejected instead of being silently replaced; use the Binary Converter for raw byte sequences.
- Input and mode stay in tab memory and clear when you reload or leave the tool.
Terminal Hexadecimal inspection & xxd dumps
Generate hexdump of binary file with xxd
xxd -g 1 binary.dat | head -n 10Displays byte offset, individual hexadecimal bytes, and printable ASCII side-by-side.
Reconstruct binary file from hex string via xxd
echo '48656c6c6f20576f726c64' | xxd -r -p > output.binReverses raw hex dump text back into original binary bytes (decodes to 'Hello World').
Endianness & hex padding troubleshooting
Hex string has odd length (Invalid hex byte count)
Cause: Hexadecimal representations require exactly 2 hex characters (nibbles) per byte. Odd length indicates truncated data.
Solution: Prepend a leading zero ('0') if representing a numeric value or verify data integrity against truncation.
Endianness byte order inversion (Little-endian vs Big-endian)
Cause: x86/ARM processors store multi-byte integers in little-endian order (least significant byte first).
Solution: Account for endianness when converting 16-bit, 32-bit, or 64-bit integer values to and from raw hex buffers.
Continue your workflow
- Binary Converter — inspect data at the individual bit level (zeros and ones).
- Base64 Tool — encode binary data into compact ASCII Base64 format.
Frequently asked questions
Can I decode hex strings with spaces or a 0x prefix?
Whitespace between hex digits is ignored, but a 0x prefix, colon, comma, or other non-hex character is rejected. Remove prefixes and delimiters before converting.
How are multi-byte UTF-8 characters formatted in hex?
Each Unicode character is decomposed into its UTF-8 octets. For example, the Euro currency symbol (€) produces three consecutive hexadecimal bytes: E2 82 AC.
What happens if the hex input has an odd number of digits?
The converter shows an error toast because a byte needs two hex digits. Add or remove a digit so the input length is even, then convert again.