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

std/encoding/base64.ts

The Deno Standard Library
Latest
import * as mod from "https://deno.land/std@0.224.0/encoding/base64.ts";

Utilities for base64 encoding and decoding.

This module is browser compatible.

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

const encoded = encodeBase64("foobar"); // "Zm9vYmFy"

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

Functions

Decodes a base64-encoded string.

Converts data into a base64-encoded string.