Python base64.b64decode() Method
The base64.b64decode() method decodes the Base64 encoded bytes-like
object or ASCII string.
It returns the decoded bytes.
Syntax
base64.b64decode(s)
Parameters
| Parameter | Description |
|---|---|
s |
Required. The byte string to decode. |
Return Value
The decoded bytes.
Example
Using the b64decode() method:
Output
Click Run to execute your code
Enjoying these tutorials?