Hex to Text Converter
Convert hex to text and text to hex with full UTF-8 support. Validates input and explains errors in plain language.
Hex is how the world displays binary data — hashes, keys, byte dumps. This converter goes both directions with proper UTF-8 handling, so é and emoji survive the round trip. It accepts a 0x prefix, ignores whitespace, and tells you exactly what's wrong with invalid input instead of failing silently.
Full UTF-8 support: multi-byte characters like é or emoji convert correctly in both directions. Whitespace and a 0x prefix are ignored in hex input.
How to use this calculator
- Choose Hex → Text or Text → Hex.
- Paste your input — a 0x prefix and whitespace are fine.
- Copy the result. Invalid input gets a plain-language error explaining the fix.
Worked example
The hex 48656c6c6f decodes to "Hello" (48=H, 65=e, 6c=l, 6c=l, 6f=o) — verified by running the converter. Going the other way, the two-byte UTF-8 character é encodes as c3a9.
Frequently Asked Questions
What is hex encoding?
Every byte (0–255) written as two hexadecimal digits. 'Hello' is five bytes — 48 65 6c 6c 6f — so its hex form is 48656c6c6f. It's the standard way to display binary data, hashes, and cryptographic keys as readable text.
Why did my odd-length hex fail?
Each byte needs exactly two hex digits, so valid hex always has an even length. 'abc' is one-and-a-half bytes — meaningless. You probably dropped a digit; pad it (usually with a leading zero) or double-check the source.
How are é and emoji handled?
As UTF-8 bytes. é is two bytes (c3 a9) and most emoji are four bytes. The converter encodes and decodes full UTF-8, so multilingual text and emoji round-trip correctly in both directions.
What's the 0x prefix?
A convention from C and many other languages marking a literal as hexadecimal — 0x48656c6c6f. The converter accepts it but doesn't require it, and it ignores whitespace, so you can paste hexdumps with spaces between bytes.
Hex vs Base64 — which should I use?
Hex is human-readable and simple at 2 characters per byte, but verbose. Base64 packs 3 bytes into 4 characters — about 33% smaller — at the cost of readability. Use hex for hashes, keys, and debugging; Base64 for embedding data where size matters.