>Fafa Dev Tools

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.

0 chars
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

  1. Select Text to Hex or Hex to Text mode using the toggle buttons
  2. Paste or type your text or hex string in the left panel
  3. The converted result appears instantly in the right panel
  4. Use Swap to reverse the conversion direction

Examples

Text to hex

InputHello
Output48 65 6c 6c 6f

Hex to text

Input48 69 21
OutputHi!

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.