---
title: BASE64_DECODE
url: https://www.tines.com/docs/formulas/functions/base64-decode/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# BASE64_DECODE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/base64-decode/)*

Decode Base64 encoded text. By default this complies with RFC 4648. Set strict: FALSE for RFC 2045 compliant decoding (for example to handle improperly padded base64 strings).

**Categories:** Data Parsing/Conversion

## Syntax

```
BASE64_DECODE(text, [strict: TRUE])
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "SGVsbG8gd29ybGQ="
  }
}
```

Formula:

```
BASE64_DECODE(my_action.message)
```

Output:

```json
"Hello world"
```

### Example 2

Input:

```json
{
  "my_action": {
    "malformed_base64": "SGVsbG8gV29ybGQ=="
  }
}
```

Formula:

```
BASE64_DECODE(my_action.malformed_base64, strict: FALSE)
```

Output:

```json
"Hello World"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "2",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "aGVsbG8gd29ybGQ="
        }
      },
      "position": {
        "x": 1860,
        "y": 2070
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "BASE64_DECODE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "base64_decode": "=BASE64_DECODE(my_action.message)"
        }
      },
      "position": {
        "x": 1860,
        "y": 2145
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
