---
name: cloud-logs-dataprime-ref-encode-func
title: DataPrime encoding / decoding functions
description: This guide provides a glossary of IBM&reg; Cloud Logs DataPrime functions for encoding or decoding data.
last-updated: 2025-10-17
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/cloud-logs?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# DataPrime encoding / decoding functions
{: #dataprime-ref-encode-func}

This guide provides a glossary of IBM&reg; Cloud Logs DataPrime functions for encoding or decoding data.
{: shortdesc}


## `decodeBase64`
{: #decodebase64}

Decode a base-64 encoded string.

```text
decodeBase64(value: string): string
```
{: codeblock}



## `encodeBase64`
{: #encodebase64}

Encode a string into base-64.

```text
encodeBase64(value: string): string
```
{: codeblock}