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


The Deno Standard Library
Go to Latest
import * as mod from "";

Utilities for base32 encoding and decoding.

Modified from

This module is browser compatible.

import { encodeBase32, decodeBase32 } from "";

const encoded = encodeBase32("foobar"); // "MZXW6YTBOI======"

decodeBase32(encoded); // Uint8Array(6) [ 102, 111, 111, 98, 97, 114 ]


Decodes a base32-encoded string.

Converts data into a base32-encoded string.