Toolvist

ASCII to Hex Converter

Convert text to hexadecimal byte values and hex back to text, with optional separators and uppercase output. Free online ASCII to hex converter.

Free Online ASCII to Hex Converter

The ASCII to Hex Converter turns text into hexadecimal byte values and back again. Choose your separator and case, and handle multi-byte UTF-8 characters correctly.

The reverse direction is the Hex to Text Converter, and the related encodings are the Base64 to Hex Converter and Hex to Base64 Converter. For the octal notation used by older tools, the Text to Octal Converter is the counterpart.

How to use the ASCII to Hex

  1. 1 Paste your text, or the hex values you want decoded.
  2. 2 Convert. Each character becomes its byte value in hexadecimal.
  3. 3 Check the encoding if the text contains anything non-ASCII — UTF-8 produces multiple bytes per character.
  4. 4 Copy the hex string, with or without separators.

Reading hex output

Hex is how bytes are usually written down, because two digits per byte with no ambiguity. When you look at output, the pairs are the units — `48 65 6C 6C 6F` is five bytes spelling a familiar greeting in ASCII. Reading it as a single number rather than as byte pairs is the usual mistake.

Separators are cosmetic. A space, a colon or nothing at all between pairs all represent the same data, and which is conventional depends on the context: `0x` prefixes in code, colon-separated for addresses, unseparated for hashes.

  • Two hex digits per byte.
  • ASCII characters are one byte; most others are more.
  • `0x48` is 72 in decimal, the letter H.
  • Separators do not change the value.

Frequently asked questions

Why does one character sometimes become more than two hex digits?

Because it is not in ASCII. A character outside the ASCII range is encoded as multiple bytes in UTF-8, and each byte becomes two hex digits. An accented letter becomes two bytes, and an emoji can be four. The hex representation reflects the encoded bytes, not the character count.

What is the difference between hex and binary?

Both are representations of the same bytes, written in a different base. Hex uses sixteen symbols, so one byte is exactly two digits. Binary uses two symbols, so one byte is eight digits. Hex is the practical choice for inspection because it is a third of the length and still maps cleanly to bytes.

Is this the same as a hash?

No. Converting text to hex is a reversible encoding — the text can be recovered exactly. A hash is a one-way function that produces a fixed-length value from any input, and cannot be reversed. The two look similar in that both produce hex strings, which is why they are sometimes confused.

Related Developer Tools

Browse all Developer Tools →

You might also need

Tools from other categories that people pair with the ASCII to Hex:

Browse the full tool directory →