Hex to Text Converter

This hex to text converter translates between hexadecimal byte values and readable text using UTF-8 encoding. Convert any text string to its hex representation with configurable separators, or paste hex values to decode them back to text. View a detailed character breakdown showing hex, decimal, and binary values for each byte.

Hex to Text Converter

Convert text to hexadecimal or decode hex strings back to readable text

Frequently Asked Questions

What is hexadecimal?

Hexadecimal (hex) is a base-16 number system that uses digits 0-9 and letters A-F to represent values. Each hex digit represents four binary bits, so two hex digits represent one byte (8 bits). For example, the hex value 'FF' equals 255 in decimal and 11111111 in binary. Hex is widely used in computing because it provides a compact, human-readable way to represent binary data.

How does hex represent text?

Text is stored in computers as sequences of bytes using character encodings like ASCII and UTF-8. Each character is assigned a numeric code point, which is then encoded as one or more bytes. The hex representation of text is simply the hexadecimal value of each byte. For example, 'Hello' in ASCII is 48 65 6c 6c 6f — where 48 is the hex value for 'H' (decimal 72), 65 for 'e' (decimal 101), and so on.

What is the difference between ASCII and UTF-8?

ASCII is a 7-bit encoding that defines 128 characters (0-127), covering English letters, digits, punctuation, and control characters. UTF-8 is a variable-width encoding that is backward-compatible with ASCII — the first 128 characters are identical. However, UTF-8 can encode all Unicode characters using 1 to 4 bytes, supporting every world script, symbols, and emoji. All valid ASCII text is also valid UTF-8.

What does the 0x prefix mean?

The '0x' prefix is a convention used in programming languages like C, C++, Java, JavaScript, and Python to indicate that a number is written in hexadecimal notation. For example, 0x41 means the hex value 41 (decimal 65, the letter 'A'). The prefix itself has no numeric value — it simply tells the compiler or interpreter to parse the following digits as base-16 rather than base-10.

Why is hex used instead of binary or decimal?

Hex strikes an ideal balance between readability and alignment with binary data. Each hex digit maps to exactly 4 bits, so one byte is always two hex digits (00 to FF). Binary is too verbose for human reading (one byte is 8 digits), while decimal does not align neatly with byte boundaries. Hex makes it easy to read memory addresses, color codes, MAC addresses, hash values, and other byte-oriented data.

How do I convert hex to text manually?

To convert hex to text manually: (1) Split the hex string into pairs of two digits — each pair represents one byte. (2) Convert each hex pair to its decimal value (e.g., 48 hex = 4×16 + 8 = 72 decimal). (3) Look up the decimal value in an ASCII table to find the corresponding character (72 = 'H'). (4) Combine all characters to form the text. For UTF-8 multi-byte characters, multiple hex pairs combine to form a single character.

Can this tool handle Unicode and emoji?

Yes, this converter fully supports UTF-8 encoding, which includes all Unicode characters — Latin scripts, CJK characters, Arabic, Cyrillic, mathematical symbols, and emoji. Multi-byte characters will produce multiple hex byte pairs. For example, the emoji '😀' is encoded as 4 bytes in UTF-8: f0 9f 98 80. The character breakdown table shows each byte individually for multi-byte characters.

About Hex to Text Converter

The Hex to Text Converter is a utility that translates between human-readable text and its hexadecimal byte representation. It encodes each character of your text into hex values based on UTF-8 encoding, and decodes hex strings back into readable text. This tool is essential for developers, network engineers, and anyone working with binary data, memory dumps, or low-level protocols.

How to Use the Hex to Text Converter

  1. Select the "Text to Hex" tab to convert text to hexadecimal, or the "Hex to Text" tab to decode hex back to text
  2. Type or paste your input into the text area
  3. For Text to Hex, choose your preferred separator format (space, none, 0x prefix, or comma)
  4. The converter processes your input instantly in real time
  5. View the character breakdown table for detailed byte-level analysis
  6. Click the copy button to copy the result to your clipboard

What is Hexadecimal?

Hexadecimal (hex) is a base-16 number system that uses sixteen distinct symbols: the digits 0–9 represent values zero through nine, and the letters A–F (or a–f) represent values ten through fifteen. Each hex digit represents exactly four binary bits (a nibble), making it a compact and convenient way to express binary data. Two hex digits together represent a single byte (8 bits), with values ranging from 00 (0) to FF (255).

How Hex Represents Text (ASCII / UTF-8)

Computers store text as sequences of bytes using character encodings. In ASCII, each character maps to a single byte value between 0 and 127. For example, the letter "A" is stored as byte value 65, which is 41 in hex. UTF-8 extends ASCII to support all Unicode characters: ASCII characters remain one byte, while other characters use two to four bytes. The hex representation of text is simply the hex values of each byte in sequence.

Common Hex Values

Here are common characters and their hexadecimal, decimal, and binary equivalents:

CharacterHexDecimalBinary
Space203200100000
0304800110000
9395700111001
A416501000001
Z5a9001011010
a619701100001
z7a12201111010
!213300100001
@406401000000
#233500100011
\5c9201011100
/2f4700101111

ASCII Reference Table

The printable ASCII characters range from hex 20 (space) to hex 7e (tilde). Control characters occupy 001f and 7f. Here are the full printable ranges:

RangeHexCharacters
Digits30–390 1 2 3 4 5 6 7 8 9
Uppercase41–5aA B C D ... X Y Z
Lowercase61–7aa b c d ... x y z
Symbols20–2f, 3a–40, 5b–60, 7b–7eSpace, punctuation, brackets, etc.

Common Use Cases

  • Debugging — Inspect raw byte values in network packets, file contents, or memory dumps to diagnose encoding issues
  • Network Analysis — Read and interpret hexadecimal data captured from network traffic (TCP/UDP payloads, HTTP bodies)
  • Cryptography — Hex is the standard notation for hash digests (SHA-256, MD5), encryption keys, and ciphertext output
  • Programming — Convert between hex literals and text for string manipulation, color codes (e.g., #FF5733), and byte-level operations
  • Data Formats — Decode hex-encoded fields in JSON, XML, database BLOBs, and serialized data structures
  • Embedded Systems — Work with firmware dumps, EEPROM contents, and serial communication data in hex format

Tips for Working with Hex

  • Each byte is always represented by exactly two hex digits (e.g., 0a not a)
  • Hex is case-insensitive: 4a and 4A represent the same byte value (74 in decimal)
  • The 0x prefix is a common notation in programming languages (C, JavaScript, Python) to indicate a hex literal
  • For multi-byte UTF-8 characters (accented letters, CJK, emoji), each character produces multiple hex byte pairs
  • When decoding, ensure your hex string has an even number of digits — an odd count indicates incomplete data