If you are studying computer science, programming or preparing for a certification, at some point it becomes necessary to be able to convert an ASCII (American Standard Code for Information Interchange) string to Hex (hexadecimal) format. Converting from decimal to hex, binary or octal is easy once you understand the procedure, but converting to ASCII is a different matter. If you have to do this from memory, the first thing you will want to be able to do is to convert ASCII directly to decimal; our brains can learn ASCII to decimal easily. It is just a simple matter of converting from decimal to hex.
- Skill level:
- Moderately Easy
Other People Are Reading
Write down the ASCII string on a single line.
Open an ASCII to Hex table like the one in this picture.
Below each ASCII character, write the equivalent Hex value.
The Hard way
Download, install and open the ASCII to Hex string converter (see link in Resources).
Type in your ASCII string; the Hex equivalent will display below it.
Click the "Mode" menu item and switch to "Hex to ASCII" string conversion to test your knowledge of the ASCII table.
The Easy Way
Tips and warnings
- Unfortunately you cannot convert from ASCII to Hex, Binary, Octal, or Decimal directly, you must use a table (see link in Resources). If you will be taking a test where they do not allow string converters or conversion calculators, you must memorise the table. Memorising the table is not difficult unless you have to memorise the extended ASCII table. That can get involved, but it is doable.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for