Encode Base64

Encode a string to Base64 format for safe transmission in URLs and APIs.

Code

Utilities
btoa(input);

Parameters

The string to encode to Base64.

Browser·fetch() may be limited by CORS

More JavaScript Snippets