Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decodeBase64Url
import { decodeBase64Url } from "https://deno.land/std@0.220.1/encoding/base64url.ts";

Decodes a given base64url-encoded string.

Examples

Example 1

import { decodeBase64Url } from "https://deno.land/std@0.220.1/encoding/base64url.ts";

decodeBase64Url("Zm9vYmFy"); // Uint8Array(6) [ 102, 111, 111, 98, 97, 114 ]

Parameters

b64url: string

Returns

Uint8Array