Hex to ASCII Text Converter – Free

Paste hexadecimal byte values and this hex to ASCII converter returns the characters they encode. For example, 41 42 43 becomes ABC.

How to use the Hex to ASCII tool

  1. Paste the hex bytes into the Hexadecimal bytes box, for example 41 42 43.
  2. Select Convert. Spaces, line breaks, commas and 0x prefixes between bytes are ignored.
  3. Read the decoded text in the Result box.
  4. Select Copy to copy the text. If you see an error instead, check for an odd number of digits or a byte above 7F.

How hex to ASCII conversion works

ASCII assigns a number from 0 to 127 to each of 128 characters: control codes, digits, punctuation and the unaccented Latin letters. Hexadecimal writes each of those numbers as two digits, from 00 to 7F. The converter removes separators, cuts the remaining digits into pairs, reads each pair as a byte and outputs the character with that code.

Some anchor points help when reading hex by eye. 30 to 39 are the digits 0 to 9, 41 to 5A are A to Z, 61 to 7A are a to z, and 20 is a space. Upper and lower case letters differ by exactly 20 hex.

Hex to ASCII examples

The fourth line is the signature at the start of every GIF89a file, and the fifth is the kind of text you find when inspecting a packet capture.

41 42 43                 ->  ABC
48656c6c6f               ->  Hello
0x48,0x69                ->  Hi
47 49 46 38 39 61        ->  GIF89a
48 54 54 50 2F 31 2E 31  ->  HTTP/1.1

Accepted separators and a pairing pitfall

The tool strips every 0x, comma and whitespace character, then expects an even number of hex digits. An odd digit count or a non-hex character returns Enter complete hexadecimal bytes.

Because separators are removed before the digits are paired, every byte must be written with two digits. The input 4 1 4 2 decodes as 41 42, and a lone A meant as a line feed must be typed 0A. The list shows what is and is not accepted.

  • Continuous digits, such as 48656c6c6f, in upper or lower case.
  • Bytes separated by spaces, tabs or line breaks, as in a hex dump.
  • Comma-separated lists, with or without 0x in front of each byte.
  • Not accepted: colons, hyphens, backslash-x escapes or percent signs. Remove them first.

ASCII only: bytes above 7F and control codes

This tool is strict about the ASCII range. If any byte is 80 or higher, it stops with the message Each byte must be in the ASCII range from 0 to 127. Such bytes belong to another encoding, usually UTF-8 or Latin-1. For example, C3 A9 is the letter e with an acute accent in UTF-8 and cannot be shown as ASCII.

Control codes below 20 are valid ASCII and are passed through unchanged. 0A produces a line break, 09 a tab and 0D a carriage return, so 48 69 0A 4F 4B prints Hi and OK on two lines.

Frequently asked questions

What is 41 42 43 in ASCII?

It is ABC. Hex 41 is 65 in decimal, the code for uppercase A, and 42 and 43 are B and C.

Why do I get an error about the ASCII range?

At least one byte is 80 hex or above, which is outside 7-bit ASCII. The data may be UTF-8 text with non-English characters, or binary data such as an image. This converter refuses to guess an encoding for those bytes.

Do I need spaces between the hex bytes?

No. Spaces are optional. The tool removes them and reads the digits two at a time, so 4869 and 48 69 both decode to Hi. Just make sure every byte has two digits.

Can I paste hex with 0x prefixes or commas from source code?

Yes. A C-style array body such as 0x48, 0x69 decodes to Hi. Braces, semicolons and variable names must be removed, since only hex digits, 0x, commas and whitespace are understood.

What is the hex code for a space or a new line?

A space is 20. A line feed is 0A and a carriage return is 0D. Windows line endings are the pair 0D 0A. All of them are valid input and appear as whitespace in the result.

Is the hex I paste sent anywhere?

No. The bytes are decoded by script in your browser tab. Nothing is uploaded, which matters when the hex comes from a log or packet trace that may contain credentials.

Related tools