Decode a base-64 encoded string:
The result of res will be:
The atob() method decodes a base-64 encoded string.
This method decodes a string of data which has been encoded by the btoa() method.
The numbers in the table specify the first browser version that fully supports the method.
Method | |||||
---|---|---|---|---|---|
atob() | Yes | 10.0 | 1.0 | Yes | Yes |
Parameter | Description |
---|---|
encodedStr | Required. The string which has been encoded by the btoa() method |
Return Value: | A String, representing the decoded string |
---|