Convert int to ASCII and back in Python October 23, 2022 by Tarik ASCII to int: ord('a') gives 97 And back to a string: in Python2: str(unichr(97)) in Python3: chr(97) gives 'a'