Python : base64.b64decode()

Decode a Base64-encoded string.


Function

base64.b64decode(str[, altchars])

Parameters

- str is the string to be decoded.
- The optional altchars parameter must be a string of at least two characters (extra characters are ignored) and defines an alternative alphabet to replace the + and / characters.

Return value

The decoded string is returned. A `TypeError` is raised if the input string has incorrect padding or contains non-alphabet characters.

Example

<<< import base64
<<< encoded = 'SSB3aWxsIGNvbWUgYmFjayBzb29u'
<<< data = base64.b64decode(encoded)
<<< data
'i will comeback soon'

Home Page Base64Decode List Privacy Policy About Us Contact

This website uses cookies to enhance your experience, personalize content and ads, and analyze our traffic.

©2025 Design by base64decodeonl.com