Converts Base64URL string into Base64 one.

Type signature

(base64Url: string) => string

Examples

toBase64("PDw_Pz8-Pg");
// ⇒ "PDw/Pz8+Pg=="
Try in REPL

Questions

  • How to convert Base64URL to Base64?

TypeScript sourceJavaScript source