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.
🌐
Quora
quora.com β€Ί How-can-you-manually-convert-hexadecimal-numbers-to-ASCII-and-vice-versa
How to manually convert hexadecimal numbers to ASCII and vice versa - Quora
Answer (1 of 5): If you want to do something like convert x’52696368β€² to β€˜Rich’. ASCII is one way to represent characters as a series of bits. In particular, ASCII uses specific combinations of 8 bits (one byte, two hex characters) to represent numbers, letters in the Latin alphabet, ...
Discussions

c - Hex to ascii string conversion - Stack Overflow
i have an hex string and want it to be converted to ascii string in C. How can i accomplish this?? More on stackoverflow.com
🌐 stackoverflow.com
How to convert from Hex to ASCII in JavaScript? - Stack Overflow
How to convert from Hex string to ASCII string in JavaScript? Ex: 32343630 it will be 2460 More on stackoverflow.com
🌐 stackoverflow.com
Help converting hexadecimal to ASCII
Hi! I have somewhat successfully converted hexadecimal to ASCII however the final display would add unnecessary spaces in front of the word. Is there another way to convert hexadecimal to ASCII? More on forums.ni.com
🌐 forums.ni.com
1
0
July 9, 2023
Conversion hex string into ascii in bash command line - Stack Overflow
I have a lot of this kind of string and I want to find a command to convert it in ascii, I tried with echo -e and od, but it did not work. 0xA7.0x9B.0x46.0x8D.0x1E.0x52.0xA7.0x9B.0x7B.0x31.0xD2 More on stackoverflow.com
🌐 stackoverflow.com
🌐
Edaboard
edaboard.com β€Ί digital design and embedded programming β€Ί microcontrollers
Convert Hexadecimal value to ASCII value manually | Forum for Electronics
July 11, 2021 - If you send 0x6B to the LCD, you're sending the ASCII code for β€œk”. If you want to display β€œ0x6Bβ€œ, you need to send 4 ASCII characters.
🌐
Hexcalculator
hexcalculator.org β€Ί hexadecimal-to-ascii
Hex to ASCII Converter (Hex to Text)
May 29, 2026 - Conversely, the Base36 to Hex Converter helps decode those compact strings back to readable hexadecimal values for processing or debugging. All these toolsβ€”and moreβ€”are available on our central hub: the Hexadecimal Calculator Online platform, designed to simplify number system conversions with speed and precision. Ensure even-length input (each ASCII character is 2 hex digits).
🌐
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
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί dsa β€Ί convert-hexadecimal-value-string-ascii-value-string
Convert Hexadecimal value String to ASCII value String - GeeksforGeeks
July 11, 2025 - Initialize final ascii string as empty. Extract first two characters from the hexadecimal string taken as input. Convert it into base 16 integer.
Find elsewhere
🌐
TheToolApp
thetoolapp.com β€Ί utilities β€Ί convert-hexadecimal-to-ascii
Convert Hexadecimal To Ascii Online
March 15, 2026 - Yes. Click the Swap button to switch the output into the input panel and change the mode to ASCII-to-hex. The tool will then convert each character of your text into its two-digit hexadecimal representation, separated by spaces.
🌐
Online Tools
onlinetools.com β€Ί hex β€Ί convert-hex-to-ascii
Convert Hex to ASCII – Online Hex Tools
This tool converts hexadecimal numbers to American Standard Code for Information Interchange (ASCII) characters. Make sure the input hex is well-defined and well-formatted.
🌐
Binary Hex Decimal Converter
binaryhexconverter.com β€Ί hex-to-ascii-text-converter
Hex to Ascii (String) Converter
To use this hex to string converter, type a hex value like 6C 6F 76 65 and into the left field below and hit the Convert button. You will get the according string. ... The hexadecimal system (shortly hex), uses the number 16 as its base (radix). As a base-16 numeral system, it uses 16 symbols.
🌐
Utilities and Tools
utilities-online.info β€Ί hex-to-ascii
HEX to ASCII converter
This online hex to ASCII converter will help you convert your hexadecimal string to ASCII. Just enter your Hex numbers and let the tool convert them into ASCII or Unicode format.
🌐
Baeldung
baeldung.com β€Ί home β€Ί scripting β€Ί convert hex to ascii characters in the linux shell
Convert Hex to ASCII Characters in the Linux Shell | Baeldung on Linux
March 18, 2024 - Alternatively, we can use the dc command to convert a character from hex to ASCII. The dc stands for Desk Calculator. This command accepts the input in postfix notation form: ... P represents the Print command of dc.
🌐
Electronics For You
electronicsforu.com β€Ί home β€Ί special β€Ί hex to ascii converter
Hex To ASCII Converter | Free Online Conversion Tool
April 25, 2024 - The Hex to ASCII converter is a tool used to switch between Hexadecimal (Hex) numbers and ASCII characters. By inputting a hex value into the designated box and clicking the Convert button, you can effortlessly obtain the corresponding ASCII ...
🌐
Cplusplus
cplusplus.com β€Ί forum β€Ί beginner β€Ί 208046
Hex to ASCII to Binary - C++ Forum
You can't meaningfully print computer ... big-int class that supports it or roll your own. ... Consider how to do this by hand first. Take the 1st 4 characters in your hex string: 315c. This represents 2 ASCII characters....
🌐
Elprocus
elprocus.com β€Ί home β€Ί hexa to ascii & ascii to hexa conversion with example
Hexa to ASCII and ASCII to Hexa Conversion with Example
January 22, 2020 - So, split the hexadecimal into the pairs, as each digit of hexadecimal is 4-bits. For each pair, find the specified ASCII character from the ASCII lookup table. ... To understand the conversion let us look at the example.
🌐
Online Tools
onlinetools.com β€Ί ascii β€Ί convert-hexadecimal-to-ascii
Convert Hexadecimal to ASCII – Online ASCII Tools
A simple browser-based utility that converts hex numbers to ASCII data. Just paste your hexadecimals in the input area and you will instantly get an ASCII string in the output area. Fast, free, and without ads. Import hexadecimal – get ASCII.
🌐
Coders Tool
coderstool.com β€Ί hex-to-ascii
Hex to ASCII Text Converter β€” Fast Online Conversion
Hex to ASCII: Paste hex values into the input field β€” space-separated (48 65 6C 6C 6F), run-together (48656C6C6F), or with 0x prefixes (0x48 0x65 0x6C). Click Convert to read the ASCII text.