Creates a Base64-encoded ASCII string from a binary string (i.e. a string in which each character in the string is treated as a byte of binary data).
The binary string.
The base64 encoded string or null if the encoding failed.
// Encode base64let encoded = json_btoa("Hello World!");// Decode base64let decoded = json_atob(encoded); Copy
// Encode base64let encoded = json_btoa("Hello World!");// Decode base64let decoded = json_atob(encoded);
Creates a Base64-encoded ASCII string from a binary string (i.e. a string in which each character in the string is treated as a byte of binary data).