Skip to main content

Base64 utility methods

Less than 1 minutefeatureweb-standard

Base64 utility methods

Specificationopen in new window, MDNopen in new window.

Modules

Types

function atob(data: string): string;
function btoa(data: string): string;

Entry points

core-js(-pure)/stable|actual|full/atob
core-js(-pure)/stable|actual|full/btoa

Example

Exampleopen in new window:

btoa("hi, core-js"); // => 'aGksIGNvcmUtanM='
atob("aGksIGNvcmUtanM="); // => 'hi, core-js'