Skip to main content
function btoa
btoa(s: string): string
Deprecated

Creates a base-64 ASCII encoded string from the input string.

console.log(btoa("hello world"));  // outputs "aGVsbG8gd29ybGQ="

Parameters

s: string

Return Type

string
Back to top