Hex to Text

Decode hexadecimal back into text. Paste space separated hex character codes and the tool rebuilds the original characters.

0 characters

0 characters

About Hex to Text

This tool decodes hexadecimal character codes into human-readable text. A hexadecimal string is a sequence of digits (0 to 9) and letters (A to F) that represents binary data. In the context of text, this data consists of the numerical values, or code points[6], that correspond to characters in a specific character encoding[5] standard. The tool parses pairs of hexadecimal digits, interprets each pair as a byte[4], and then maps the resulting sequence of bytes to characters according to a selected encoding, most commonly UTF-8[16], the dominant encoding on the World Wide Web.

The hexadecimal[9] numeral system is a positional system with a base of 16. It provides a convenient and compact way for humans to read and write binary values used by computers. A single hexadecimal digit can represent four binary digits (bits), a unit also known as a nibble[12]. Consequently, a pair of hexadecimal digits can represent eight bits, or one byte, which is the fundamental unit of processing and storage for most modern computer architectures. For example, the binary value `11010101` can be grouped into two nibbles `1101` and `0101`, which correspond to the hexadecimal digits `D` and `5`, resulting in the more concise representation `D5`.

The translation from a sequence of bytes to text is entirely dependent on the character encoding scheme. The foundational scheme, ASCII[2] (American Standard Code for Information Interchange), uses a 7-bit code, mapping 128 specified characters, including English letters, digits, and control codes. For example, the hex value `41` represents the byte `01000001`, which is the ASCII code for the uppercase letter 'A'. Modern systems primarily use Unicode[15], a universal standard that assigns a unique code point to every character in nearly all writing systems. UTF-8[16] is a variable-width encoding that represents Unicode code points using one to four bytes. It is backward-compatible with ASCII, as the first 128 Unicode code points are identical to the ASCII set. Other Unicode encodings include UTF-16[17] and UTF-32[18].

The use of hexadecimal notation is deeply rooted in the history of computing and is specified in numerous technical standards. ASCII itself was first published as a standard by the American National Standards Institute[1] (ANSI) in 1963. The Unicode standard is maintained by the Unicode Consortium[21]. Beyond character encoding, hexadecimal is prevalent in many areas of computing. It is used for percent-encoding[14] in URLs, as defined by the Internet Engineering Task Force in RFC 3986[20], where a character like a space is encoded as `%20`. It is also fundamental to MIME[11] standards for email and web content, and for representing machine code in object file formats like Intel HEX[10].

In practice, converting hex to text is a common task in digital forensics, network analysis, software debugging, and reverse engineering. Professionals use tools like a hex editor[8] to inspect the raw byte content of files or memory dumps. A developer might encounter a hex-encoded string in a log file, a database entry, or a network packet capture and need to decode it to understand its meaning. This tool automates that process, providing a quick and reliable way to translate machine-level data representation back into a form that is meaningful to humans.

How to Use

  1. Paste your hexadecimal string into the input field.
  2. Ensure the input contains only valid hexadecimal characters (0-9, a-f, A-F). The converter will ignore common delimiters like spaces and newlines.
  3. Select the source character encoding (e.g., UTF-8, Windows-1252) that the hex string was created with. UTF-8 is the most common default.
  4. Click the "Convert" button to initiate the decoding process.
  5. The resulting plain text will be displayed in the output area.
  6. Use the copy button to save the decoded text to your clipboard.

Frequently Asked Questions

What is the difference between hex and Base64?

Both are binary-to-text encoding schemes. Hexadecimal[9] uses 16 characters (0-9, a-f) and is less space-efficient, with each byte of data requiring two characters. Base64[3] uses 64 characters and is more compact, encoding 3 bytes of data into 4 characters. Hex is often preferred for debugging because the mapping to bytes is direct and more human-readable.

Why is my decoded text incorrect or showing strange symbols?

This is almost always due to an incorrect character encoding selection. For example, the hex sequence `E2 82 AC` represents the Euro symbol (€) in UTF-8[16]. If decoded as Windows-1252[19], it would appear as three separate characters: 'â', '‚', and '¬'. Ensure you select the same encoding that was used to create the hex string.

Does spacing or letter case matter in the hex input?

No. This tool is designed to be flexible. It will automatically ignore whitespace (spaces, tabs, newlines) and treats uppercase letters (A-F) and lowercase letters (a-f) as identical.

What is a Unicode code point?

A code point[6] is a unique number assigned to a single character by the Unicode Consortium[21]. For example, the code point for the letter 'A' is U+0041. A character encoding like UTF-8 defines how to represent this numerical code point as a sequence of one or more bytes.

What does the hex value '20' represent?

In ASCII[2] and all Unicode encodings, the hexadecimal value `20` corresponds to the space character. Other common codes include `0A` for a line feed and `0D` for a carriage return.

How are non-printable control characters handled?

Hexadecimal can represent all 256 possible values of a byte, including non-printable control characters[7] from the ASCII table (values 00 to 1F). For example, `00` is the null character[13]. This tool may render them as a space, a placeholder symbol (like ), or omit them, depending on the specific character and browser behavior.

Why use hexadecimal instead of binary?

Hexadecimal serves as a more human-friendly representation of binary data. Since one hex digit maps perfectly to four binary digits (a nibble[12]), it is much more compact and easier to read and transcribe without error than a long string of 1s and 0s.

Sources (21)
  1. Wikipedia: American National Standards Institute
  2. Wikipedia: ASCII
  3. Wikipedia: Base64
  4. Wikipedia: Byte
  5. Wikipedia: Character encoding
  6. Wikipedia: Code point
  7. Wikipedia: Control character
  8. Wikipedia: Hex editor
  9. Wikipedia: Hexadecimal
  10. Wikipedia: Intel HEX
  11. Wikipedia: MIME
  12. Wikipedia: Nibble
  13. Wikipedia: Null character
  14. Wikipedia: Percent-encoding
  15. Wikipedia: Unicode
  16. Wikipedia: UTF-8
  17. Wikipedia: UTF-16
  18. Wikipedia: UTF-32
  19. Wikipedia: Windows-1252
  20. IETF RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
  21. The Unicode Consortium

About Matt George

I'm Matt George, a software engineer in the startup space. I run my own shop building software for early-stage founders, and I love making free tools and experiences that people actually use. Enjoy using Hex to Text!

More Free Tools