How to convert an ASCII string to hex format

Written by tony breedlove
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to convert an ASCII string to hex format

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


    The Hard way

  1. 1

    Write down the ASCII string on a single line.

  2. 2

    Open an ASCII to Hex table like the one in this picture.

    How to convert an ASCII string to hex format
  3. 3

    Below each ASCII character, write the equivalent Hex value.

    The Easy Way

  1. 1

    Download, install and open the ASCII to Hex string converter (see link in Resources).

  2. 2

    Type in your ASCII string; the Hex equivalent will display below it.

    How to convert an ASCII string to hex format
  3. 3

    Click the "Mode" menu item and switch to "Hex to ASCII" string conversion to test your knowledge of the ASCII table.

    How to convert an ASCII string to hex format

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.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.