you need to take 2 (hex) chars at the same time... then calculate the int value and after that make the char conversion like...

char d = (char)intValue;

do this for every 2chars in the hex string

this works if the string chars are only 0-9A-F:

#include <stdio.h>
#include <string.h>

int hex_to_int(char c){
        int first = c / 16 - 3;
        int second = c % 16;
        int result = first*10 + second;
        if(result > 9) result--;
        return result;
}

int hex_to_ascii(char c, char d){
        int high = hex_to_int(c) * 16;
        int low = hex_to_int(d);
        return high+low;
}

int main(){
        const char* st = "48656C6C6F3B";
        int length = strlen(st);
        int i;
        char buf = 0;
        for(i = 0; i < length; i++){
                if(i % 2 != 0){
                        printf("%c", hex_to_ascii(buf, st[i]));
                }else{
                        buf = st[i];
                }
        }
}
Answer from sharpner on Stack Overflow
🌐
RapidTables
rapidtables.com › convert › number › hex-to-ascii.html
Hex to String | Hex to ASCII Converter
Enter hex code bytes with any prefix / postfix / delimiter and press the Convert button (e.g. 45 78 61 6d 70 6C 65 21): * ASCII text encoding uses fixed 1 byte for each character. ** UTF-8 text encoding uses a variable number of bytes for each character. This requires a delimiter between each ...
🌐
Binary Hex Decimal Converter
binaryhexconverter.com › hex-to-ascii-text-converter
Hex to Ascii (String) Converter
Hexadecimal to Ascii text converter helps you to encode hex to ascii text string, handy tool to translate hexadecimal numbers to text.
🌐
neaPay
neapay.com › online-tools › hex-to-ascii-converter.html
Hexadecimal to Ascii converter online. Hex to ascii and ascii to hex
To use this online HEX to ASCII converter tool, type a hex value like "492077616e742031303030206170706c6573" into the left field below, and then press Convert
🌐
RapidTables
rapidtables.com › convert › number › ascii-to-hex.html
String to Hex | ASCII to Hex Code Converter
Convert "Plant trees" text to hex ... "a" => 97 = 6×161+1×160 = 6116 · ⁝ · For all the text characters you should get the hex bytes: "50 6C 61 6E 74 20 74 72 65 65 73" Get character ·...
🌐
Hexcalculator
hexcalculator.org › hexadecimal-to-ascii
Hex to ASCII Converter (Hex to Text)
May 29, 2026 - It handles valid ASCII byte ranges from 00 to 7F and even supports extended bytes for compatibility with UTF-8 where applicable. ... Hex Input: 48656C6C6F20576F726C64 Step 1: Split into pairs → 48 65 6C 6C 6F 20 57 6F 72 6C 64 Step 2: Convert to ASCII → H e l l o W o r l d
🌐
Utilities and Tools
utilities-online.info › hex-to-ascii
HEX to ASCII converter
To use this free HEX to ASCII Converter, enter the hexadecimal number in the tool and click on the “Convert” number.
Find elsewhere
🌐
Christie
christiedigital.com › globalassets › resources › public › pandorasbox › ascii-hex-table.pdf pdf
PB Serial ASCII Hex DEC Table DEC HEX Symbol Description DEC HEX
PB Serial ASCII Hex DEC Table · DEC HEX · Symbol Description · DEC HEX · Symbol Description · 0 · 0 · NUL · Null char · 51 · 33 · 3 · Three · 1 · 1 · SOH · Start of Heading · 52 · 34 · 4 · Four · 2 · 2 · STX · Start of Text · 53 · 35 · 5 ·
🌐
YouTube
youtube.com › dr. shane oberloier
Hex To ASCII - YouTube
AboutPressCopyrightContact usCreatorsAdvertiseDevelopersTermsPrivacyPolicy & SafetyHow YouTube worksTest new features · © 2024 Google LLC
Published: July 12, 2020
Views: 13K
🌐
Electronics-Lab
electronics-lab.com › home › cad tools › calculators › hex to ascii calculator
HEX to ASCII Calculator - Electronics-Lab
July 28, 2025 - Let us convert the Hexadecimal number ‘506C616E74’ into ASCII. First make pairs starting from the right-hand side. If there is an extra digit, add zero at the left-hand side to complete the pair. Then use ASCII table to get character from ASCII code.
🌐
IBM
ibm.com › docs › SSZJPZ_11.7.0 › com.ibm.swg.im.iis.ds.basic.doc › topics › r_dsbasic_ascii_and_hex_equivalents.html
ASCII and Hex Equivalents
By visiting our website, you agree to our processing of information as described in IBM’s privacy statement.
🌐
Online Tools
onlinetools.com › hex › convert-hex-to-ascii
Convert Hex to ASCII – Online Hex Tools
Free online hexadecimal to ASCII converter. Just load your hex numbers and they will automatically get converted to ASCII characters. There are no ads, popups or nonsense, just an awesome hex values to ASCII symbols converter. Load hexadecimal, get ASCII.
🌐
NI Community
forums.ni.com › community › discussion forums › most active software boards › labview › convert hex string to ascii
Convert hex string to ascii - NI Community
March 10, 2005 - Could someone point me in the right direction to convert strings like this to the ascii characters thanks ... You just have to set the string display from Normal to Hex by right clicking on the string control/indicator. The Hex display shows the ASCII code of the characters.
🌐
freeCodeCamp
freecodecamp.org › news › ascii-table-hex-to-ascii-value-character-code-chart-2
ASCII Table – Hex to ASCII Value Character Code Chart
March 11, 2021 - To make your life easier, I created a table from the best sources I could find. Just scroll or use Ctrl/Cmd + f to find the value you're looking for. ... Note that there are several other extended ASCII tables like ISO 8859, ISO 8859-1, ISO 8859-2, and so on.
🌐
ASCII Table
asciitable.com
ASCII Table - ASCII Character Codes, HTML, Octal, Hex, Decimal
Complete ASCII character tables including hex, octal, html, and decimal conversions for developers.
🌐
Binary Hex Decimal Converter
binaryhexconverter.com › ascii-text-to-hex-converter
Ascii Text to Hexadecimal Converter
These are the 26 letters of the English alphabet (both in lower and upper cases); numbers from 0 to 9; and various punctuation marks. In the ASCII code, each of these characters are assigned a decimal number from 0 to 127. For example, the ASCII representation of upper case A is 65 and the lower case a is 97. The hexadecimal system (shortly hex), uses the number 16 as its base (radix).
🌐
Coders Tool
coderstool.com › hex-to-ascii
Hex to ASCII Text Converter — Fast Online Conversion
Convert Hex to ASCII, encode and translate characters, letters, words, sentences.
🌐
Gary Kessler
garykessler.net › library › ascii.html
ASCII Table
ASCII DECIMAL AND HEXADECIMAL CONVERSION TABLE · Extended ASCII Characters