Skip to main content
atob - Encoding - Web documentation
function atob
atob(s: string): string

Decodes a string of data which has been encoded using base-64 encoding.

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

Parameters

s: string

Return Type

string