python base64.encodestring( code example Example: base64 python decode import base64 coded_string = '''Q5YACgA...''' base64.b64decode(coded_string)