Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/encoding/base64.ts>decodeBase64

The Deno Standard Library
Go to Latest
function decodeBase64
import { decodeBase64 } from "https://deno.land/std@0.222.1/encoding/base64.ts";

Decodes a base64-encoded string.

Examples

Example 1

import { decodeBase64 } from "https://deno.land/std@0.222.1/encoding/base64.ts";

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

Parameters

b64: string

The base64-encoded string to decode.

Returns

Uint8Array

The decoded data.