atob method

atob

Takes the input data, in the form of a Unicode string containing base64-encoded binary data, decodes it, and returns a string consisting of characters in the range U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF respectively, corresponding to that binary data.

Returns

The string consisting of characters in the range U+0000 to U+00FF

def atob(self, data):
    ...
ParameterTypeDescription
datastrThe Unicode string containing base64-encoded binary data

Exceptions

ExceptionDescription
DOMExceptionThrows an “InvalidCharacterError” DOMException if the input string is not valid base64 data.

See Also