Text to Hex Converter

Convert text to hexadecimal representation.

Ctrl+Enter to convert.

Frequently Asked Questions

What is the difference between spaced and continuous hex output? +
Spaced output puts a space between each byte pair (e.g., 48 65 6C 6C 6F), making it easier to read. Continuous output concatenates all bytes together (e.g., 48656C6C6F), which is common in programming contexts.
What does the 0x prefix mean? +
The 0x prefix is a convention used in many programming languages (C, JavaScript, Python) to indicate that the following digits are hexadecimal, not decimal. For example, 0x41 means hex 41, which is 65 in decimal.
How are non-ASCII characters handled? +
Characters outside the standard ASCII range (code points above 127) are encoded as their Unicode code point in hex. Each character produces at least two hex digits, with wider characters using more.
How do I convert hex back to text? +
Use our separate Hex to Text tool. It accepts space-separated, continuous, and 0x-prefixed hex input and auto-detects the format.