Explosion Tools

Text to Hex Converter

Convert between text and hexadecimal representation. Free, no signup, works in your browser.

Output will appear here…

All conversion happens in your browser. No data is sent to any server.

About Text to Hex Converter

This tool converts between plain text and hexadecimal (hex) representation. Enter text to see each character's hex byte value, or paste hex values to decode them back to text. Choose from four output formats: space-separated (48 65 6C), continuous (48656C), 0x-prefixed (0x48 0x65), or percent-encoded (%48%65). The converter uses UTF-8 encoding, so it correctly handles multi-byte characters like accented letters and emoji. Useful for debugging network protocols, analyzing file headers, working with binary data, or URL encoding.

Frequently Asked Questions

What encoding does this converter use?
UTF-8. ASCII characters (A-Z, 0-9, basic punctuation) use one byte each. Characters outside ASCII — like é, ñ, or emoji — use 2 to 4 bytes in UTF-8, so they produce more hex digits.
What hex input formats are supported?
The decoder accepts hex with spaces (48 65 6C), without spaces (48656C), with 0x prefixes (0x48 0x65), or with percent signs (%48%65). All formats are auto-detected.
What is the difference between text-to-hex and Base64?
Both encode binary data as printable characters. Hex uses 2 characters per byte (50% efficient), while Base64 uses ~1.33 characters per byte (75% efficient). Hex is easier to read and debug; Base64 is more compact for transfer.

Related Tools