Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/base32.ts>decodeBase32

The Deno Standard Library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decodeBase32
import { decodeBase32 } from "https://deno.land/std@0.222.0/encoding/base32.ts";

Decodes a base32-encoded string.

Examples

Example 1

import { decodeBase32 } from "https://deno.land/std@0.222.0/encoding/base32.ts";

decodeBase32("NRQMA===");
// Uint8Array(3) [ 108, 96, 192 ]

Parameters

b32: string

The base32-encoded string to decode.

Returns

Uint8Array

The decoded data.