Following is the syntax for decode() method − Str.decode(encoding = 'UTF-8',errors = 'strict') Parameters. Python Base64 Decode. Syntax. Advertisements. Description .

To decode Base64 to original data, Python provides the b64decode function of the base64 module. Previous Page. The decode() method decodes the string using the codec registered for encoding. encoding − This is the encodings to be used.

In addition, this module also provides the b64encode function, as well as other useful functions to decode Base64 strings using several algorithms specified in RFC 3548. Python 3 - String decode() Method. Usage: b64decode(b64) - Discards all invalid characters from b64 and decodes it from Base64 … It defaults to the default string encoding. Comments: 0.

Next Page .