Skip to content

Function.encodeBase64Url

github-actions[bot] edited this page Nov 18, 2026 · 13 revisions

umt / encodeBase64Url

Function: encodeBase64Url()

encodeBase64Url(char): string

Defined in: String/encodeBase64Url.ts:10

Convert string to URL-safe Base64 (RFC 4648 section 5) without padding

Parameters

char

string

String to convert to URL-safe Base64

Returns

string

URL-safe Base64 encoded string using "-" and "_" and no "=" padding

Examples

encodeBase64Url("Hello World"); // "SGVsbG8gV29ybGQ"
encodeBase64Url("???>"); // "Pz8_Pg"

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally