Text to Hex Converter
Convert text to hexadecimal and back instantly. Free online text to hex converter with space-separated bytes and UTF-8 support.
Output will appear here...
What is Text to Hex Converter?
Hexadecimal (hex) is a base-16 number system using digits 0-9 and letters A-F. Converting text to hex represents each byte of the text as a two-digit hex number. For example, 'Hi' becomes '48 69' because 'H' is byte 72 (hex 48) and 'i' is byte 105 (hex 69). Hex is widely used in programming for color codes, memory addresses, and binary data representation.
How to Use
- Select Text to Hex or Hex to Text mode using the toggle buttons
- Paste or type your text or hex string in the left panel
- The converted result appears instantly in the right panel
- Use Swap to reverse the conversion direction
Examples
Text to hex
Hex to text
Related Tools
Hex to Text Converter
Convert hexadecimal to readable text instantly. Free online hex to text converter with UTF-8 support. Paste hex and get text back.
Base64 Encode & Decode
Encode text to Base64 or decode Base64 to text. Free online Base64 encoder and decoder with instant conversion.
Binary Converter (Text to Binary)
Convert text to binary and binary to text instantly. Free online binary converter with encode and decode modes.
ASCII Converter
Convert between ASCII characters and their decimal, hexadecimal, and binary code values. Free online ASCII table converter.
Frequently Asked Questions
What encoding does this use?
Text is encoded to bytes using UTF-8, then each byte is represented as a two-digit hexadecimal number. UTF-8 is the standard encoding for web content and handles all Unicode characters including emojis.
Why are there spaces between hex bytes?
Spaces make the hex output readable by separating individual bytes. Each pair of hex digits (e.g., 48) represents one byte (8 bits). The spaces can be removed or the hex can be pasted back with or without spaces for decoding.
How is this different from Base64 encoding?
Hex converts each byte to exactly 2 hex characters (100% overhead). Base64 converts every 3 bytes to 4 characters (33% overhead). Base64 is more compact, but hex is easier to read and matches how bytes appear in memory dumps and network packets.