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

std/encoding/base58.ts

The Deno Standard Library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.222.0/encoding/base58.ts";

Utilities for base58 encoding and decoding.

This module is browser compatible.

import { encodeBase58, decodeBase58 } from "https://deno.land/std@0.222.0/encoding/base58.ts";

const encoded = encodeBase58("Hello World!"); // "2NEpo7TZRRrLZSi2U"

decodeBase58(encoded);
// Uint8Array(12) [ 72, 101, 108, 108, 111, 32,  87, 111, 114, 108, 100, 33 ]

Functions

Decodes a base58-encoded string.

Converts data into a base58-encoded string.