Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I decode hexadecimal to text (ASCII)?

share|improve this question

closed as unclear what you're asking by Mokubai, ϺОŞΣŞ, Simon Sheehan, Tog, mpy Oct 29 '13 at 19:55

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
Are you asking about where to find / how to use an ASCII table? Search for text in a binary file? More explanation would help. If it's the former, Google's first hit for ASCII table is: asciitable.com . If the latter, the answers to this SU question may help: superuser.com/questions/124081/… . What do you have and what are you trying to accomplish? –  JRobert May 10 '11 at 11:56

4 Answers 4

You may have that backwards. If you're unfamiliar with hex it's best to use an online tool for this or a hex editor. Otherwise it doesn't take long to get a good understanding of the principals involved although I believe these have already been explained here.

share|improve this answer

If you have perl or perl or perl installed

perl -ne 'print chr hex $1 while /([0-9a-f]{2})/ig

e.g

perl -ne 'print chr hex $1 while /([0-9a-f]{2})/ig file1 file2 file3 ...

or

echo 486578 | perl -ne 'print chr hex $1 while /([0-9a-f]{2})/ig

(Oops, on Windows use " instead of ' )

share|improve this answer

Here is a simple hex to text chart. It is not complete, for simplicity's sake I am just including characters A-Z

hex - character
 41 - A
 42 - B
 43 - C
 44 - D
 45 - E
 46 - F
 47 - G
 48 - H
 49 - I
 4A - J
 4B - K
 4C - L
 4D - M
 4E - N
 4F - O
 50 - P
 51 - Q
 52 - R
 53 - S
 54 - T
 55 - U
 56 - V
 57 - W
 58 - X
 59 - Y
 5A - Z

For numbers, take the number's value and add 30 to get the hex code for that number.
Example: 9 + 30 = 39, 0 + 30 = 30, etc.
For lowercase letters, add 20 to the code for the uppercase letter.
Example: A = 41 + 20 = 61 = a

A hex editor, such as Tashcom Software's HexEdit would also help you learn ASCII

share|improve this answer

Notepad++ has a free plugin that will do hex-to-ASCII and ASCII-to-hex conversion for you called NppConverter.

It has been included in Notepad++ since version v5.9 (2011-03-31). Thus there is no need to explicitly install it. Its functions are in menu Plugins -> Converter:

Screenshot of selecting the hex conversion functions in Notepad++

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.