Normalizes a URL-safe Base64URL string back into a standard Base64 string. Replaces - with +, _ with /, and restores = padding using padTo.
-
+
_
/
=
padTo
The Base64URL string to convert
The standard Base64 string with padding restored
const b64 = base64UrlToBase64('-_8'); // '+/8=' Copy
const b64 = base64UrlToBase64('-_8'); // '+/8='
Normalizes a URL-safe Base64URL string back into a standard Base64 string. Replaces
-with+,_with/, and restores=padding usingpadTo.