TTKTheTextKit

Hex to ASCII Converter

Paste hex bytes to read them as ASCII text, or switch to ASCII to hex and type text to get its hex. The hex can be written with spaces, commas or line breaks, with a 0x, \x or % prefix, or run together with no separator. A table under the result lists every byte with its hex, decimal and binary value and its character, and gives the standard name of each control code, such as LF for 0A. Everything runs in your browser.

ASCII (13 bytes)
Hello, World!

13 bytes, 0 control codes, 0 bytes above 7F

Each byte with its hex value, decimal value, binary value and ASCII character
#HexDecBinaryCharacter
1487201001000H
26510101100101e
36C10801101100l
46C10801101100l
56F11101101111o
62C4400101100,
7203200100000space
8578701010111W
96F11101101111o
107211401110010r
116C10801101100l
126410001100100d
13213300100001!

Related Tools

[6 suggestions]

Guides for the Hex to ASCII Converter: Decode Hex Bytes to Text and Back

About the Hex to ASCII Converter

ASCII has 128 codes, numbered 0 to 127, which is 00 to 7F in hex. Codes 32 to 126 (20 to 7E) are the 95 printable characters: the space, the digits 0 to 9 at 30 to 39, the capital letters A to Z at 41 to 5A, the lowercase letters a to z at 61 to 7A, and punctuation. The other 33 codes, 00 to 1F and 7F, are control codes with names such as NUL, BEL, LF, CR, ESC and DEL. To turn hex into text the tool reads it two digits at a time, so 48 65 6C 6C 6F becomes the bytes 72, 101, 108, 108 and 111, which are Hello, and 7B 22 6F 6B 22 3A 74 72 75 65 7D is {"ok":true}. Tab (09), line feed (0A) and carriage return (0D) stay as real characters, so a line of hex that ends in 0D 0A starts a new line in the result, and every other control code is shown as its Unicode control picture, or removed if you choose that. A byte from 80 to FF is not ASCII. You can have it shown as a dot, as the Latin-1 character with that number, or reported as an error. This matters because UTF-8 stores any character outside ASCII in two to four such bytes: C3 A9 is one letter, e with an acute accent, in UTF-8, so it shows as two dots here, and as the two characters A tilde and a copyright sign in Latin-1. For that kind of text use the Text to Hex Converter, which decodes UTF-8 and UTF-16. The hex is read strictly. Each byte needs two digits, and a stray letter or a single digit stops the conversion with the position of the problem, so a missing digit cannot silently shift every byte after it. In ASCII to hex mode, a character above 7F is refused with its position and its Unicode code point. The byte table shows the first 500 bytes, and the text result covers all of them.

How do I convert hex to ASCII?▾

Read the hex two digits at a time, turn each pair into a number, and look that number up in the ASCII table. 48 is 72, which is H, 65 is 101, which is e, and 6C is 108, which is l. So 48 65 6C 6C 6F is Hello. The tool does it as you type.

What do 0A and 0D mean in hex to ASCII?▾

0A is the line feed and 0D is the carriage return, the two codes that end a line. Linux and macOS end a line with 0A, and Windows uses 0D 0A. The tool keeps them as real line breaks, along with 09, the tab, and names every other control code in the table.

Why do I see dots or "not ASCII" for some bytes?▾

ASCII only has 128 codes, 00 to 7F. A byte from 80 to FF is not ASCII. Text such as an accented letter or a euro sign is stored in UTF-8 as two or three of these bytes, so C3 A9 (the letter e with an acute accent) shows as two dots. Pick the Latin-1 option to see a character for each byte, or use the Text to Hex Converter to decode UTF-8.

Can I paste hex with 0x, \x or % in front of each byte?▾

Yes. The tool reads 0x48, \x48 and %48, as well as bytes separated by spaces, commas, colons, hyphens or line breaks, or with no separator at all. Each byte must have exactly two digits, so write 0A and not A.

What is the difference between ASCII and UTF-8?▾

ASCII is the first 128 characters. UTF-8 writes those 128 exactly the same way, one byte each, and uses two to four bytes for every other character. So any ASCII text is also valid UTF-8, but UTF-8 text with accents or emoji is not ASCII.

Is my data uploaded?▾

No. The conversion runs in your browser, and what you type or paste is not sent anywhere or stored.