Back to Tools

Text to Hex

Processed Locally

Convert text to hexadecimal representation. Each character is converted to its hex value with customizable separators and prefixes (0x, \x).

Options

Frequently Asked Questions

Hexadecimal (hex) is a base-16 numbering system using digits 0-9 and letters A-F. Each character is converted to its character code, then to hex. For example, "A" is 65 in decimal, which is 41 in hex.
Prefixes indicate that a value is hexadecimal: "0x" is used in many programming languages (C, JavaScript, Python), "\x" is used in escape sequences and byte strings. No prefix gives clean hex values.
Both are valid and equivalent (4A = 4a). Uppercase is often used in documentation and specifications for better readability. Lowercase is common in programming and web colors. Choose based on your use case or style preference.
Space is most readable for general use. Colon (:) is common for MAC addresses. No separator creates a continuous hex string (useful for hashes). Choose based on your target format or readability needs.