Open this example in the interactive library
Source code
import base64
print(base64.b64decode('aGVsbG8=', validate=True).decode('utf-8'))Sample output
hello

Decode Base64 bytes. A self-contained example using the Python standard library.
Open this example in the interactive library
import base64
print(base64.b64decode('aGVsbG8=', validate=True).decode('utf-8'))hello