Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function b64Decode
import { b64Decode } from "https://deno.land/x/simple_utility@v1.5.2/mod.universal.ts";

Convert from base64 encoded string to binary.

Examples

Example 1

const bin = await Deno.readFile("./file");
const encode = b64Encode(bin);
const decode = b64Decode(encode);

Parameters

data: string

Returns

Uint8Array