Normalizes a standard Base64 string into a URL-safe Base64URL string (RFC 4648 §5). Replaces + with -, / with _, and strips trailing = padding.
+
-
/
_
=
The standard Base64 string to convert
The URL-safe Base64URL string
const url = base64ToBase64Url('+/8='); // '-_8' Copy
const url = base64ToBase64Url('+/8='); // '-_8'
Normalizes a standard Base64 string into a URL-safe Base64URL string (RFC 4648 §5). Replaces
+with-,/with_, and strips trailing=padding.