Decodes an unpadded URL-safe Base64 string into a Uint8Array.
Uint8Array
Normalizes URL-safe characters (- and _) back to standard Base64 (+ and /), re-applies necessary = padding, and returns decoded bytes.
-
_
+
/
=
The URL-safe Base64 string to decode.
The decoded raw bytes as a Uint8Array.
const bytes = base64UrlDecode("ZXlKaGJHY2lPaUpJVXpJMU5pSjA"); Copy
const bytes = base64UrlDecode("ZXlKaGJHY2lPaUpJVXpJMU5pSjA");
Decodes an unpadded URL-safe Base64 string into a
Uint8Array.Normalizes URL-safe characters (
-and_) back to standard Base64 (+and/), re-applies necessary=padding, and returns decoded bytes.