Skip to content

base64Encode

base64Encode(data) → string · Security

Encode data to a Base64 string for safe transport (e.g., in URLs or headers).

  • data (required): string to encode
utlx
{
  encoded: base64Encode("Hello, World!")
}
// Output: {"encoded": "SGVsbG8sIFdvcmxkIQ=="}

Released under AGPL-3.0.